2019-04-03, 18:51
In my script addon I use the xbmc.service extension point to load a python file at login. In that python file I create a number of worker processes using multiprocessing.Process module.
When calling either xbmc.executebuiltin, xbmc.executeJSONRPC or xbmc.getCondVisibility from one of the worker process that process just blocks or hangs forever. Copying the same code to the main loop returns results immediately.
However calling xbmc.Player().isPlaying() does work from the worker processes.
I'm stuck. Can you only use the xbmc.* commands from the main process?
When calling either xbmc.executebuiltin, xbmc.executeJSONRPC or xbmc.getCondVisibility from one of the worker process that process just blocks or hangs forever. Copying the same code to the main loop returns results immediately.
However calling xbmc.Player().isPlaying() does work from the worker processes.
I'm stuck. Can you only use the xbmc.* commands from the main process?