v16 Quit command hangs
#1
I am having trouble with quit in the Titan Skin. I am on Windows 10 evaluation copy 14257 with Kodi 16 RC3. I have found the following link that works with all skins I have tried but not Titan: http://skydusk.com/2015/09/02/fix-kodi-exit-hang.html.
I prefer Titan. Is there a way to apply the fix above to Titan? The file to change is there, but not the <onclick> command within the file. If it is not there is it in another file?
I have searched the forums, but it seems there are not many experiencing this problem. Is there another fix I have not been able to locate?
Reply
#2
The power menu in Titan is customizable so you won't be able to do this in the xml files.
You will have to go to skin settings --> configure menu --> customize power menu
Set the quit shortcut to custom action and type that manual command.

That said, I have a question for you. Do you Always shutdown your computer by pulling the plug out ?
No offense, but this proposed "fix" is exactly that. Instead of shutting down Kodi correctly it will kill the process.
I won't be surpised if you will have database or settings issues this way because Kodi needs a proper shutdown, not a kill.

If Kodi hangs at shutdown it simply means that some process is blocking Kodi to properly shutdown. Almost in all cases this will be a crappy addon that doesn't handle the shutdown very well.

My advice would be to investigate which addon is causing your shutdown issues instead of corrupting Kodi with this kill hack.
Most of the times the Kodi log file will tell you what addon it is because after issuing the shutdown command there will be something like "addon x didn't respond..."

Just my 2 cents...

BTW: I run Kodi on all kinds of machines (including windows 10) and it shuts down properly in about 1 or 2 seconds.
Reply
#3
Marcel, you are right of course and I have been trying to locate a problem addon. I have disabled everything possible except for titan and argus tv pvr and still no success. I will say that quit hangs then one or two mouse clicks will close kodi.
Would you be prepared to look at the following excerp from the log to see if you can identify anything causing my problem:
10:30:15 T:8960 ERROR: Previous line repeats 1 times.
10:30:15 T:8960 NOTICE: Storing total System Uptime
10:30:15 T:8960 NOTICE: Saving settings
10:30:15 T:8960 NOTICE: stop all
10:30:15 T:8960 NOTICE: stop player
10:30:15 T:8960 NOTICE: PVRManager - stopping
10:30:15 T:8960 NOTICE: ES: Stopping event server
10:30:15 T:8960 NOTICE: stopping upnp
10:30:15 T:8960 NOTICE: Platinum [platinum.core.upnp]: Stopping UPnP...
10:30:15 T:9804 WARNING: Platinum [platinum.core.http.servertask]: PLT_HttpListenTask exiting with -20021 (NPT_ERROR_CANCELLED)
10:30:15 T:3852 WARNING: Platinum [neptune.bufferedstreams]: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(__result)]
10:30:15 T:3852 WARNING: Previous line repeats 1 times.
10:30:15 T:3852 WARNING: Platinum [neptune.http]: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(res)]
10:30:15 T:3852 WARNING: Previous line repeats 1 times.
10:30:15 T:3852 WARNING: Platinum [platinum.core.ssdp]: PLT_SsdpSearchTask got an error (-20021) waiting for response
10:30:15 T:8960 WARNING: Previous line repeats 1 times.
10:30:15 T:8960 WARNING: Platinum [platinum.core.http.server]: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(((-20000-0) - 9))]
10:30:15 T:4432 WARNING: Platinum [neptune.bufferedstreams]: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(__result)]
10:30:15 T:4432 WARNING: Platinum [platinum.core.http.servertask]: NPT_CHECK failed, result=-20021 (NPT_ERROR_CANCELLED) [(res)]
10:30:15 T:8960 WARNING: Platinum [platinum.core.upnp]: NPT_CHECK failed, result=-20009 (NPT_ERROR_INVALID_STATE) [(((-20000-0) - 9))]
10:30:16 T:9780 NOTICE: ES: UDP Event server stopped
10:30:16 T:8960 NOTICE: stop sap announcement listener
10:30:16 T:8960 NOTICE: clean cached files!
10:30:16 T:8960 NOTICE: unload skin
10:30:17 T:7792 ERROR: EXCEPTION: argument "path" for method "XBMCAddon::xbmcvfs::exists" must be unicode or str
10:30:17 T:7792 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: argument "path" for method "XBMCAddon::xbmcvfs::exists" must be unicode or str
Traceback (most recent call last):
File "C:\Users\beach\AppData\Roaming\Kodi\addons\script.common.plugin.cache\default.py", line 40, in <module>
run()
File "C:\Users\beach\AppData\Roaming\Kodi\addons\script.common.plugin.cache\default.py", line 35, in run
s.run()
File "C:\Users\beach\AppData\Roaming\Kodi\addons\script.common.plugin.cache/lib\StorageServer.py", line 263, in run
if self.xbmcvfs.exists(self.socket):
TypeError: argument "path" for method "XBMCAddon::xbmcvfs::exists" must be unicode or str
-->End of Python script error report<--
10:30:17 T:1716 NOTICE: Skin Helper Service --> Shutdown requested !
10:30:17 T:1716 NOTICE: Skin Helper Service --> BackgroundsUpdater - stop called
10:30:17 T:1716 NOTICE: Skin Helper Service --> HomeMonitor - stop called
10:30:17 T:1716 NOTICE: Skin Helper Service --> WebService - stop called
10:30:17 T:1716 NOTICE: Skin Helper Service --> skin helper service version 1.0.23 stopped
10:30:23 T:8960 NOTICE: stopped
10:30:23 T:8960 NOTICE: destroy
10:30:23 T:8960 NOTICE: closing down remote control service
10:30:23 T:8960 NOTICE: unload sections
10:30:23 T:8960 NOTICE: special://profile/ is mapped to: special://masterprofile/
10:30:23 T:8960 NOTICE: destroy
10:30:23 T:8960 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10021 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
10:30:23 T:8960 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
10:30:23 T:8960 NOTICE: closing down remote control service
10:30:23 T:8960 NOTICE: unload sections
10:30:23 T:8960 NOTICE: application stopped...
10:30:23 T:8960 ERROR: dllFreeLibrary - Invalid hModule specified
Reply
#4
There is still an addon blocking the python interface and thus delaying the shutdown.

Notice these lines:

10:30:17 T:1716 NOTICE: Skin Helper Service --> skin helper service version 1.0.23 stopped
10:30:23 T:8960 NOTICE: stopped

There is a 6 seconds gap between the stop of skinhelper addon (which stops within 1 second) and the next addon which only displays "stopped"...

A couple of things to do:

1. turn on debug logigng in Kodi and look at the log again if you can find out which addon printed "stopped" and was delaying
2. Do a search in all files (with notepad++ for example) to locate any addons that perform xbmc.log("stopped)" or something like that.
Reply
#5
Thank you for your response. I decided to uninstall Kodi and reinstall Ver 15. Surprisingly it closes perfectly. Then upgraded to 16 rc3 and the same problem was there.
For now I will stick on 15 and will take up the problem in Kodi forum.
Thanks again for your help.
Reply
#6
If Kodi hangs at shutdown it simply means that some process is blocking Kodi to properly shutdown. Almost in all cases this will be a crappy addon that doesn't handle the shutdown very well.

I had a problem with Kodi hanging on shutdown and found several orphaned add-on's, which related to those IPTV junk add-on's. Removing the orphans fixed my problem.
Reply

Logout Mark Read Team Forum Stats Members Help
Quit command hangs0