Bug 4282 - Slimserver crashes on sample MP3 files
: Slimserver crashes on sample MP3 files
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 6.5.0
: All All
: P2 minor (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-03 11:48 UTC by Dan Evans
Modified: 2008-12-18 11:11 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
MP3 file that crashes Slimserver (10.19 MB, application/octet-stream)
2006-10-03 11:49 UTC, Dan Evans
Details
MP3 file that crashes Slimserver (14.36 MB, application/octet-stream)
2006-10-03 11:51 UTC, Dan Evans
Details
log from running scanner.exe at command line (6.31 KB, text/plain)
2006-10-05 14:22 UTC, Chris Owens
Details
Another MP3 file that crashes slimserver (8.84 MB, audio/mpeg)
2006-10-16 08:08 UTC, Kyle K.
Details
MP3 that caused SlimServer to crash whilst scanning (10.68 MB, audio/mpeg)
2006-10-18 01:31 UTC, Tim Wardle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Evans 2006-10-03 11:48:33 UTC
On scanning either of these files, Slimserver 6.5.1 crashes on both Mac and XP.

These files play fine in Quicktime & iTunes on a Mac.  They play fine in WinAmp & iTunes on XP.  However, iTunes cannot read the tags it appears.  ID3X also cannot read the tags.  MP3-info reads them.
Comment 1 Dan Evans 2006-10-03 11:49:57 UTC
Created attachment 1616 [details]
MP3 file that crashes Slimserver
Comment 2 Dan Evans 2006-10-03 11:51:11 UTC
Created attachment 1617 [details]
MP3 file that crashes Slimserver
Comment 3 Chris Owens 2006-10-03 11:53:48 UTC
Hi Dan.  Did you receive these from a customer?  Were you able to reproduce the crash on your system, or should I verify?
Comment 4 Dan Evans 2006-10-03 12:26:02 UTC
Subject: Re:  Slimserver crashes on sample MP3 files

I received these from a customer. (tmid 10118)  I have reproduced the 
crash on both my Mac and my PC.

Comment 5 Andy Grundman 2006-10-03 18:39:53 UTC
I can't get SlimServer to crash with one of these files in my music dir.  It scans and plays fine for me (only tested with Softsqueeze).  The tags are not read, however.  What's the crash message you get?

I do get this though:
Use of uninitialized value in multiplication (*) at /Users/andy/dev/Slim/6.5/server/lib/MP3/Info.pm line 1821, <$fh> line 1.
Use of uninitialized value in multiplication (*) at /Users/andy/dev/Slim/6.5/server/lib/MP3/Info.pm line 1821, <$fh> line 1.
Use of uninitialized value in multiplication (*) at /Users/andy/dev/Slim/6.5/server/lib/MP3/Info.pm line 1821, <$fh> line 1.
Use of uninitialized value in multiplication (*) at /Users/andy/dev/Slim/6.5/server/lib/MP3/Info.pm line 1821, <$fh> line 1.
Comment 6 Chris Owens 2006-10-05 14:21:08 UTC
Event log shows the following for scanner.exe:

Faulting application scanner.exe, version 0.0.0.0, faulting module perl58.dll, version 5.8.8.819, fault addresss 0x00085b62.

Just afterwards there is a drwatson report with the following:

The application, C:\PROGRA~1\SLIMSE~1\server\scanner.exe, generated an application error.  The error occurred on 10/05/2006 @ 14:07:50.796.  The exception generated was c0000005 at address 28085B62 (perl58!Perl_stashpv_hvname_match)

I'll attach the log file from running scanner at the command line.
Comment 7 Chris Owens 2006-10-05 14:22:00 UTC
Created attachment 1622 [details]
log from running scanner.exe at command line

just with the -d_scan option
Comment 8 Kyle K. 2006-10-16 08:08:58 UTC
Created attachment 1646 [details]
Another MP3 file that crashes slimserver

Here's a file from my library that crashes slimserver.  I get the following error message while scanning:
2006-10-14 10:32:31.5341 ERROR: Error executing 'INSERT INTO tracks (audio, audio_offset, audio_size, bitrate, block_alignment, content_type, drm, filesize, lossless, lyrics, rating, remote, replay_gain, replay_peak, samplerate, secs, tagversion, timestamp, title, titlesearch, titlesort, tracknum, url, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
Created with mp3Tag, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)': DBD::mysql::st execute failed: called with 24 bind variables when 23 are needed at /usr/local/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 771.

2006-10-14 10:32:31.5343 ERROR: Backtrace follows:

2006-10-14 10:32:31.5346 Backtrace:

   frame 0: Slim::Schema::Storage::throw_exception (/usr/local/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 773)
   frame 1: DBIx::Class::Storage::DBI::_execute (/usr/local/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 788)
   frame 2: DBIx::Class::Storage::DBI::insert (/usr/local/slimserver/CPAN/DBIx/Class/Row.pm line 75)
   frame 3: DBIx::Class::Row::insert (/usr/local/slimserver/CPAN/DBIx/Class/PK/Auto.pm line 43)
   frame 4: DBIx::Class::PK::Auto::insert (/usr/local/slimserver/CPAN/DBIx/Class/ResultSet.pm line 1335)
   frame 5: DBIx::Class::ResultSet::create (/usr/local/slimserver/Slim/Schema.pm line 794)
   frame 6: Slim::Schema::newTrack (/usr/local/slimserver/Slim/Utils/Scanner.pm line 322)
   frame 7: Slim::Utils::Scanner::scanDirectory (/usr/local/slimserver/Slim/Music/MusicFolderScan.pm line 72)
   frame 8: Slim::Music::MusicFolderScan::startScan (/usr/local/slimserver/Slim/Music/Import.pm line 422)
   frame 9: Slim::Music::Import::runImporter (/usr/local/slimserver/Slim/Music/Import.pm line 265)
   frame 10: Slim::Music::Import::runScan (/usr/local/slimserver/scanner.pl line 180)
   frame 11: (eval) (/usr/local/slimserver/scanner.pl line 174)
   frame 12: main::main (/usr/local/slimserver/scanner.pl line 312)

2006-10-14 10:32:31.5429 ERROR: Scanner: Failed when running main scan: [Carp::Clan::__ANON__(): Error executing 'INSERT INTO tracks (audio, audio_offset, audio_size, bitrate, block_alignment, content_type, drm, filesize, lossless, lyrics, rating, remote, replay_gain, replay_peak, samplerate, secs, tagversion, timestamp, title, titlesearch, titlesort, tracknum, url, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
Created with mp3Tag, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)': DBD::mysql::st execute failed: called with 24 bind variables when 23 are needed at /usr/local/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 771.
]

2006-10-14 10:32:31.5431 ERROR: Scanner: Skipping post-process & Not updating lastRescanTime!
Comment 9 Kyle K. 2006-10-16 08:12:21 UTC
Extra information about my experience with this bug is being discussed in the forum:
http://forums.slimdevices.com/showthread.php?t=28674
Comment 10 Dan Sully 2006-10-16 11:18:40 UTC
Fixed in change 10369
Comment 11 Tim Wardle 2006-10-18 01:31:57 UTC
Created attachment 1650 [details]
MP3 that caused SlimServer to crash whilst scanning