Posts: 1,585
Joined: Nov 2007
Reputation:
44
wyrm
Skilled Skinner
Posts: 1,585
Increasingly we are seeing Kodi taking longer to shut down, I would like to see the default time before Kodi force closes scripts reduced to one second (down from current 5 seconds). This problem is due mainly to skin writers requiring numerous scripts (so user can't uninstall them) and poorly written script exit code. There are a number of good examples of scripts that cleanup quickly and exit, Marcel's skin helper script exits in about 1/3 of a second and Rob Webset's scripts are also good examples of scripts that just get the hell out of the way.
This change is likely to have a minimal impact on scripts as those script likely to be affected are currently being force closed anyway. Currently it only takes six slow scripts to add 30 seconds to the shutdown time of Kodi and most systems have way more than six scripts installed (most of which most users are not even aware of).
Wyrm (AppTV)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions
here if you can't access skin settings.
FAQ's located at :-
http://kodi.wiki/view/Add-on:AppTV
Posts: 15,264
Joined: Jan 2009
Reputation:
728
ronie
Team-Kodi Member
Posts: 15,264
some python n00bs (me) could probably use some help and guidance on how to improve script shutdown times.
for instance the weather addon downloads images from openweathermap.
the site is known to be very slow at times, it can take 8 secs to get a response.
i have no idea how to kill the script while it's waiting for a response.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
Not so much a witch hunt, but developers need to be "incentivized" to make these changes as individually they may not consider it necessary to make any changes when 5 seconds for their script/addon alone to shutdown is not a big deal, but in a real world situation with multiple scripts/addons being used together it all adds up to ridiculously slow shutdowns. This problem is not new, yet here we are. Asking nicely will only achieve so much, and is unlikely to eradicate the problem. The official repo is (or should be) a stamp of approval that certain requirements have been met by the script, addon, skin etc. and a timely shutdown requirement could/should be added to the list.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.