Kodi Community Forum
xbmc.abortRequested not set - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: xbmc.abortRequested not set (/showthread.php?tid=93669)



xbmc.abortRequested not set - sereende - 2011-02-09

Apparently, in my Dharma SVN 35648 running on Jaunty, the flag xbmc.abortRequested is not set at shutdown.

This simple script:

Code:
import time
import xbmc

xbmc.log("Started")

while 1:
    print "Abort Requested: "+str(xbmc.abortRequested)
    if (xbmc.abortRequested):
        xbmc.log("Aborting...")
        break
    time.sleep(1)

xbmc.log("Exiting")

logs "Abort Requested: False" even after XBMC has been requested to exit, still after the "NOTICE: stop python" notification in the log, and then the script is interrupted by the system abruptly.

Is it a known bug? Perhaps fixed in recent releases?


- ErlendSB - 2011-05-07

I'm seeing the same in 10.1. Did you ever find out why this happens?
I'm also running the last build of dsplayer, and there it's working as expected.


- giftie - 2011-05-07

I don't think was available in Dharma. It should be available in Eden-pre though(ie Nightly) As the 'service' module is only meant for Eden..


- Ninjamawwe - 2011-07-29

Is this event only sent when shutting down xbmc, or is it also sent when loggin out? Or is there another event that gets sent when logging off?


- giftie - 2011-07-29

It is sent when shutting down XBMC, as the scripts that will use it, script.service... , will automatically start when XBMC starts.


- Shoop_NL - 2011-09-23

sereende Wrote:Apparently, in my Dharma SVN 35648 running on Jaunty, the flag xbmc.abortRequested is not set at shutdown.

This simple script:

Code:
import time
import xbmc

xbmc.log("Started")

while 1:
    print "Abort Requested: "+str(xbmc.abortRequested)
    if (xbmc.abortRequested):
        xbmc.log("Aborting...")
        break
    time.sleep(1)

xbmc.log("Exiting")

logs "Abort Requested: False" even after XBMC has been requested to exit, still after the "NOTICE: stop python" notification in the log, and then the script is interrupted by the system abruptly.

Is it a known bug? Perhaps fixed in recent releases?

Hi,

Is there a solution for this problem?
I have the same issue, I would like to do one Python action when XBMC is shutdown.
But the xbmc.abortRequested seems not te be set when this happens.

Thanx in advance


- Memphiz - 2012-02-14

FYI ... i'm on it ... see 690 (PR) (still discussing)