Michael Herger;142929 Wrote: 
> > If the screen saver is activated when I clear the playlist the
> messages
> > starts immediately, if not they will start as soon as the playlist
> is
> > activated next time.
> 
> What shall I say... I still can't reproduce the issue... What player
> are you using? (though I don't think this does matter at all)
> I tried to debug this issue a bit this morning, I added:
1. A msg at line 80
2. A msg at line 116
3. A msg at line 126
4. A bt at line 241

The result is this:

Code:
--------------------
    
  2006-10-08 08:34:59.5621 Use of uninitialized value in concatenation (.) or 
string at /opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 116.
  2006-10-08 08:34:59.5623 Use of uninitialized value in concatenation (.) or 
string at /opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 116.
  2006-10-08 08:34:59.5624 Use of uninitialized value in concatenation (.) or 
string at /opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 116.
  2006-10-08 08:34:59.5624 At row 116: 
client=Slim::Player::SoftSqueeze=ARRAY(0xa6c1348), 
overlay1=,overlay2=,line1=Stopped - Now Playing,song=,nowPlaying=1
  2006-10-08 08:34:59.5626 Backtrace:
  
  frame 0: Plugins::MusicInfoSCR::Info::getPlayTime 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 118)
  frame 1: Plugins::MusicInfoSCR::Info::getMusicInfoLinePair 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Plugin.pm line 290)
  frame 2: Plugins::MusicInfoSCR::Plugin::screensaverMusicInfoLines 
(/opt/SlimServer_v6.5.0/Slim/Display/Display.pm line 161)
  frame 3: Slim::Display::Display::update 
(/opt/SlimServer_v6.5.0/Slim/Buttons/ScreenSaver.pm line 128)
  frame 4: Slim::Buttons::ScreenSaver::screenSaver 
(/opt/SlimServer_v6.5.0/Slim/Utils/Timers.pm line 181)
  frame 5: Slim::Utils::Timers::checkTimers (/opt/slimserver/slimserver.pl line 
490)
  frame 6: main::idle (/opt/slimserver/slimserver.pl line 440)
  frame 7: main::main (/opt/slimserver/slimserver.pl line 1039)
  
  2006-10-08 08:34:59.5627 Backtrace:
  
  frame 0: Plugins::MusicInfoSCR::Info::getPlayTime 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 119)
  frame 1: Plugins::MusicInfoSCR::Info::getMusicInfoLinePair 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Plugin.pm line 290)
  frame 2: Plugins::MusicInfoSCR::Plugin::screensaverMusicInfoLines 
(/opt/SlimServer_v6.5.0/Slim/Display/Display.pm line 161)
  frame 3: Slim::Display::Display::update 
(/opt/SlimServer_v6.5.0/Slim/Buttons/ScreenSaver.pm line 128)
  frame 4: Slim::Buttons::ScreenSaver::screenSaver 
(/opt/SlimServer_v6.5.0/Slim/Utils/Timers.pm line 181)
  frame 5: Slim::Utils::Timers::checkTimers (/opt/slimserver/slimserver.pl line 
490)
  frame 6: main::idle (/opt/slimserver/slimserver.pl line 440)
  frame 7: main::main (/opt/slimserver/slimserver.pl line 1039)
  
  2006-10-08 08:34:59.5628 Use of uninitialized value in concatenation (.) or 
string at /opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 126.
  2006-10-08 08:34:59.5629 Use of uninitialized value in concatenation (.) or 
string at /opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 126.
  2006-10-08 08:34:59.5629 Use of uninitialized value in concatenation (.) or 
string at /opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 126.
  2006-10-08 08:34:59.5630 At row 126: 
client=Slim::Player::SoftSqueeze=ARRAY(0xa6c1348), 
overlay1=,overlay2=,line1=Stopped - Now Playing,song=,nowPlaying=1
  2006-10-08 08:34:59.5631 Backtrace:
  
  frame 0: Plugins::MusicInfoSCR::Info::getPlayTime 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 127)
  frame 1: Plugins::MusicInfoSCR::Info::getMusicInfoLinePair 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Plugin.pm line 290)
  frame 2: Plugins::MusicInfoSCR::Plugin::screensaverMusicInfoLines 
(/opt/SlimServer_v6.5.0/Slim/Display/Display.pm line 161)
  frame 3: Slim::Display::Display::update 
(/opt/SlimServer_v6.5.0/Slim/Buttons/ScreenSaver.pm line 128)
  frame 4: Slim::Buttons::ScreenSaver::screenSaver 
(/opt/SlimServer_v6.5.0/Slim/Utils/Timers.pm line 181)
  frame 5: Slim::Utils::Timers::checkTimers (/opt/slimserver/slimserver.pl line 
490)
  frame 6: main::idle (/opt/slimserver/slimserver.pl line 440)
  frame 7: main::main (/opt/slimserver/slimserver.pl line 1039)
  
  2006-10-08 08:34:59.5632 Use of uninitialized value in pattern match (m//) at 
/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 241.
  2006-10-08 08:34:59.5633 Backtrace:
  
  frame 0: Plugins::MusicInfoSCR::Info::getPlayTime 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 128)
  frame 1: Plugins::MusicInfoSCR::Info::getMusicInfoLinePair 
(/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Plugin.pm line 290)
  frame 2: Plugins::MusicInfoSCR::Plugin::screensaverMusicInfoLines 
(/opt/SlimServer_v6.5.0/Slim/Display/Display.pm line 161)
  frame 3: Slim::Display::Display::update 
(/opt/SlimServer_v6.5.0/Slim/Buttons/ScreenSaver.pm line 128)
  frame 4: Slim::Buttons::ScreenSaver::screenSaver 
(/opt/SlimServer_v6.5.0/Slim/Utils/Timers.pm line 181)
  frame 5: Slim::Utils::Timers::checkTimers (/opt/slimserver/slimserver.pl line 
490)
  frame 6: main::idle (/opt/slimserver/slimserver.pl line 440)
  frame 7: main::main (/opt/slimserver/slimserver.pl line 1039)
  
  2006-10-08 08:34:59.5772 Use of uninitialized value in pattern match (m//) at 
/opt/SlimServer_v6.5.0/Plugins/MusicInfoSCR/Info.pm line 241.
  
--------------------


As you can see it reaches line 116 and 126 and overlay1,overlay2 and
song seems to be undefined at these lines. You can also see that it
does not reaches line 80, which also seems logical since it will go
into the "if" and not into the "else". 

I think the problem is the intialization at line 64, today it looks
like

Code:
--------------------
    my ( $line1, $overlay1, $line2, $overlay2 ) = '';
--------------------

If I change line 64 to this instead everything works

Code:
--------------------
    my $line1 = '';my $overlay1='';my $line2='';my $overlay2='';
--------------------


I thought your code should work, but I am not a perl expert. Maybe
there is different behaviour in different implementations that causes
this, which also could explain why you couldn't reproduce it. I am
running Ubunut Dapper and the standard perl installation, perl
--version gives:
"This is perl, v5.8.7 built for i486-linux-gnu-thread-multi"


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat)
, 'SQLPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist)
, 'DynamicPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist),
'Custom Browse'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-custombrowse)
and 'RandomPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist)
plugins)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=27983

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to