xbmc.abortRequested not set

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sereende Offline
Junior Member
Posts: 3
Joined: Jan 2011
Reputation: 0
Post: #1
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?
find quote
ErlendSB Offline
Senior Member
Posts: 187
Joined: Sep 2008
Reputation: 3
Location: Norway
Post: #2
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.
find quote
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #3
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..

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
Ninjamawwe Offline
Member
Posts: 90
Joined: Mar 2007
Reputation: 0
Location: Gothenburg, Sweden
Post: #4
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?
find quote
giftie Offline
Skilled Python Coder
Posts: 2,364
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #5
It is sent when shutting down XBMC, as the scripts that will use it, script.service... , will automatically start when XBMC starts.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
Shoop_NL Offline
Member
Posts: 92
Joined: Dec 2009
Reputation: 0
Location: NL
Post: #6
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
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,584
Joined: Feb 2011
Reputation: 116
Location: germany
Post: #7
FYI ... i'm on it ... see https://github.com/xbmc/xbmc/pull/690 (still discussing)

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote