2013-04-29, 17:23
Hi,
Does XBMC only allow a single instance of python to run at any one time?
My addon starts media playback, then sits in the background and monitors the playback time, sending the data back to another target. If I then attempt to start the xbmc subtitle service, it will sit there waiting until I stop backplay (and therefore my addon stops running too). I can see that XBMC starts the process of running the subtitle script:
but never runs it until I close my addon (I've edited the subtitle script to troubleshoot, so I know it definitely doesn't run the script at all):
I've not checked previous revisions yet, but this has only been reported that this has stopped working recently, so I'm guessing it's introduced in 12/12.1
Full debug log: http://pastebin.com/UqBjt5sG
Does XBMC only allow a single instance of python to run at any one time?
My addon starts media playback, then sits in the background and monitors the playback time, sending the data back to another target. If I then attempt to start the xbmc subtitle service, it will sit there waiting until I stop backplay (and therefore my addon stops running too). I can see that XBMC starts the process of running the subtitle script:
Code:
16:15:37 T:18248 DEBUG: CApplication::ProcessMouse: trying mouse action leftclick
16:15:37 T:18248 DEBUG: CApplication::ExecuteXBMCAction : Translating Close
16:15:37 T:18248 DEBUG: CApplication::ExecuteXBMCAction : To Close
16:15:37 T:18248 DEBUG: CApplication::ExecuteXBMCAction : Translating XBMC.RunScript($INFO[Skin.String(SubtitleScript_Path)])
16:15:37 T:18248 DEBUG: CApplication::ExecuteXBMCAction : To XBMC.RunScript(script.xbmc.subtitles)
16:15:37 T:18248 INFO: initializing python engine.
16:15:37 T:18248 DEBUG: new python thread created. id=41
16:15:37 T:20384 NOTICE: Thread XBPyThread start, auto delete: false
16:15:37 T:20384 DEBUG: Python thread: start processing
but never runs it until I close my addon (I've edited the subtitle script to troubleshoot, so I know it definitely doesn't run the script at all):
Code:
16:16:31 T:19664 NOTICE: PleXBMC -> monitorPlayback: Playback Stopped
16:16:31 T:19664 NOTICE: ===== PLEXBMC STOP =====
16:16:31 T:19664 INFO: Scriptresult: Success
16:16:31 T:19664 INFO: Python script stopped
16:16:31 T:19664 DEBUG: Thread XBPyThread 19664 terminating
16:16:31 T:18248 DEBUG: waiting for python thread 39 (C:\Users\dave\AppData\Roaming\XBMC\addons\plugin.video.plexbmc\default.py) to stop
16:16:31 T:18248 DEBUG: python thread 39 (C:\Users\dave\AppData\Roaming\XBMC\addons\plugin.video.plexbmc\default.py) destructed
16:16:31 T:20320 NOTICE: -->Python Interpreter Initialized<--
16:16:31 T:20320 DEBUG: XBPyThread::Process - The source file to load is C:\Users\dave\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\default.py
I've not checked previous revisions yet, but this has only been reported that this has stopped working recently, so I'm guessing it's introduced in 12/12.1
Full debug log: http://pastebin.com/UqBjt5sG