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.