Bug 5827 - sleepStartFade causes slimserver to hang
: sleepStartFade causes slimserver to hang
Status: CLOSED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 6.5.4
: Other Debian Linux
: P2 major (vote)
: ---
Assigned To: Ross Levine
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-17 06:16 UTC by Brett
Modified: 2008-12-18 11:12 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett 2007-10-17 06:16:39 UTC
Server: QNAP TS-209 Firmware 1.1.2 1009 (ARM processor)
Slimserver 6.5.4 (ProgressiveAV's Debian etch chroot bootstrap)

With my Squeezebox 3 set to sleep, slimserver.pl roughly 1 minute prior to the sleep time expires will hang.
slimserver.pl during this hang it is stuck at ~99% cpu usage and the process can not be stopped(I can kill -9 the pid fine). All things handled by slimserver are not reachable, eg the screen on the sb3 will not update, the web server can not be reached and logging stops.

This is tested on web mp3 streams and local flac files.

With d_ui debugging on the log ends in *many*:
entering fade_volume:  fade: -60 to...
fade_volume - setting volume to...
Yet the volume has barely changed going from 69 it gets to only 67 then stops responding. The volume each time was only going down by about .01 at a time and was doing so "nonstop".

If I comment out the timer on line 485 in /Player/Player.pm slimserver.pl does not hang, ofcourse the volume does not fade down either.
Comment 1 Chris Owens 2007-11-05 10:51:29 UTC
QA to test sleep under debian for 7.0
Comment 2 Ross Levine 2007-11-13 11:58:17 UTC
Tested with Ubuntu 7.10 (SC7) and I can't reproduce this, sleep works as I expect it should, and no cpu utilization issues. 

Do we have a QNAP around?
Comment 3 Brett 2007-11-14 23:16:42 UTC
Ross Levine, can I ask with debugging on as I described what should I find in the log?
Should it really spew hundreds of lines saying it is fading by a tiny amount? For some reason my hunch is that the increment that the volume is changing is wrong. It just feels like the volume is not suppose to roll off as slowly as it was trying.
 
I also could temporarily donate remote ssh access to a QNAP TS-209 with slimserver installed if you require more handson testing.
 
So far several other QNAP users have reported the same bug, maybe it is unique to the QNAP environment?
Comment 4 Ross Levine 2007-11-26 16:51:15 UTC
Brett,

I'm not 100% sure what we should find in the log, I'm hoping that is obvious once I reproduce the issue. We do have a QNAP around here I believe Steven might be working with it. I'll talk to him and give another try and reproducing this, it shouldn't be difficult. I too believe it's specific to the hardware, we'll soon see. 

Thanks for offering access but I'll give a try at reproducing this locally. 
Comment 5 Michael Herger 2007-12-21 04:22:39 UTC
Can we close this issue as it's fixed in 7.0?
Comment 6 Ross Levine 2007-12-21 12:55:27 UTC
If anyone objects please feel free to re-open. 
Comment 7 Chris Owens 2008-03-07 09:05:05 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.