Bug 10092 - Squeezebox volume set to zero after an alarm
: Squeezebox volume set to zero after an alarm
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Alarm
: 7.3.0
: Macintosh MacOS X 10.5
: -- normal (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-20 12:47 UTC by Richard Sharpe
Modified: 2009-07-31 10:32 UTC (History)
5 users (show)

See Also:
Category: ---


Attachments
Log file with various server options set to 'debug' (73.61 KB, application/zip)
2008-11-23 01:39 UTC, Richard Sharpe
Details
player.alarmclock degugging (2.06 KB, application/zip)
2008-11-24 14:51 UTC, Richard Sharpe
Details
player.alarmclock = debug (8.84 KB, text/plain)
2008-11-24 15:07 UTC, James Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Sharpe 2008-11-20 12:47:40 UTC
After an alarm has gone off (playing either Internet radio or music library content) the volume on the Squeezebox is set to zero - rather than resetting to the player volume level before the alarm.

It appears that the problem only exists if the alarm is manually stopped. If the alarm runs for the full 'time out' period (and turns off automatically), the previous (pre alarm) volume is restored correctly.
Comment 1 Richard Sharpe 2008-11-20 12:51:07 UTC
Some more info:

Running SC 7.3 (23938)
Mac Mini Core Duo
Squeezebox v3; firmware 119
Wired connection

The alarm is set to 'fade in' - despite that bug 10060 means that this function doesn't work.

Comment 2 Richard Sharpe 2008-11-20 12:54:41 UTC
Problem also exists with alarm 'fade in' disabled.
Comment 3 James Richardson 2008-11-22 19:04:01 UTC
Richard: can you please attach a log file of the error
Comment 4 Richard Sharpe 2008-11-23 01:39:23 UTC
Created attachment 4319 [details]
Log file with various server options set to 'debug'
Comment 5 Richard Sharpe 2008-11-23 01:41:01 UTC
Comment on attachment 4319 [details]
Log file with various server options set to 'debug'

A log for an alarm that fired at 09:28. Not sure if I have captured anything useful or not.

If not - please let me know which logging settings you woudl like to see.
Comment 6 Blackketter Dean 2008-11-23 14:25:57 UTC
Max: can you take a look at this?
Comment 7 Chris Owens 2008-11-24 10:00:10 UTC
Andy and Michael both note they have seen this bug.  Andy to have a look for 7.3 since Max isn't available for a while.
Comment 8 Andy Grundman 2008-11-24 13:22:02 UTC
I do see this a lot but can't reproduce it now.

QA: can you take a crack at it?

Enable player.alarmclock debugging.
Comment 9 Richard Sharpe 2008-11-24 14:51:29 UTC
Created attachment 4332 [details]
player.alarmclock degugging

Thanks for the update. Tried again with player.alarmclock debugging set.

Test process:

1. Set alarm (with radio source) using web interface
2. Wait for alarm to trigger
3. Wait 30-45 seconds listening to alarm
4. Cancel alarm using power button on remote
5. Turn on Squeezebox using remote. Browse to music library source. Play an MP3
6. Observe volume setting


First try (alarm fired at 22:39) did not reproduce the problem. Pre-alarm volume was restored successfully.

Second attempt (alarm fired at 22:42) did reproduce the problem. Volume was at zero when playing music library content.

Log file is attached which shows both attempts. To the untrained eye, the logs look the same...

Please let me know if you want me to try again with additional logging.
Comment 10 James Richardson 2008-11-24 15:07:50 UTC
Created attachment 4333 [details]
player.alarmclock = debug

Worked for me 7.3 r24035
Comment 11 James Richardson 2008-11-24 15:18:32 UTC
Richard: thank you for the log..Clearly it's a 2-stage issue
I did my test with a single alarm, then re-tested using your setup of 2 alarms and guess what??

BAM the error happens.

On my 2nd alarm off, the volume is set to 0 .. Just like your log shows.
Comment 12 Andy Grundman 2008-11-24 15:19:25 UTC
Ah, thanks, I will retest.
Comment 13 Andy Grundman 2008-11-24 19:53:32 UTC
OK I think this is probably due to a value in tempVolume being used as the current volume and reset when the alarm is done.  I was still not able to reproduce it but after looking at your log I think this is the problem.

Should be fixed in change 24059.

Please test with tonight's nightly.
Comment 14 Richard Sharpe 2008-11-25 11:24:46 UTC
I'm still seeing the same issue, I'm afraid. Using build 24080.

Let me know if you want to see any more logs.
Comment 15 Andy Grundman 2008-11-25 11:26:35 UTC
Hmm, yes, another log would be good.
Comment 16 Richard Sharpe 2008-11-25 11:40:50 UTC
Actually - let me reconsider that. It's entirely possible that during testing, my 'previous' volume was set to zero following the alarm going off this morning with the original code.

I will be sure to set the original volume to something other than zero and test again! :)

Comment 17 Richard Sharpe 2008-11-25 12:40:23 UTC
I've tested about a dozen times now and haven't been able to reproduce the problem. We're looking good!

Many thanks all - and apologies for the false alarm earlier...
Comment 18 Markus Schiegl 2008-11-27 21:15:13 UTC
*** Bug 9886 has been marked as a duplicate of this bug. ***
Comment 19 James Richardson 2008-12-15 12:09:50 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 20 Chris Owens 2009-07-31 10:32:17 UTC
Reduce number of active targets for SC