2012-02-01, 22:37
When launching one of my addons I display a progress dialog. This works fine when executing from XBMC but when launching from a json-rpc call, XBMC hangs with no further information.
However if I add a notification or as in this case run
Everything works just fine (continuing from the log above)
I suspect there is some issue with XBMC's "opening stream" dialog showing at the same time. A race condition?
Anyone else experienced this?
PHP Code:
21:19:17 T:5764 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "Player.Open", "params":{"item": {"file" : "plugin://plugin.program.x/?x" }}, "id" : "1"}
21:19:17 T:5764 DEBUG: JSONRPC: Calling player.open
21:19:17 T:5764 DEBUG: JSONRPC: Missing property "playlistid" in type
21:19:17 T:5764 DEBUG: CVideoDatabase::GetMovieId (plugin://plugin.program.x/?x), query = select idMovie from movie where idFile=37
21:19:17 T:5764 DEBUG: CVideoDatabase::GetEpisodeId (plugin://plugin.program.x/?x), query = select idEpisode from episode where idFile=37
21:19:17 T:5764 DEBUG: CVideoDatabase::GetMusicVideoId (plugin://plugin.program.x/?x), query = select idMVideo from musicvideo where idFile=37
21:19:17 T:680 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Pneumatic('plugin://plugin.program.x/','0','xxxxx')
21:19:17 T:680 INFO: initializing python engine.
21:19:17 T:680 DEBUG: new python thread created. id=3
21:19:17 T:680 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the X plugin...
21:19:17 T:4312 DEBUG: Thread XBPyThread start, auto delete: 0
21:19:17 T:4312 DEBUG: Python thread: start processing
21:19:17 T:4312 NOTICE: -->Python Interpreter Initialized<--
....
21:19:18 T:4312 INFO: Loading skin file: DialogProgress.xml
21:19:18 T:4312 DEBUG: DialogProgress::StartModal called
21:19:18 T:4312 DEBUG: ------ Window Init (DialogProgress.xml) ------
hang forever...
However if I add a notification or as in this case run
PHP Code:
xbmc.executebuiltin('Dialog.Close(all, true)')
Everything works just fine (continuing from the log above)
PHP Code:
21:22:59 T:2224 DEBUG: Instantiating addon using automatically obtained id of "plugin.program.x" dependent on version 2.0 of the xbmc.python api
21:23:00 T:8056 INFO: Loading skin file: DialogProgress.xml
21:23:00 T:8056 DEBUG: DialogProgress::StartModal called
21:23:00 T:8056 DEBUG: ------ Window Init (DialogProgress.xml) ------
21:23:00 T:8056 DEBUG: ------ Window Deinit () ------
21:23:00 T:8056 DEBUG: ------ Window Deinit (Pointer.xml) ------
21:23:00 T:8056 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
21:23:00 T:8056 DEBUG: ------ Window Init () ------
21:23:00 T:8056 DEBUG: ------ Window Init (Pointer.xml) ------
21:23:01 T:2224 INFO: Loading skin file: DialogProgress.xml
21:23:01 T:2224 DEBUG: DialogProgress::StartModal called
21:23:01 T:2224 DEBUG: ------ Window Init (DialogProgress.xml) ------
21:23:01 T:8056 DEBUG: ------ Window Deinit (Pointer.xml) ------
21:23:02 T:8056 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
21:23:02 T:2224 INFO: Loading skin file: DialogProgress.xml
21:23:02 T:2224 DEBUG: DialogProgress::StartModal called
21:23:02 T:2224 DEBUG: ------ Window Init (DialogProgress.xml) ------
21:23:03 T:8056 DEBUG: CWinEventsWin32::WndProcWindow is active
21:23:14 T:8056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib.dll)
21:23:14 T:8056 DEBUG: CWinEventsWin32::WndProcWindow is active
I suspect there is some issue with XBMC's "opening stream" dialog showing at the same time. A race condition?
Anyone else experienced this?