Bug When launching a program addon from favorites it tries to start a new thread.
#1
Hi,

I am using the DFAtmo plugin for controlling my LED backlight.

When selecting DFAtmo plugin from the "Programs" menu it toggles the service status stops or starts the DFAtmo service.

I added DFAtmo to my favorites menu which i can launch anytime because I mapped the favorites menu
to button on my remote, When launching DFAtmo from the favorites it seem that it tries to start a new instance
Instead of stop/start the service. is this a bug?

Here is the info from the log in debug mode - Successful stopping of the service from the program menu:
Code:
21:53:19 T:4372    INFO: Stopping script with id: 12
21:53:19 T:5380    INFO: Scriptresult: Success
21:53:19 T:4372   DEBUG: XBPyThread::stop - script termination took 220ms
21:53:19 T:5380    INFO: Python script interrupted by user
21:53:19 T:5380   DEBUG: Thread XBPython 5380 terminating
21:53:19 T:4372   DEBUG: waiting for python thread 12 (C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.dfatmo\dfatmo.py) to stop
21:53:19 T:4372   DEBUG: python thread 12 (C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.dfatmo\dfatmo.py) destructed

Here is the info from the log in debug mode - UN Successful stopping of the service from the Favorites menu:
Code:
22:02:29 T:4372    INFO: initializing python engine.
22:02:29 T:4372   DEBUG: new python thread created. id=21
22:02:29 T:4656  NOTICE: Thread XBPython start, auto delete: false
22:02:29 T:4656   DEBUG: Python thread: start processing
22:02:29 T:4656  NOTICE: -->Python Interpreter Initialized<--
22:02:29 T:4656   DEBUG: XBPyThread::Process - The source file to load is C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.favourites\default.py
22:02:29 T:4656   DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.favourites;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib;C:\Program Files\XBMC\addons\weather.wunderground\resources\lib\wunderground;C:\Program Files\XBMC\addons\script.module.simplejson\lib;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files\XBMC\addons\script.module.pil\lib;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.module.simple.downloader\lib;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.module.mechanize\lib;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;C:\Program Files\XBMC\addons\script.module.pysqlite\lib;C:\Program Files\XBMC\system\python\DLLs;C:\Program Files\XBMC\system\python\Lib;C:\Program Files\XBMC\python26.zip;C:\Program Files\XBMC\system\python\lib\plat-win;C:\Program Files\XBMC\system\python\lib\lib-tk;C:\Program Files\XBMC;C:\Program Files\XBMC\system\python;C:\Program Files\XBMC\system\python\lib\site-packages;
22:02:29 T:4656   DEBUG: XBPyThread::Process - Entering source directory C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.favourites
22:02:29 T:4656   DEBUG: Instantiating addon using automatically obtained id of "script.favourites" dependent on version 2.1.0 of the xbmc.python api
22:02:29 T:4656   DEBUG: script.favourites: script version 4.0.9 started
22:02:29 T:4656   DEBUG: script.favourites: ### params: {}
22:02:29 T:4656   DEBUG: script.favourites: script stopped
22:02:29 T:4656    INFO: Scriptresult: Success
22:02:29 T:4656    INFO: Python script stopped
22:02:29 T:4656   DEBUG: Thread XBPython 4656 terminating
22:02:29 T:4372   DEBUG: waiting for python thread 21 (C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.favourites\default.py) to stop
22:02:29 T:4372   DEBUG: python thread 21 (C:\Users\twhyman\AppData\Roaming\XBMC\addons\script.favourites\default.py) destructed

The noticed that when launching from programs menu XBMC "knows" the thread number to close in this case 12.
And when lauching from the Favorites menu it tries to create a new thread in this case 21, And then it fails because COM3 is already open...

Is this a XBMC bug?

Thanks,
Komar
Reply
#2
Can anyone tell me if its a XBMC bug or plugin bug?
Reply
#3
**BUMP**
Reply

Logout Mark Read Team Forum Stats Members Help
When launching a program addon from favorites it tries to start a new thread.0