Bug 5539 - SlimServer cannot play this song.
: SlimServer cannot play this song.
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Streaming From SlimServer
: 7.0
: PC Windows (legacy)
: -- enhancement (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-21 14:25 UTC by Wallace Lai
Modified: 2011-11-06 23:22 UTC (History)
0 users

See Also:
Category: ---


Attachments
Generated by typing slim.exe --logfile c:\MusicStopped.txt (6.10 KB, application/octet-stream)
2007-09-21 14:27 UTC, Wallace Lai
Details
server.log (1.70 MB, application/octet-stream)
2007-09-21 14:30 UTC, Wallace Lai
Details
SlimServer stops streamming at the end of this song. (5.08 MB, audio/mpeg)
2007-09-21 14:39 UTC, Wallace Lai
Details
SlimServer is not playing this song. (563.45 KB, audio/wav)
2007-09-21 14:44 UTC, Wallace Lai
Details
Gereated by typing "slim.exe --debug dsource, server, scanner --logfile C:\CannotPlayThisSong.txt" (7.06 KB, text/plain)
2007-09-21 14:54 UTC, Wallace Lai
Details
slim.exe --debug player.source --logfile C:\CannotPlayThisSong.txt > C:\PlayerDotSource.txt (55.53 KB, text/plain)
2007-09-21 16:26 UTC, Wallace Lai
Details
slim.exe --debug player.source --logfile C:\CannotPlayThisSong.txt > C:\PlayerDotSource.txt (56.05 KB, text/plain)
2007-09-21 16:27 UTC, Wallace Lai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wallace Lai 2007-09-21 14:25:28 UTC
System Info:  Gateway, P4, 1.97 GHz, 1.25 GB of RAM, Win2K SP4 ENU on VMWare
SlimServer Version: 7.0 - 13131 - Windows 2000 - EN - cp1252
Perl Version: 5.8.8 MSWin32-x86-multi-thread
MySQL Version: 5.0.22-community-nt


Steps to Reproduce:
1.  Start slimserver.
2.  There are already some songs in the "My Documents".
3.  Scan for songs in this folder.
4.  Play all the songs.
5.  Notice after a particular song, the progress bar on SqueezeBox drops to "-1" then everything stops.  SlimServer would not go to the next song.

Note:  SqueezeBox is not stuck.  It responds perfectly to remote buttons presses.
Comment 1 Wallace Lai 2007-09-21 14:27:22 UTC
Created attachment 2151 [details]
Generated by typing slim.exe --logfile c:\MusicStopped.txt
Comment 2 Wallace Lai 2007-09-21 14:30:10 UTC
Created attachment 2152 [details]
server.log

This is a big file.  It seems to have gotten stuck on the following lines:
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 15 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\CLI\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\DateTime\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\DigitalInput\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\Favorites\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\Health\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\InfoBrowser\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\MusicMagic\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\Podcast\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\RSSNews\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\RadioIO\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\RadioTime\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\RandomPlay\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Slim::Utils::Misc::readDirectory (864) Reading directory: C:\Program Files\SlimServer\server\Slim\Plugin\Rescan\HTML
Slim::Utils::Misc::readDirectory (921) Directory contains 1 items
Comment 3 Wallace Lai 2007-09-21 14:39:43 UTC
Created attachment 2153 [details]
SlimServer stops streamming at the end of this song.
Comment 4 Wallace Lai 2007-09-21 14:44:54 UTC
Created attachment 2154 [details]
SlimServer is not playing this song.

SlimServer cannot play this song.  We can disregard the last attachment.
Comment 5 Wallace Lai 2007-09-21 14:54:00 UTC
Created attachment 2155 [details]
Gereated by typing "slim.exe --debug dsource, server, scanner --logfile C:\CannotPlayThisSong.txt"
Comment 6 Wallace Lai 2007-09-21 14:54:43 UTC
Changed title after investigation.
Comment 7 Wallace Lai 2007-09-21 15:04:53 UTC
The problem is it plays fine with Windows Media Palyer.
Comment 8 Wallace Lai 2007-09-21 15:18:16 UTC
Sorry, I can't help but make this comment:

I must be spoiled by SlimServers and SqueezeBoxes.  Music from MediaPlayer and a sound card sounds like finger nails scratching a black board to me now.
Comment 9 KDF 2007-09-21 15:52:07 UTC
try:
slim.exe --debug player.source 

server debug really only deal with module loading on start, and scanner isn't so relevant for songs that are already scanned. database.info is useful if you want to get file details during a wipe and rescan.

I'm also wondering if this really falls into the scope of bug 5271 through bug 5271 covering WAV files of 11KHz sample rate.  iTunes is reporting this file as 0-bit, 19kbps, 11.025kHz.

HEre is what I get for database.info:

[15:45:53.5896] Slim::Music::Info::plainTitle (485)  is test
[15:45:53.5910] Slim::Schema::_preCheckAttributes (1728) Report for file:///C:/music/test.wav:
[15:45:53.5916] Slim::Schema::_preCheckAttributes (1729) * Attributes *
[15:45:53.5921] Slim::Schema::_preCheckAttributes (1733) .. LOSSLESS : 0
[15:45:53.5925] Slim::Schema::_preCheckAttributes (1733) .. AUDIO : 1
[15:45:53.5928] Slim::Schema::_preCheckAttributes (1733) .. YEAR : 0
[15:45:53.5932] Slim::Schema::_preCheckAttributes (1733) .. CONTENT_TYPE : wav
[15:45:53.5935] Slim::Schema::_preCheckAttributes (1733) .. REMOTE : 0
[15:45:53.5941] Slim::Schema::_preCheckAttributes (1733) .. TITLESEARCH : TEST
[15:45:53.5947] Slim::Schema::_preCheckAttributes (1733) .. TITLESORT : TEST
[15:45:53.5952] Slim::Schema::_preCheckAttributes (1733) .. FILESIZE : 576977
[15:45:53.6014] Slim::Schema::_preCheckAttributes (1733) .. SECS : 0
[15:45:53.6020] Slim::Schema::_preCheckAttributes (1733) .. RATING : 0
[15:45:53.6024] Slim::Schema::_preCheckAttributes (1733) .. TIMESTAMP : 1190414401
[15:45:53.6030] Slim::Schema::_preCheckAttributes (1733) .. DRM : 0
[15:45:53.6035] Slim::Schema::_preCheckAttributes (1733) .. TITLE : test
[15:45:53.6039] Slim::Schema::_preCheckAttributes (1733) .. AUDIO_SIZE : 0


AUDIO_SIZE and SECS are critical for slimserver to play any file.  If these are not present, slimserver will not play them.  player.source log shows:

[15:48:19.2433] Slim::Player::Source::openSong (1688) Trying to open: file:///C:/music/test.wav
[15:48:19.2451] Slim::Player::Source::openSong (1865) duration: [0] size: [576977] endian [] offset: [0] for file:///C:/music/test.wav

Basically, zero duration = no playback.
Comment 10 Wallace Lai 2007-09-21 16:26:08 UTC
Created attachment 2156 [details]
slim.exe --debug player.source --logfile C:\CannotPlayThisSong.txt > C:\PlayerDotSource.txt

Hi, KDF,

Thanks.
Here is one of the log files generated.
Comment 11 Wallace Lai 2007-09-21 16:27:36 UTC
Created attachment 2157 [details]
slim.exe --debug player.source --logfile C:\CannotPlayThisSong.txt > C:\PlayerDotSource.txt

Here is another log file generated by the --debug player.source command.

Thanks
Comment 12 Spies Steven 2007-09-21 16:29:54 UTC
The file attached is actually an mp3 file not a wav file.  Renaming the file with .mp3 solved the problem for me.
Comment 13 Wallace Lai 2007-09-21 16:39:27 UTC
Steven Spies investigated and found out this is actaully an MP3 file with a WAV extension.
After changing the extension to MP3, the SqueezeBox can play it not.

I wonder how Media Player figure that out.  Does it have a mechanism to analyze the raw data instead of relying on the file extension.
Comment 14 Wallace Lai 2007-09-21 16:43:03 UTC
I am changing the stutas to enhancement request.  It would be nice if SlimServer can check the song out before streamming it to SqueezeBox.  Or check it on the SqueezeBox.
This is so interesting.
Comment 15 Alan Young 2011-11-06 23:22:09 UTC
Unassigned bugs cannot have a priority.