Kodi Community Forum

Full Version: XBMC hangs shutting down - might be ALSA sink issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been having issues with XBMC hanging while shutting down for a long time now. The only way to kill xbmc.bin is with a kill -9 command.

I'm running a recent built from source version of XBMC on an old version of Mythbuntu.

I'm looking for suggestions for what to try to diagnose further. I've just got a plasma TV and had an image retention problem recently when XBMC tried to shutdown, hung and then stayed on screen for an hour or so while I was out.

A snapshot of the tail end of the log when shutting down can be found at: http://pastebin.com/wUDbN93r

I've looked at a few logs and they all appear to stop at the same point:

Code:
22:42:54 T:139894570923904  NOTICE: stop player
22:42:54 T:139894570923904  NOTICE: stop sap announcement listener
22:42:54 T:139894570923904  NOTICE: clean cached files!
22:42:54 T:139894570923904  NOTICE: unload skin
22:42:54 T:139894570923904    INFO: Unloading old skin ...
22:42:54 T:139894570923904   DEBUG: ------ Window Deinit (Home.xml) ------
22:42:54 T:139894570923904   DEBUG: Cleanup - Closed bundle
22:42:54 T:139894570923904   DEBUG: ADDON: Stopping service addons.
22:43:04 T:139894367758080   DEBUG: Suspended the Sink
I don't think it is the sink. check the line before which is the main thread. some time ago I paused the debugger in this state: it's some problem with an addon but I did not investigate further.
I had some old directories in /home/xbmc/.xbmc/addons so I just nuked that directory, restarted XBMC and now it shuts down fine. So, shutdown was definitely related to an addon in there.

Thanks for your help!
If it happens next time, please "disable the xbmc version check update addon" for a test. I constantly run into this problem and in the debugger a Python thread was blocked, cause not getting the global Lock. There xbmc was locked in sem_wait(). It is in System -> Addons -> Enabled Addons -> Service -> xbmc version check
I had the same lockup while shutdown...

DEBUG: ADDON: Stopping service addons.

...was all I could see in the log. Disabled "XBMC version check" addon as suggested by fritsch and my shutdown problems are history. Thanks for the hint fritsch! Smile