Bug 1047 - server crash related to visualizers
: server crash related to visualizers
Status: RESOLVED FIXED
Product: SB 2/3
Classification: Unclassified
Component: Misc
: unspecified
: Other All
: P2 critical (vote)
: ---
Assigned To: Vidur Apparao
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-12 01:02 UTC by Dave Cohen
Modified: 2005-03-13 00:35 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cohen 2005-03-12 01:02:40 UTC
Here's the error as the server died:

Can't use an undefined value as an ARRAY reference at
/home/dave/devel/slimservice/Slim/Player/Squeezebox2.pm line 209.

line 209 is in a method called visualizer, here it is:
	my $params = pack "CC", $visualizer[$visu],
scalar(@{$visualizerParameters[$visu]});

My SB2 was playing music, with the spectrum analyzer as the screen saver.  Then,
I hit the now playing button on the remote, which brought me to now playing as
expected.  I hit it several more times, cycling through the now playing options.
 After some presses, it crashed.
Comment 1 Vidur Apparao 2005-03-13 00:35:24 UTC
I couldn't recreate the problem, but I put boundary checks in the Squeezebox2
visualizer() method that should prevent it crashing at the point mentioned. I
believe this will fix the cause of the crash, but not the reason for a bogus
value being passed in. Let me know if you can recreate the crash...or something
similar.