2015-12-23, 23:07
(2015-12-23, 05:31)graysky Wrote: I am getting a freeze of the kodi interface when this screensaver is invoked on an up-to-date Arch box. Here is the debug log as the screensaver is activated after the timeout period:
Code:22:25:02 T:139951226218624 DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
22:25:02 T:139951226218624 DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
22:25:02 T:139951226218624 DEBUG: Activating window ID: 12900
22:25:02 T:139951226218624 DEBUG: ------ Window Deinit (SettingsCategory.xml) ------
22:25:02 T:139951226218624 DEBUG: ------ Window Init () ------
22:25:02 T:139949689005824 NOTICE: Thread LanguageInvoker start, auto delete: false
22:25:02 T:139949689005824 INFO: initializing python engine.
22:25:02 T:139949689005824 DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): start processing
22:25:02 T:139949689005824 NOTICE: -->Python Interpreter Initialized<--
22:25:02 T:139949689005824 DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): the source file to load is "/var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py"
22:25:02 T:139949689005824 DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): setting the Python path to /var/lib/kodi/.kodi/addons/screensaver.atv4:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages
22:25:02 T:139949689005824 DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): entering source directory /var/lib/kodi/.kodi/addons/screensaver.atv4
22:25:02 T:139949689005824 DEBUG: CPythonInvoker(6, /var/lib/kodi/.kodi/addons/screensaver.atv4/atv.py): instantiating addon using automatically obtained id of "screensaver.atv4" dependent on version 2.1.0 of the xbmc.python api
22:25:02 T:139949689005824 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
22:25:02 T:139951226218624 DEBUG: started alarm with name: sssssscreensaver
22:25:02 T:139951226218624 DEBUG: ------ Window Deinit () ------
22:25:02 T:139949689005824 DEBUG: CGUIWindowManager::PreviousWindow: Activate new
22:25:02 T:139949689005824 DEBUG: ------ Window Init (SettingsCategory.xml) ------
22:25:02 T:139950066579200 NOTICE: Thread AlarmClock start, auto delete: false
22:25:02 T:139949689005824 DEBUG: CAnnouncementManager - Announcement: OnScreensaverDeactivated from xbmc
22:25:02 T:139949689005824 DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverDeactivated
22:25:02 T:139949689005824 DEBUG: POParser: loaded 19 strings from file /var/lib/kodi/.kodi/addons/screensaver.atv4/resources/language/English/strings.po
22:25:02 T:139951226218624 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:25:02 T:139951226218624 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
22:25:02 T:139951226218624 DEBUG: Loading: /usr/lib/kodi/system/ImageLib-x86_64-linux.so
22:25:04 T:139951226218624 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
The entire GUI is frozen at this point.
Problem is that a video is not really a screensaver, when you start a video you basically deactivate the screensaver. So the addon does a sort of a hack...
It starts by calling some input for the screensaver to be deactivated, waits for the event and starts the video playback. Sometimes, or for some machines the waiting time may not be enough and the screensaver starts playing near the deactivate action..freezing the interface.
I'll probably add a setting for users to configure this waiting timeout manually