Bug 1511 - Error message generated when Shoutcast station is selected
: Error message generated when Shoutcast station is selected
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.1.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-07 03:27 UTC by Berni Lowe
Modified: 2008-09-15 14:37 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
clear all references before untieing? (1.01 KB, patch)
2005-05-08 05:26 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Berni Lowe 2005-05-07 03:27:40 UTC
2005.05.07 nightly build fresh install.
Squeezbox2 firmware 12

slim executed from DOS window opened in server directory.

Navigate to Shoutcast station and press play.  The following error message 
appears:

untie attempted while 3 inner references still exist at /PerlApp/IO/String.pm 
line 80, <GEN11> line 20.
Comment 1 Michael Herger 2005-05-07 04:18:21 UTC
Could you please remove the old plugins (as in bug 1512) and start the server with the -d_plugins 
parameter?
Comment 2 Berni Lowe 2005-05-07 05:04:07 UTC
Cleared ShoutcastRecentlyPlayed and other playlists from Playlist directory.
Ran slim.exe from DOS window opened in server directory with command slim -
d_plugins

The following ouput ensued:

2005-05-07 12:52:36.7608 BROWSE_MUSIC does not exist. creating...
2005-05-07 12:52:36.7614 Registering screensaver Now Playing (Jump back on 
wake.)
2005-05-07 12:52:38.6866 Requiring Plugins::DateTime::Plugin plugin.
2005-05-07 12:52:38.6900 PLUGINS does not exist. creating...
2005-05-07 12:52:38.6901 Registering screensaver PLUGIN_SCREENSAVER_DATETIME
2005-05-07 12:52:38.6902 SCREENSAVERS does not exist. creating...
2005-05-07 12:52:38.6904 Requiring Plugins::Rescan plugin.
2005-05-07 12:52:38.6950 Requiring Plugins::RadioIO::Plugin plugin.
2005-05-07 12:52:38.6994 Adding RadioIO::Plugin to menu: RADIO
2005-05-07 12:52:38.6996 RADIO does not exist. creating...
2005-05-07 12:52:38.7002 Requiring Plugins::SavePlaylist plugin.
2005-05-07 12:52:38.7037 Requiring Plugins::Podcast::Plugin plugin.
2005-05-07 12:52:38.7187 Requiring Plugins::MusicMagic::Plugin plugin.
2005-05-07 12:52:43.7441 Requiring Plugins::Visualizer plugin.
2005-05-07 12:52:43.7498 Registering screensaver 
PLUGIN_SCREENSAVER_VISUALIZER_SPECTRUM_ANALYZER
2005-05-07 12:52:43.7500 Registering screensaver 
PLUGIN_SCREENSAVER_VISUALIZER_ANALOG_VUMETER
2005-05-07 12:52:43.7501 Registering screensaver 
PLUGIN_SCREENSAVER_VISUALIZER_DIGITAL_VUMETER
2005-05-07 12:52:43.7502 Requiring Plugins::SlimTris plugin.
2005-05-07 12:52:43.7554 Adding SlimTris to menu: GAMES
2005-05-07 12:52:43.7556 GAMES does not exist. creating...
2005-05-07 12:52:43.7558 Requiring Plugins::MoodLogic::Plugin plugin.
MoodLogic Error Event triggered: 'MixerError',11000
Try Rebuilding the external databases
MoodLogic Error Event triggered: 'MixerError',11000
Try Rebuilding the external databases
MoodLogic Error Event triggered: 'MixerError',11000
Try Rebuilding the external databases
2005-05-07 12:52:43.8363 Requiring Plugins::Picks::Plugin plugin.
2005-05-07 12:52:43.8404 Adding Picks::Plugin to menu: RADIO
2005-05-07 12:52:43.8413 Requiring Plugins::iTunes plugin.
2005-05-07 12:52:44.4160 Requiring Plugins::RssNews plugin.
2005-05-07 12:52:44.4309 Adding RssNews to menu: PLUGINS
2005-05-07 12:52:44.4312 Registering screensaver PLUGIN_RSSNEWS_SCREENSAVER
2005-05-07 12:52:44.4314 Requiring Plugins::Favorites::Plugin plugin.
2005-05-07 12:52:44.4350 Adding Favorites::Plugin to menu: PLUGINS
2005-05-07 12:52:44.4353 Requiring Plugins::ShoutcastBrowser::Plugin plugin.
2005-05-07 12:52:44.4548 Adding ShoutcastBrowser::Plugin to menu: RADIO
2005-05-07 12:52:44.4557 Requiring Plugins::Live365 plugin.
2005-05-07 12:52:44.4775 Adding Live365 to menu: RADIO
2005-05-07 12:52:44.4894 Podcast Plugin initializing.
2005-05-07 12:52:44.4897 Podcast Feed Info:
2005-05-07 12:52:44.4898 Amplified, http://feeds.feedburner.com/amplified
2005-05-07 12:52:44.4899 Vinyl, http://vinyl.codyhanson.com/wp-rss2.php
2005-05-07 12:52:44.4899
2005-05-07 12:52:44.4904 RSS Feed Info:
2005-05-07 12:52:44.4905 BBC News World Edition, 
http://news.bbc.co.uk/rss/newsonline_world_edition/front_page/rss091.xml
2005-05-07 12:52:44.4906 CNET News.com, http://news.com.com/2547-1_3-0-5.xml
2005-05-07 12:52:44.4907 New York Times Home Page, 
http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml
2005-05-07 12:52:44.4908 RollingStone.com Music News, 
http://www.rollingstone.com/rssxml/music_news.xml
2005-05-07 12:52:44.4909 Slashdot, http://slashdot.org/index.rss
2005-05-07 12:52:44.4909 Yahoo! News: Business, 
http://rss.news.yahoo.com/rss/business
2005-05-07 12:52:44.4910
2005-05-07 12:53:08.3379 Shoutcast: next update Sun May  8 12:53:08 2005
2005-05-07 12:53:08.3382 Shoutcast: async request: 
http://shoutcast.com/sbin/xml
lister.phtml?service=SliMP3&limit=300
2005-05-07 12:53:10.7162 Shoutcast: get XML content
2005-05-07 12:53:10.7165 Shoutcast: parse XML
2005-05-07 12:53:10.8610 Shoutcast: custom genres



Navigated to Internet Radio Shoutcast section on Squeezebox2.  Squeezebox2 
reported Connecting to SHoutcast and the server reported the following error 
and messages:

Use of uninitialized value in open at C:/Program 
Files/SlimServer/server/Plugins
/ShoutcastBrowser/Plugin.pm line 211.
2005-05-07 12:53:10.8613 Shoutcast: extract streams
2005-05-07 12:53:10.9898 Shoutcast: remove singletons
2005-05-07 12:53:11.9997 Shoutcast: sort genres
2005-05-07 12:53:11.0128 Shoutcast: create page
2005-05-07 12:53:11.0159 Shoutcast: that's it


Each connection to a Shoutcast channel resulted in the folowing:

untie attempted while 3 inner references still exist at /PerlApp/IO/String.pm 
line 80, <GEN8> line 8.

The number after GEN changed with each channel connected to.  The channels 
played successfully.
Comment 3 Michael Herger 2005-05-07 05:14:36 UTC
Most messages are debug stuff only except for the last one - which I don't know. I'll see what I can do.

Are you selecting the channels through the web interface or the remote?
Comment 4 Berni Lowe 2005-05-07 05:16:57 UTC
Channels are selected through the remote.
Comment 5 KDF 2005-05-07 05:37:54 UTC
Michael,that untie warning is revealing a rogue reference somewhere
refer to: http://www.hmug.org/man/1/perltie.php\

and now, to sleep...I see the sun coming up :)

Comment 6 Michael Herger 2005-05-07 09:36:48 UTC
I think this is not a shoutcast related problem as it also occurs with eg. Picks. It's Slim::Formats::Parse::
readPLS (and others) which closes that reference. It's created in Slim::Utils::Scan::readList (around line 
660). It might be related to Dan's change 3018.
Comment 7 Michael Herger 2005-05-08 05:26:42 UTC
Created attachment 504 [details]
clear all references before untieing?

Tied strings do not like to be closed as long as there are references to them.
Untie them manuall upon return to the calling function. Do we need to untie at
all? 

We might need to add this change to all the parseXYZ routines.
Comment 8 Berni Lowe 2005-05-08 08:06:02 UTC
C:\Program Files\SlimServer\server>slim -d_scan
2005-05-08 15:41:00.1842 Scan::addToList: W:\My Documents\My Music\My 
Playlists\__00_04_20_05_a8_f4.m3u
2005-05-08 15:41:00.1868 Scan::readList gonna read file:///W:/My%
20Documents/My%20Music/My%20Playlists/__00_04_20_05_a8_f4.m3u
2005-05-08 15:41:00.1871 Gonna try to open playlist file:///W:/My%
20Documents/My%20Music/My%20Playlists/__00_04_20_05_a8_f4.m3u
2005-05-08 15:41:00.1927 gonna scan file:///W:/My%20Documents/My%20Music/My%
20Playlists/__00_04_20_05_a8_f4.m3u, with path W:\My Documents\My Music\My 
Playlists\__00_04_20_05_a8_f4.m3u, for base: file:///W:/My%20Documents/My%
20Music/My%20Playlists
2005-05-08 15:41:00.1929 Scan::readList loading file:///W:/My%20Documents/My%
20Music/My%20Playlists/__00_04_20_05_a8_f4.m3u with base file:///W:/My%
20Documents/My%20Music/My%20Playlists
2005-05-08 15:41:00.1986 Scan::readList loaded playlist with 0 items

Navigate to Shoutcast station and press play on remote.


2005-05-08 15:41:52.7672 Scan::addToList: http://www.shoutcast.com/sbin/tunein-
station.pls?id=100411&filename=playlist.pls
2005-05-08 15:41:52.7680 Scan::readList gonna read 
http://www.shoutcast.com/sbin
/tunein-station.pls?id=100411&filename=playlist.pls
2005-05-08 15:41:52.7682 Scan::readList opening remote stream 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=100411&filename=playlist.pls
Use of uninitialized value in concatenation (.) or string 
at /PerlApp/Slim/Utils/Scan.pm line 665.
2005-05-08 15:41:54.5201 Scan::readList loading 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=100411&filename=playlist.pls with base
untie attempted while 3 inner references still exist at /PerlApp/IO/String.pm 
line 80, <GEN10> line 8.
2005-05-08 15:41:54.5270 Scan::readList loaded playlist with 1 items

Navigate to another shoutcast station and press play on remote

2005-05-08 15:42:07.5656 Scan::addToList: http://www.shoutcast.com/sbin/tunein-
station.pls?id=100411&filename=playlist.pls
2005-05-08 15:42:07.5660 Scan::readList gonna read 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=100411&filename=playlist.pls
2005-05-08 15:42:07.5663 Scan::readList opening remote stream 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=100411&filename=playlist.pls
Use of uninitialized value in concatenation (.) or string 
at /PerlApp/Slim/Utils
/Scan.pm line 665.
2005-05-08 15:42:08.3950 Scan::readList loading 
http://www.shoutcast.com/sbin/tu
nein-station.pls?id=100411&filename=playlist.pls with base
untie attempted while 3 inner references still exist at /PerlApp/IO/String.pm 
line 80, <GEN16> line 8.
2005-05-08 15:42:08.4014 Scan::readList loaded playlist with 1 items

Navigate to another Shoutcast station and press play on remote


2005-05-08 15:42:35.0585 Scan::addToList: http://www.shoutcast.com/sbin/tunein-
station.pls?id=215960&filename=playlist.pls
2005-05-08 15:42:35.0611 Scan::readList gonna read 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=215960&filename=playlist.pls
2005-05-08 15:42:35.0613 Scan::readList opening remote stream 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=215960&filename=playlist.pls
Use of uninitialized value in concatenation (.) or string 
at /PerlApp/Slim/Utils/Scan.pm line 665.
2005-05-08 15:42:37.1058 Scan::readList loading 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=215960&filename=playlist.pls with base untie attempted while 3 inner 
references still exist at /PerlApp/IO/String.pm line 80, <GEN22> line 8.
2005-05-08 15:42:37.1261 Scan::readList loaded playlist with 1 items

Navigate to Radioio station and press play on remote.

2005-05-08 15:43:04.0531 Scan::addToList: radioio://radioio70s.mp3

Navigate to another radioio station and press play on remote.


2005-05-08 15:43:15.8470 Scan::addToList: radioio://radioio70sPOP.mp3

Navigate to Live365 station and press play - exhibits crash as discussed in 
bud 1510.

2005-05-08 15:43:37.9797 Scan::addToList: 
live365://www.live365.com/play/javajanedm?sessionid=bernilowe:29bZHs94DcW1k
2005-05-08 15:43:37.9832 numitems: 0
2005-05-08 15:43:37.9834 index: -1
2005-05-08 15:43:37.9837 Scan::readList gonna read 
live365://www.live365.com/play/javajanedm?sessionid=bernilowe:29bZHs94DcW1k
2005-05-08 15:43:37.9838 Scan::readList opening remote stream 
live365://www.live365.com/play/javajanedm?sessionid=bernilowe:29bZHs94DcW1k
2005-05-08 15:43:39.3207 Scan::readList found that 
live365://www.live365.com/pla
y/javajanedm?sessionid=bernilowe:29bZHs94DcW1k is a song
2005-05-08 15:43:39.3227 Descending into 
live365://www.live365.com/play/javajanedm?sessionid=bernilowe:29bZHs94DcW1k, 
contains 1 items
2005-05-08 15:43:39.3258 numitems: 0
2005-05-08 15:43:39.3260 index: 0
2005-05-08 15:43:39.3280 itempath: live365://www.live365.com/play/javajanedm?
sessionid=bernilowe:29bZHs94DcW1k and 
live365://www.live365.com/play/javajanedm?sessionid=bernilowe:29bZHs94DcW1k 
made live365://www.live365.com/play/javajanedm?
sessionid=bernilowe:29bZHs94DcW1k
2005-05-08 15:43:39.3283 isList(live365://www.live365.com/play/javajanedm?
sessionid=bernilowe:29bZHs94DcW1k) ==
2005-05-08 15:43:39.3284 not a list: live365://www.live365.com/play/javajanedm?
sessionid=bernilowe:29bZHs94DcW1k
2005-05-08 15:43:39.3285 adding single item: 
live365://www.live365.com/play/javajanedm?sessionid=bernilowe:29bZHs94DcW1k, 
type mp3
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
2005-05-08 15:43:39.3343 numitems: 1
2005-05-08 15:43:39.3344 index: 1
2005-05-08 15:43:39.3346 Beginning scan sort...
2005-05-08 15:43:39.3348 ...sort done.
2005-05-08 15:43:39.3348 Got to end of dir, done!
2005-05-08 15:43:39.3349 addToList_done. returning 1 items
2005-05-08 15:43:39.3350   live365://www.live365.com/play/javajanedm?
sessionid=bernilowe:29bZHs94DcW1k
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
Use of uninitialized value in string eq at /PerlApp/Slim/Utils/Timers.pm line 
257.
readline() on closed filehandle SRC at /PerlApp/Slim/Utils/Misc.pm line 829.
2005-05-08 15:43:44.3286 Backtrace:

   frame 0: Slim::Utils::Misc::assert (/PerlApp/Slim/Player/Sync.pm line 389)
   frame 1: Slim::Player::Sync::masterOrSelf (/PerlApp/Slim/Player/Playlist.pm 
line 57)
   frame 2: Slim::Player::Playlist::playList (C:/Program 
Files/SlimServer/server/Plugins/Live365.pm line 597)
   frame 3: Plugins::Live365::ProtocolHandler::getPlaylist 
(/PerlApp/Slim/Utils/Timers.pm line 100)
   frame 4: Slim::Utils::Timers::checkTimers (slimserver.pl line 629)
   frame 5: main::idle (slimserver.pl line 567)
   frame 6: main::main (slimserver.pl line 61)
   frame 7: PerlSvc::Interactive (perlsvc line 1208)
   frame 8: PerlSvc::_interactive (slimserver.pl line 0)
   frame 9: (eval) (slimserver.pl line 0)

Here's the problem. /PerlApp/Slim/Player/Sync.pm, line 389:


Can't call method "master" on an undefined value 
at /PerlApp/Slim/Player/Sync.pm line 391.

C:\Program Files\SlimServer\server>
Comment 9 Michael Herger 2005-05-10 05:06:43 UTC
Berni, you'd have to run the perl script directly. Patching the perl code won't change the binary's 
behaviour. You'd need to install ActivePerl (http://www.activestate.com/perl).
Comment 10 KDF 2005-05-11 01:40:23 UTC
seems like the guys at hq are overloaded.  I haven't had a chance to test this
myself, but I'll make a point to do so wednesday night.  Then we can commit this
so Berni can test with the exe version (6.1 only, I'm afraid) I don't want to
support dumping something that I'm not absolutely sure of into the stable branch
without the all clear from Dan or Vidur.
Comment 11 Michael Herger 2005-05-17 09:00:35 UTC
D[e]an, Vidur? Any news about this?
Comment 12 Berni Lowe 2005-05-17 09:41:34 UTC
Nightly Build 2005/05/17 Windows XP

Squeezebox2 firmware 13

Launched by command slim -d_scan from DOS window opened in server folder

Navigate to Shoutcast station using remote and press play:

2005-05-17 17:28:07.3295 Scan::addToList: http://www.shoutcast.com/sbin/tunein-
station.pls?id=984&filename=playlist.pls
2005-05-17 17:28:07.3315 Scan::readList gonna read 
http://www.shoutcast.com/sbin/tunein-station.pls?id=984&filename=playlist.pls
2005-05-17 17:28:07.3317 Scan::readList opening remote stream 
http://www.shoutcast.com/sbin/tunein-station.pls?id=984&filename=playlist.pls
Use of uninitialized value in concatenation (.) or string 
at /PerlApp/Slim/Utils/Scan.pm line 665.
2005-05-17 17:28:09.1198 Scan::readList loading 
http://www.shoutcast.com/sbin/tu
nein-station.pls?id=984&filename=playlist.pls with base
untie attempted while 3 inner references still exist at /PerlApp/IO/String.pm 
line 80, <GEN23> line 14.
2005-05-17 17:28:09.1461 Scan::readList loaded playlist with 3 items
Comment 13 Michael Herger 2005-05-17 09:56:03 UTC
Berni, is this with a patched slimserver? I guess not.
Comment 14 Berni Lowe 2005-05-19 10:02:10 UTC
Installed ActivePerl

Uninstalled Windows Slimserver

Downloaded 2005.05.18 perl install

Patched Scan.pm and Parse.pm as per above attachment id=504

Ran slimserver.pl with -d_scan

Navigated to shoutcast station using web gui and clicked on Pla.

The Untie seems to have done the trisk with one error but we still have the 
problem at line 665 in Scan.pm:


2005-05-19 17:44:18.9389 Scan::addToList: http://www.shoutcast.com/sbin/tunein-
s
tation.pls?id=425424&filename=playlist.pls
2005-05-19 17:44:18.9397 Scan::readList gonna read 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=425424&filename=playlist.pls
2005-05-19 17:44:18.9398 Scan::readList opening remote stream 
http://www.shoutcast.com/sbin/tunein-station.pls?
id=425424&filename=playlist.pls
Use of uninitialized value in concatenation (.) or string at C:/Documents and 
Settings/Berni/Desktop/Downloads/Slimserver stuff/SlimServer_v2005-05-
18/Slim/Utils/Scan.pm line 665.
2005-05-19 17:44:19.6317 Scan::readList loading 
http://www.shoutcast.com/sbin/tu
nein-station.pls?id=425424&filename=playlist.pls with base
2005-05-19 17:44:19.6438 Scan::readList loaded playlist with 1 items
Comment 15 KDF 2005-05-19 10:25:51 UTC
The 'error' message from line 665 is just a warning, and only happens when using
the d_scan debugging.  The uninitialised variable is the $playlist_base, which
is only initialised for fileURLs.

I'd suggest merging to trunk at least for now, unless Vidur has anything to
comment on it.  wait on 6.0.x until some word comes from dan/vidur



Comment 16 Vidur Apparao 2005-05-19 10:32:45 UTC
Michael's patch seems good for the trunk. I'm guessing it doesn't apply to the
6.0.x branch - IIRC the IO::String changes were trunk only. If I'm wrong, I'm
good with it on the branch.
Comment 17 Michael Herger 2005-05-19 10:35:58 UTC
Ok, checked in as change 3262.
Comment 18 KDF 2005-05-19 11:44:12 UTC
marking as fixed
Comment 19 Chris Owens 2006-06-16 14:41:16 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.