2014-08-14, 01:46
Weird.
Does it happen with Confluence? My guess is it's something about the skin you're using.
Does it happen with Confluence? My guess is it's something about the skin you're using.
18:31:33 T:140594617112320 DEBUG: [Artist Slideshow] ArtistSlideshow.50.AlbumName set to
18:31:33 T:140594617112320 DEBUG: [Artist Slideshow] ArtistSlideshow.50.AlbumThumb set to
18:31:33 T:140594617112320 DEBUG: [Artist Slideshow] unexpected error while setting property.
18:31:33 T:140594617112320 DEBUG: [Artist Slideshow] global name 'slideshow' is not defined
18:31:33 T:140594617112320 NOTICE: [Artist Slideshow] script stopped
18:31:33 T:140594617112320 INFO: CPythonInvoker(26, /home/xbmc/.xbmc/addons/script.artistslideshow/default.py): script successfully run
18:31:33 T:140594617112320 INFO: Python script stopped
18:31:33 T:140594617112320 DEBUG: Thread LanguageInvoker 140594617112320 terminating
18:31:33 T:140596459058944 DEBUG: ### XSqueeze-1.1.1 ### Still waiting for artistslideshow to stop
18:31:34 T:140598055720896 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
18:31:34 T:140596459058944 DEBUG: ### XSqueeze-1.1.1 ### Still waiting for artistslideshow to stop
18:31:39 T:140595116881664 DEBUG: Previous line repeats 4 times.
def update(self):
while self.running:
#don't need the lock to sleep...and don't need to thash this machine...
log("Sleep baby sleep, for a while...")
xbmc.sleep(500)
log("Ok, update the GUI after your rest you lazy bugger...")
with self.lock:
if constants.PLAYERTYPE=="squeezeslave":
self.updateLineDisplay()
(...etc... leave the rest as is)
(2014-08-26, 03:20)bossanova808 Wrote: Yeah latest Artist Slideshow quitting seems to be an issue.
I've just updated XSqueeze - it now closes irregardless of whether AS says it has exited cleanly after a (configurable) 4 second default. See the new 'troubleshooting' settings page. Even setting this down to one second and closing before AS exits appears to work ok with limited testing but in the past this caused crashes (which is why the wait was implemented originally). Fingers crossed other changes have in xbmc python process handling have stopped these crashes (in which case set it to 0 for fastest exit!).
Also fixed some potential but rare errors with unicode characters, and updated squeezelite binaries to latest.
Let me know how you go!
(2014-08-26, 05:16)bossanova808 Wrote: Hey
I am pretty sure that it's not the AS stuff but the polling...I just think it's all too CPU intensive for the Pi.
But - you can try it easily by commenting out some lines in NowPlayingWindow.py around ~250:
# log("Starting ArtistSlideshow thread")
# self.thread2 = threading.Thread(target=self.runArtistSlideshow)
# self.thread2.setDaemon(True)
# self.thread2.start()
This is in the addon dir/script.xsqueeze/resources/lib/classes/
Just put the hashes in front.
Let me know what, if any, effect that has.
Actually, another easy thing to try if you're game - in the method below that (called update), change the top few lines to:
Code:def update(self):
while self.running:
#don't need the lock to sleep...and don't need to thash this machine...
log("Sleep baby sleep, for a while...")
xbmc.sleep(500)
log("Ok, update the GUI after your rest you lazy bugger...")
with self.lock:
if constants.PLAYERTYPE=="squeezeslave":
self.updateLineDisplay()
(...etc... leave the rest as is)
Note in python indentation is critical so it has to look like that...
This basically makes xbmc sleep a bit between updating the GUI, reducing the work a lot I think. Might well have a positive effect on the Pi (and doesn't seem to cause any trouble on other platforms in some quick testing)
Can you try those two things, especially this second one, and let me know?