Win XBMC takes a mintue to exit
#1
Hi,

I'm using XBMC 13.0 b1 on windows 8.1 and when I exit xbmc, it takes a minute, even more sometimes. This has been present in the last few versions I had.

Any ideas?

it is very annoying.
Reply
#2
Probably some addons are taking time to shutdown. Enable debug log (wiki) and find the addon causing the delay and disable it.
Reply
#3
Well, just tried looking in the log.

I don't see a big jump(in time) in any particular line. I can post it if it will help.

edit: here it is:
http://pastebin.com/GfcgX5aV
Reply
#4
At 15:36:36 thread FileCache (2052) started.

At 15:37:09 it timed out and a retry was initiated.

At 15:37:33 it timed out again and a second retry was initiated.

At 15:37:56 it timed out again and gave up.

In total 1 minute 20 seconds.

It looks as if this Might have something to do with script.grab.fanart
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply
#5
I see.
So, can I disable this script or fix it?
Reply
#6
It looks as if you are running the artwork-downloader addon. Could you try switching it off and see if this solves the problem?

EDIT

Actually I'm not sure about the above. The only other thing I'm a bit wary of here is the 'cinema experience' addon.
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply
#7
I unistalled the artwork downloader. Didn't solve my problem.

Also removed the cinema experience, still no go.

Should I upload a new log?
Reply
#8
Yes please upload another log. It might be a bit clearer with these other entries no longer goin in there.
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply
#9
Here you go:
http://pastebin.com/yVvpUfTG

Notice that the first third of the file is from yesterday night.
Reply
#10
09:32:08 T:3132 DEBUG: script.grab.fanart: Movie - Two-Lane Blacktop

09:33:08 T:3132 DEBUG: script.grab.fanart: Global - True Detective

script.grab.fanart is taking around one minute to close.
Reply
#11
I uninstalled two instances of fanart, guess they are not the right ones, how do I find to which add-on it is referring?
Reply
#12
I was referred here from the fanart grabber thread as your issue may be due to that. Just wondering what the rationale is for thinking the script.grab.fanart service is the one holding up the shutdown? I've examined the most recent log file and can't find any evidence for that.

Let's walk through it:

Code:
09:32:02 T:1996   DEBUG: CAnnouncementManager - Announcement: OnQuit from xbmc

Here is where the shutdown command was issued.

Now we see a bunch of tasks trying to shutdown, along with a lot of log spam from the Grab Fanart addon (I'll admit, in debug mode this thing is annoying).

Code:
09:33:11 T:1996   DEBUG: ADDON: Stopping service addons.

Here is where XBMC finally decided it's time to shutdown the service addons. This is a full minute after the shutdown command already. None of the service addons would have stopped running until this point.

First up is CU LRC Lyrics - it shuts down in 412ms
Next is Skin Widgets - this takes 154ms
Then StorageServer - 64ms
Finally the Fanart Grabber - 434ms

These messages end where AE starts to shutdown:
Code:
09:33:12 T:3028   DEBUG: Thread ActiveAE 3028 terminating

Then a bunch of other shutdown messages as the system unloads, with the final message
Code:
09:33:13 T:1996   DEBUG: SECTION:UnloadAll(DLL: special://xbmcbin/system/players/dvdplayer/avfilter-3.dll)

If you look at all of this together, thre is a full minute from the shutdown command until any of the service addons are even attempted to stop. This means that saving settings, any open players, connections, non-service addons holding resources, and the PVR manager are all shutting down first. The service addons are only taking approx 1 second based on the logs.

Only thing that I can see that might cause a hangup is that it looks like there are several of these errors
Code:
09:32:20 T:3492   ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)

If it is XBMC's policy to wait until these file actions have fully completed before completing the shutdown then you probably have the culprit. These could be related to any type of file that couldn't be opened, maybe trying to load fanart, maybe not. Really depends on if your image cache is local, if it is trying to pull an image over the internet, if the network connections are still available, etc, etc. Not really the addon's fault if that's the case. It's shutting down correctly once the shutdown command is issued to it, until then it's just business as normal.
Reply
#13
Thanks for the thorough reply.

As far as my internet connection, it is working. Also, I get the long shutdown problem even if I open a fresh xbmc and try to close it right away. In this case, why would the script try to download a fanart out of the blue?
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC takes a mintue to exit0