Bug 2047 - SlimServer crashes when trying to play music via Browse Music Folder on SBG
: SlimServer crashes when trying to play music via Browse Music Folder on SBG
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.2.0
: PC Windows XP
: P2 major (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-31 16:39 UTC by Philip Meyer
Modified: 2008-09-15 14:36 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2005-08-31 16:39:11 UTC
I mentioned this problem with nightly build 2005-08-26, but thought it was 
likely to be the same problem as bug 2031, which is now in fixed state (since 
4110).

However, I have 4117, and this problem still exists:

Can't locate object method "path" via package "file:///M:/Music/Music%
20Downloads/Various%20Artists/Chillout%20Moods%20Vol.%201" (perhaps you forgot 
to load "file:///M:/Music/Music%20Downloads/Various%20Artists/Chillout%20Moods%
20Vol.%201"?) at /PerlApp/Slim/Player/Playlist.pm line 595.

I simply tried to play some music via the SqueezeBoxG "browse music folder".  
SlimServer dies as soon as I press play.
Comment 1 KDF 2005-08-31 18:14:17 UTC
did you have an existing playlist loaded prior to this, or was it new music?
did you play a folder or tracks from player bmf?
Comment 2 KDF 2005-08-31 22:48:18 UTC
search of code looks like $client->currentPlaylist is saved as an object
sometimes, and a path in others:

execute 'playlistcontrol' and parseSearchTerms()
$client->currentPlaylist($obj) if $load;

execute 'play'
$client->currentPlaylist($fixpath);

solution could be (line 595 of Playlist.pm):
ref($client->currentPlaylist)?$client->currentPlaylist->path:$client->currentPlaylist;

or find a way to convert all the currentPlaylists to objects (which would break
the old methods to play a playlist by filename (command->'playlist'->'load' for eg)
Comment 3 Philip Meyer 2005-09-01 01:30:59 UTC
There probably was a current playlist (but it wasn't playing).
I think I pressed play at folder level in BMF.
Comment 4 Philip Meyer 2005-09-01 01:31:49 UTC
Also get a similar crash when trying to play a podcast through the podcast 
plugin.

Can't locate object method "path" via 
package "http://topofthepods.mx5.org.uk/shows/TOTP20050926_Top_Ten_Phrases_That
_Americans_Say_While_Attempting_A_British_Accent.mp3" (perhaps you forgot to 
load "http://topofthepods.mx5.org.uk/shows/TOTP20050926_Top_Ten_Phrases_That_Am
ericans_Say_While_Attempting_A_British_Accent.mp3"?) 
at /PerlApp/Slim/Player/Playlist.pm line 595.
.
Comment 5 KDF 2005-09-04 21:45:38 UTC
*** Bug 2076 has been marked as a duplicate of this bug. ***
Comment 6 Jeff Sartain 2005-09-05 12:01:28 UTC
*** Bug 2077 has been marked as a duplicate of this bug. ***
Comment 7 Gerd Boerrigter 2005-09-05 12:12:38 UTC
*** Bug 2078 has been marked as a duplicate of this bug. ***
Comment 8 KDF 2005-09-05 12:15:09 UTC
committed possible fix to trunk change 4170.  please update svn or download sept
6 nightly build to confirm.
Comment 9 KDF 2005-09-06 10:43:04 UTC
With change 4170 and change 4171 from adrian, this should be fixed.  please
re-open if any issues remain.