Kodi Community Forum

Full Version: Picture Slideshow Screensaver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2017-01-14, 13:48)khaoohs Wrote: [ -> ]Thanks, that fixed it.

great, thanx for the confirmation :-)
Ever since I've upgraded to Krypton some (not all) of the pictures in the slideshow are blocky - low resolution, never had this problem before. Is there anything I need to clear down?

If it helps the pictures that appear low res do not have a picture taken date in the lower left - the ones that appear as normal do.

Thanks for your help
After installing kodi 17, images from an smb folder doesn't seem to be working. I get only spinning circles. It can see the folders in the smb share fine, but nothing else.
(2017-02-19, 04:22)illumilore Wrote: [ -> ]After installing kodi 17, images from an smb folder doesn't seem to be working. I get only spinning circles. It can see the folders in the smb share fine, but nothing else.

please provide a Debug Log
Which platform? I had spinning circles most of the time on Kodibuntu with Kodi 16, but I switched to LibreElec and I haven't seen them since.
(2017-02-19, 14:47)ronie Wrote: [ -> ]
(2017-02-19, 04:22)illumilore Wrote: [ -> ]After installing kodi 17, images from an smb folder doesn't seem to be working. I get only spinning circles. It can see the folders in the smb share fine, but nothing else.

please provide a Debug Log
Here is the log from .kodi/temp when I try to run the screensaver

Code:
14:45:55.304 T:140649116424576   DEBUG: Keyboard: scancode: 0x6f, sym: 0x0111, unicode: 0x0000, modifier: 0x0
14:45:55.304 T:140649116424576   DEBUG: OnKey: up (0xf080) pressed, action is Up
14:45:55.418 T:140649116424576   DEBUG: Keyboard: scancode: 0x6f, sym: 0x0111, unicode: 0x0000, modifier: 0x0
14:45:55.600 T:140649116424576   DEBUG: Keyboard: scancode: 0x71, sym: 0x0114, unicode: 0x0000, modifier: 0x0
14:45:55.600 T:140649116424576   DEBUG: OnKey: left (0xf082) pressed, action is Left
14:45:55.733 T:140649116424576   DEBUG: Keyboard: scancode: 0x71, sym: 0x0114, unicode: 0x0000, modifier: 0x0
14:45:55.940 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
14:45:56.116 T:140649116424576   DEBUG: OnKey: return (0xf00d) pressed, action is Select
14:45:56.116 T:140649116424576   DEBUG: Activating window ID: 10032
14:45:56.420 T:140649116424576   DEBUG: ------ Window Deinit (Settings.xml) ------
14:45:56.433 T:140649116424576   DEBUG: ------ Window Init (SettingsCategory.xml) ------
14:45:56.438 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
14:45:57.680 T:140649116424576   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
14:45:57.680 T:140649116424576   DEBUG: OnKey: down (0xf081) pressed, action is Down
14:45:57.822 T:140649116424576   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
14:45:57.904 T:140649116424576   DEBUG: Previous line repeats 1 times.
14:45:57.904 T:140649116424576   DEBUG: OnKey: down (0xf081) pressed, action is Down
14:45:58.015 T:140649116424576   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
14:45:58.514 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
14:45:58.560 T:140649116424576  NOTICE: Samba is idle. Closing the remaining connections
14:45:58.698 T:140649116424576   DEBUG: OnKey: return (0xf00d) pressed, action is Select
14:45:58.698 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
14:45:59.531 T:140649116424576   DEBUG: Keyboard: scancode: 0x72, sym: 0x0113, unicode: 0x0000, modifier: 0x0
14:45:59.531 T:140649116424576   DEBUG: OnKey: right (0xf083) pressed, action is Right
14:45:59.683 T:140649116424576   DEBUG: Keyboard: scancode: 0x72, sym: 0x0113, unicode: 0x0000, modifier: 0x0
14:45:59.834 T:140649116424576   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
14:45:59.834 T:140649116424576   DEBUG: OnKey: down (0xf081) pressed, action is Down
14:45:59.967 T:140649116424576   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
14:46:00.049 T:140649116424576   DEBUG: Previous line repeats 1 times.
14:46:00.049 T:140649116424576   DEBUG: OnKey: down (0xf081) pressed, action is Down
14:46:00.167 T:140649116424576   DEBUG: Keyboard: scancode: 0x74, sym: 0x0112, unicode: 0x0000, modifier: 0x0
14:46:00.332 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
14:46:00.499 T:140649116424576   DEBUG: OnKey: return (0xf00d) pressed, action is Select
14:46:00.499 T:140649116424576   DEBUG: Activating window ID: 12900
14:46:00.499 T:140648597886720   DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
14:46:00.499 T:140648597886720   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
14:46:00.817 T:140649116424576   DEBUG: ------ Window Deinit (SettingsCategory.xml) ------
14:46:00.832 T:140649116424576   DEBUG: ------ Window Init () ------
14:46:00.833 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
14:46:00.833 T:140648493606656   DEBUG: Thread LanguageInvoker start, auto delete: false
14:46:00.833 T:140648493606656    INFO: initializing python engine.
14:46:00.833 T:140648493606656   DEBUG: CPythonInvoker(10, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): start processing
14:46:00.919 T:140648493606656   DEBUG: -->Python Interpreter Initialized<--
14:46:00.919 T:140648493606656   DEBUG: CPythonInvoker(10, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): the source file to load is "/home/ill/.kodi/addons/screensaver.picture.slideshow/default.py"
14:46:00.919 T:140648493606656   DEBUG: CPythonInvoker(10, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): setting the Python path to /home/ill/.kodi/addons/screensaver.picture.slideshow:/home/ill/.kodi/addons/script.module.elementtree/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/python2.7/dist-packages/ubuntu-sso-client
14:46:00.919 T:140648493606656   DEBUG: CPythonInvoker(10, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): entering source directory /home/ill/.kodi/addons/screensaver.picture.slideshow
14:46:00.919 T:140648493606656   DEBUG: CPythonInvoker(10, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): instantiating addon using automatically obtained id of "screensaver.picture.slideshow" dependent on version 2.25.0 of the xbmc.python api
14:46:01.029 T:140648493606656   DEBUG: screensaver.picture.slideshow: script version 4.2.1 started
14:46:01.131 T:140648493606656 WARNING: CSkinInfo: failed to load skin settings
14:46:01.147 T:140649116424576   DEBUG: ------ Window Init (/home/ill/.kodi/addons/screensaver.picture.slideshow/resources/skins/default/720p/script-python-slideshow.xml) ------
14:46:01.147 T:140649116424576    INFO: Loading skin file: /home/ill/.kodi/addons/screensaver.picture.slideshow/resources/skins/default/720p/script-python-slideshow.xml, load type: LOAD_ON_GUI_INIT
14:46:01.153 T:140649116424576   DEBUG: CGUIMediaWindow::GetDirectory ()
14:46:01.153 T:140649116424576   DEBUG:   ParentPath = []
14:46:01.171 T:140648493606656   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'skinpath' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/home/ill/.kodi/addons/screensaver.picture.slideshow/resources/lib/gui.py", line 57, in onInit
                                                effectslowdown = self._get_animspeed()
                                              File "/home/ill/.kodi/addons/screensaver.picture.slideshow/resources/lib/gui.py", line 397, in _get_animspeed
                                                skinxml = xbmc.translatePath( os.path.join( skinpath, 'addon.xml' ).encode('utf-8') ).decode('utf-8')
                                            UnboundLocalError: local variable 'skinpath' referenced before assignment
                                            -->End of Python script error report<--
great, thx!

the screensaver is crashing at startup, though i'm not sure why.
could you please create a new Debug Log using this version:
screensaver.picture.slideshow-4.2.2.zip

and please provide the entire log, instead of just a part.
you can post it on http://paste.ubuntu.com/ for instance.
(2017-02-20, 00:45)ronie Wrote: [ -> ]great, thx!

the screensaver is crashing at startup, though i'm not sure why.
could you please create a new Debug Log using this version:
screensaver.picture.slideshow-4.2.2.zip

and please provide the entire log, instead of just a part.
you can post it on http://paste.ubuntu.com/ for instance.
Everything above this code is keypresses or from another day.
This is after updating the addon with that zip file:
Code:
21:14:12.488 T:140649116424576   DEBUG: OnKey: return (0xf00d) pressed, action is Select
21:14:12.489 T:140649116424576   DEBUG: Activating window ID: 12900
21:14:12.489 T:140648597886720   DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
21:14:12.489 T:140648597886720   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
21:14:12.788 T:140649116424576   DEBUG: ------ Window Deinit (SettingsCategory.xml) ------
21:14:12.803 T:140649116424576   DEBUG: ------ Window Init () ------
21:14:12.803 T:140649116424576   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
21:14:12.803 T:140648493606656   DEBUG: Thread LanguageInvoker start, auto delete: false
21:14:12.804 T:140648493606656    INFO: initializing python engine.
21:14:12.804 T:140648493606656   DEBUG: CPythonInvoker(21, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): start processing
21:14:12.889 T:140648493606656   DEBUG: -->Python Interpreter Initialized<--
21:14:12.889 T:140648493606656   DEBUG: CPythonInvoker(21, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): the source file to load is "/home/ill/.kodi/addons/screensaver.picture.slideshow/default.py"
21:14:12.889 T:140648493606656   DEBUG: CPythonInvoker(21, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): setting the Python path to /home/ill/.kodi/addons/screensaver.picture.slideshow:/home/ill/.kodi/addons/script.module.elementtree/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/python2.7/dist-packages/ubuntu-sso-client
21:14:12.889 T:140648493606656   DEBUG: CPythonInvoker(21, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): entering source directory /home/ill/.kodi/addons/screensaver.picture.slideshow
21:14:12.889 T:140648493606656   DEBUG: CPythonInvoker(21, /home/ill/.kodi/addons/screensaver.picture.slideshow/default.py): instantiating addon using automatically obtained id of "screensaver.picture.slideshow" dependent on version 2.25.0 of the xbmc.python api
21:14:12.996 T:140648493606656   DEBUG: screensaver.picture.slideshow: script version 4.2.2 started
21:14:13.102 T:140648493606656 WARNING: CSkinInfo: failed to load skin settings
21:14:13.119 T:140649116424576   DEBUG: ------ Window Init (/home/ill/.kodi/addons/screensaver.picture.slideshow/resources/skins/default/720p/script-python-slideshow.xml) ------
21:14:13.119 T:140649116424576    INFO: Loading skin file: /home/ill/.kodi/addons/screensaver.picture.slideshow/resources/skins/default/720p/script-python-slideshow.xml, load type: LOAD_ON_GUI_INIT
21:14:13.128 T:140649116424576   DEBUG: CGUIMediaWindow::GetDirectory ()
21:14:13.128 T:140649116424576   DEBUG:   ParentPath = []
21:14:13.144 T:140648493606656   DEBUG: =====================================================
21:14:13.144 T:140648493606656   DEBUG: screensaver.picture.slideshow: Confluence
21:14:13.144 T:140648493606656   DEBUG: screensaver.picture.slideshow: {"error":{"code":-32602,"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
21:14:13.144 T:140648493606656   DEBUG: ======================================================
21:14:13.145 T:140648493606656   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'skinpath' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/home/ill/.kodi/addons/screensaver.picture.slideshow/resources/lib/gui.py", line 57, in onInit
                                                effectslowdown = self._get_animspeed()
                                              File "/home/ill/.kodi/addons/screensaver.picture.slideshow/resources/lib/gui.py", line 401, in _get_animspeed
                                                skinxml = xbmc.translatePath( os.path.join( skinpath, 'addon.xml' ).encode('utf-8') ).decode('utf-8')
                                            UnboundLocalError: local variable 'skinpath' referenced before assignment
                                            -->End of Python script error report<--
(2017-02-21, 06:18)illumilore Wrote: [ -> ]
(2017-02-20, 00:45)ronie Wrote: [ -> ]and please provide the entire log, instead of just a part.
you can post it on http://paste.ubuntu.com/ for instance.
Everything above this code is keypresses or from another day.
sorry, can't help you then. the log snippet doesn't provide enough info to track down what's going wrong.
Hi Ronie.
After upgrading from KodiV16 to KodiV17, the screensaver add on now seems to struggle with higher resolution or larger file sizes. I am not sure if this is a screensaver issue directly or Kodi related problem.

My images display from a set NFS network folder. They display using pan and scan atfull screen. Since updating to V17, the transition between stills is no longer smooth. If the next image is a lower resolution/filesize, the transition is smooth and the images "blend", if the next image is a larger filesize/resolution, then the last picture fades to black before the image "pops". There is no transition.

Note the "larger images" are not really that big. They are still jpegs at less than 5MB with a resolution around 4352x2904. Th lower resolution images areless than 2MB and a resolution of less than 3000x2000. I have not done any detailed analysis yet, but this has never been a problem until upgrading this time.

Are you aware of any issues? Anything obvious I can check? Thanks.
nope, i'm not aware of any potential causes.

there were hardly any changes to this screensaver between jarvis / krypton.
lots of changes in kodi itself ofc, but i don't know of any that would impact the loading of images.

from your description, it sounds like kodi is taking too long to load the images from your nfs share.
(2017-02-23, 18:09)ronie Wrote: [ -> ]nope, i'm not aware of any potential causes.

there were hardly any changes to this screensaver between jarvis / krypton.
lots of changes in kodi itself ofc, but i don't know of any that would impact the loading of images.

from your description, it sounds like kodi is taking too long to load the images from your nfs share.

Thanks Ronie. I'll copy some locally to see if it is related. Something doesn't see quite right with this update. When the images pan, it also judders periodically too.
you can enable debug logging and check the kodi.log file, perhaps there are some clues in there

also perhaps check cpu / memory usage on your system...
(2017-02-21, 15:56)ronie Wrote: [ -> ]
(2017-02-21, 06:18)illumilore Wrote: [ -> ]
(2017-02-20, 00:45)ronie Wrote: [ -> ]and please provide the entire log, instead of just a part.
you can post it on http://paste.ubuntu.com/ for instance.
Everything above this code is keypresses or from another day.
sorry, can't help you then. the log snippet doesn't provide enough info to track down what's going wrong.

What else do you need?
(2017-02-23, 22:16)illumilore Wrote: [ -> ]
(2017-02-21, 15:56)ronie Wrote: [ -> ]
(2017-02-21, 06:18)illumilore Wrote: [ -> ]Everything above this code is keypresses or from another day.
sorry, can't help you then. the log snippet doesn't provide enough info to track down what's going wrong.

What else do you need?

the full logfile please