Bug 16056 - This file will not scan and causes entire library scan to fail
: This file will not scan and causes entire library scan to fail
Status: RESOLVED FIXED
Product: SB 2/3
Classification: Unclassified
Component: SB Server
: unspecified
: PC Ubuntu Linux
: P3 critical (vote)
: 7.5.1
Assigned To: Andy Grundman
: Audio::Scan
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-13 07:12 UTC by evencoil
Modified: 2010-04-14 07:20 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
The problematic file. (8.68 MB, audio/mpeg)
2010-04-13 07:12 UTC, evencoil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description evencoil 2010-04-13 07:12:09 UTC
Created attachment 6770 [details]
The problematic file.

This file was preventing my entire library from rescanning. It has previously
scanned correctly (for a year or two)--I'm not sure what went wrong suddenly. I
removed the ID3 tag and it still won't scan. All plugins have been turned off,
this is on a completely fresh install of squeezeboxserver.

Scanner log with logging level set to "Music Scanner" is completely unhelpful:
============================
[10-04-13 10:05:16.5438] main::main (180) Starting Squeezebox Server scanner
(v7.5.0, r30464, Thu Apr  1 05:20:51 PDT 2010) perl 5.010000
[10-04-13 10:05:16.6512] Slim::Music::Import::addImporter (546) Adding
Slim::Music::PlaylistFolderScan Scan
[10-04-13 10:05:16.6516] Slim::Music::Import::addImporter (546) Adding
Slim::Music::MusicFolderScan Scan
[10-04-13 10:05:16.6519] Slim::Music::Import::countImporters (615) Found
importer: Slim::Music::MusicFolderScan
[10-04-13 10:05:16.7510] Slim::Schema::wipeCaches (1593) Wiped all in-memory
caches.
[10-04-13 10:05:16.7513] Slim::Schema::wipeDB (395) Start schema_clear
[10-04-13 10:05:16.7793] Slim::Schema::wipeDB (411) End schema_clear
[10-04-13 10:05:16.7796] Slim::Schema::wipeAllData (1608) Wiped the database.
[10-04-13 10:05:16.7799] main::main (271) Removing artwork cache...
[10-04-13 10:05:16.7818] Slim::Music::Import::runImporter (566) Starting
Slim::Music::MusicFolderScan scan
[10-04-13 10:05:16.7821] Slim::Music::MusicFolderScan::startScan (77) Starting
music folder scan in /home/at/Desktop/Iggy Pop/WDavid Bowie Mantra 1977
[10-04-13 10:05:16.7827] Slim::Utils::Scanner::scanDirectory (289) About to
look for files in /home/at/Desktop/Iggy Pop/WDavid Bowie Mantra 1977
[10-04-13 10:05:16.7842] Slim::Utils::Scanner::scanDirectory (290) For files
with extensions in:
pcmapewmawvaacwavwavemp3mp2flcflacflamovoggogaaifaiffm4am4bmp4mp+mpccue
[10-04-13 10:05:16.7913] Slim::Utils::Scanner::scanDirectory (320) Found 1
files in /home/at/Desktop/Iggy Pop/WDavid Bowie Mantra 1977
[10-04-13 10:05:16.7924] Slim::Utils::Scanner::scanDirectory (333) Scanning:
/home/at/Desktop/Iggy Pop/WDavid Bowie Mantra 1977/01. Raw Power.mp3
[10-04-13 10:05:16.7962] Slim::Utils::Scanner::scanDirectory (345) Adding
file:///home/at/Desktop/Iggy%20Pop/WDavid%20Bowie%20Mantra%201977/01.%20Raw%20Power.mp3
to database.
=======================================

System information:
===================================
Squeezebox Server Status
Version: 7.5.0 - r30464 @ Thu Apr 1 05:20:51 PDT 2010
Hostname: <deleted>
Server IP Address: <deleted>
Server HTTP Port Number: 9000
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Perl Version: 5.10.0 - x86_64-linux-gnu-thread-multi
MySQL Version: 5.0.67-0ubuntu6
Total Players Recognized: 0

Library Statistics
Total Tracks: 1
Total Albums: 1
Total Artists: 1
Total Genres: 1
Total Playing Time: 0:03:20

Music Scan Details
Directory Scan   (1  of  1)   Complete  00:00:04

/home/at/Desktop/Iggy Pop/WDavid Bowie Mantra 1977/01. Raw Power.mp3
Music scan terminated unexpectedly (Directory Scan)
Total Time: 00:00:04 (Tuesday, April 13, 2010 / 9:55 AM)
=========================================

File is attached.
Comment 1 Michael Herger 2010-04-14 03:25:02 UTC
I can confirm that it crashes 7.5.1 immediately:

APE: [Invalid item key character] /Users/mh/Music/tests/16056/01. Raw Power.mp3
APE: [Invalid item flags] /Users/mh/Music/tests/16056/01. Raw Power.mp3
APE: [Invalid item flags] /Users/mh/Music/tests/16056/01. Raw Power.mp3
Segmentation fault


The good news is: it doesn't crash 7.6. 

Andy - are we on the same level re. Audio::Scan?
Comment 2 Michael Herger 2010-04-14 03:31:19 UTC
I spoke too soon: killing 7.6 too. I tested too early, before all of the file had finished downloading...
Comment 3 Andy Grundman 2010-04-14 04:50:41 UTC
Yeah, it's a bug in the APE scanning code.
Comment 4 SVN Bot 2010-04-14 07:20:44 UTC
 == Auto-comment from SVN commit #656 to the opensource repo by agrundman ==
 == http://svn.slimdevices.com/opensource?view=revision&revision=656 ==

Fixed bug 16056, fix bug when reading an APE tag with an invalid non-ASCII key