Bug 13198 - Scanner crashes on a flac file
: Scanner crashes on a flac file
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.4.0
: PC Windows XP
: P1 normal (vote)
: 7.4.0
Assigned To: Andy Grundman
: Audio::Scan
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-02 00:38 UTC by Philip Meyer
Modified: 2009-10-05 14:31 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments
First 50Kb of file that crashes scanner (50.00 KB, application/octet-stream)
2009-08-02 05:36 UTC, Philip Meyer
Details
output of metaflac --list (40.48 KB, text/plain)
2009-08-03 15:49 UTC, Philip Meyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2009-08-02 00:38:35 UTC
A full rescan with the noweb-sqlite changes merged into 7.4/trunk crashes for me quite early on in the scan with the error reported below.  This could potentially be the first flac file that it has encountered, and has scanned without problems in previous releases.

The problem appears to be that the bitrate is being read incorrectly.  Foobar2000 reports the bitrate as 522Kbps when I play this file.

[08:21:56.7342] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Gavin Bryars\2005-10-01 - The Sinking of the Titanic Live\01 - The Sinking of the Titanic.flac
[08:21:56.7402] Slim::Schema::Storage::throw_exception (82) Error: DBI Exception: DBD::mysql::st execute failed: Out of range value adjusted for column 'bitrate' at row 1 [for Statement "INSERT INTO tracks (bitrate,audio_offset,drm,audio_size,vbr_scale,replay_peak,remote,titlesort,audio,timestamp,replay_gain,url,lossless,channels,samplerate,secs,filesize,content_type,tracknum,titlesearch,title,year) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" with ParamValues: 0='-399143', 1=0, 2=0, 3=304231841, 4=1, 5='0.363251', 6=0, 7='SINKING OF THE TITANIC', 8=1, 9=1221432452, 10='+5.23', 11='file:///M:/Music/Live%20Concerts/Electronic/Gavin%20Bryars/2005-10-01%20-%20The%20Sinking%20of%20the%20Titanic%20Live/01%20-%20The%20Sinking%20of%20the%20Titanic.flac', 12=1, 13=2, 14=44100, 15=4663.026, 16=304231841, 17='flc', 18=1, 19='SINKING OF THE TITANIC', 20='The Sinking Of The Titanic', 21=2005]
[08:21:56.7409] Slim::Schema::Storage::throw_exception (82) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (P:/Music/SlimServer/trunk/server/Slim/Schema/Storage.pm line 82)
   frame 1: Slim::Schema::Storage::throw_exception (P:\Music\SlimServer\trunk\server\CPAN/DBIx/Class/Storage/DBI.pm line 722)
   frame 2: DBIx::Class::Storage::DBI::__ANON__ (P:/Music/SlimServer/trunk/server/Slim/Schema.pm line 998)
   frame 3: Slim::Schema::newTrack (P:/Music/SlimServer/trunk/server/Slim/Utils/Scanner.pm line 342)
   frame 4: Slim::Utils::Scanner::scanDirectory (P:/Music/SlimServer/trunk/server/Slim/Music/MusicFolderScan.pm line 79)
   frame 5: Slim::Music::MusicFolderScan::startScan (P:/Music/SlimServer/trunk/server/Slim/Music/Import.pm line 542)
   frame 6: Slim::Music::Import::runImporter (P:/Music/SlimServer/trunk/server/Slim/Music/Import.pm line 362)
   frame 7: Slim::Music::Import::runScan (P:/Music/SlimServer/trunk/server/scanner.pl line 293)
   frame 8: (eval) (P:/Music/SlimServer/trunk/server/scanner.pl line 287)
   frame 9: main::main (P:/Music/SlimServer/trunk/server/scanner.pl line 438)

[08:21:56.7565] main::main (299) Error: Failed when running main scan: [Carp::Clan::__ANON__(): DBI Exception: DBD::mysql::st execute failed: Out of range value adjusted for column 'bitrate' at row 1 [for Statement "INSERT INTO tracks (bitrate,audio_offset,drm,audio_size,vbr_scale,replay_peak,remote,titlesort,audio,timestamp,replay_gain,url,lossless,channels,samplerate,secs,filesize,content_type,tracknum,titlesearch,title,year) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" with ParamValues: 0='-399143', 1=0, 2=0, 3=304231841, 4=1, 5='0.363251', 6=0, 7='SINKING OF THE TITANIC', 8=1, 9=1221432452, 10='+5.23', 11='file:///M:/Music/Live%20Concerts/Electronic/Gavin%20Bryars/2005-10-01%20-%20The%20Sinking%20of%20the%20Titanic%20Live/01%20-%20The%20Sinking%20of%20the%20Titanic.flac', 12=1, 13=2, 14=44100, 15=4663.026, 16=304231841, 17='flc', 18=1, 19='SINKING OF THE TITANIC', 20='The Sinking Of The Titanic', 21=2005] at P:/Music/SlimServer/trunk/server/Slim/Schema/Storage.pm line 86
]
Comment 1 Andy Grundman 2009-08-02 05:21:55 UTC
Could you upload the first 50K of that file?  Hopefully that will be enough to debug the issue.
Comment 2 Philip Meyer 2009-08-02 05:36:13 UTC
Created attachment 5552 [details]
First 50Kb of file that crashes scanner
Comment 3 Philip Meyer 2009-08-02 05:37:52 UTC
I moved the file out of my music library folder and did a full rescan.  It got a bit further (successfully processed some other flac files) but then crashed on another one in the same way.
Comment 4 Andy Grundman 2009-08-02 05:54:50 UTC
Hmm OK perhaps just the headers aren't enough to reproduce the problem, I get a correctly calculated bitrate from this chunk.  Do you have a small-ish file that has the problem?  I guess that might be hard to find... :(
Comment 5 Philip Meyer 2009-08-02 06:14:56 UTC
I have tried moving several failed files sideways and rescanning.  It's failed so far on about 5 different files - all of them being large flac files.
Comment 6 Andy Grundman 2009-08-02 06:18:50 UTC
Anything special about them other than that they are large?  I'll test a whole-album FLAC.
Comment 7 Philip Meyer 2009-08-02 09:07:50 UTC
No, nothing special about them.  One of them was track 1 of 3; the other 2 tracks appeared to scan fine after, and they appeared to have the same tags.  Track 1 was the longest song (~50 mins).

They've always scanned fine in the past.
Comment 8 Philip Meyer 2009-08-03 15:28:19 UTC
Is there anything else I can do to help you find the fix for this problem?  Do you want me to upload a file (they are all BIG!), or alternatively if there's some diagnostics I could run on a file myself?
Comment 9 Andy Grundman 2009-08-03 15:35:34 UTC
Can you paste the output of metaflac --list for one of these file?
Comment 10 Philip Meyer 2009-08-03 15:49:49 UTC
Created attachment 5558 [details]
output of metaflac --list
Comment 11 Andy Grundman 2009-08-03 16:23:02 UTC
I encoded an hour-long file with the same version of FLAC you used, tried different options with -0, -5, and -8, and couldn't reproduce the bitrate issue.  I think I will need to see one of your files. :(
Comment 12 Philip Meyer 2009-08-03 17:33:00 UTC
Is it okay to upload one to this bug report, or would you like me to transfer it some other means?
Comment 13 Andy Grundman 2009-08-03 17:49:30 UTC
It's too big for Bugzilla.  How about http://www.yousendit.com/ ?
Comment 14 Andy Grundman 2009-08-03 17:49:49 UTC
Bah never mind, they charge for > 100M.
Comment 15 Andy Grundman 2009-08-03 18:01:55 UTC
I put in a workaround so at least the files will scan.  They will also spit out an error message in the log so you can find all the bad ones.  Maybe one will be small enough.
Comment 16 Philip Meyer 2009-08-04 01:23:26 UTC
I've now managed to scan my whole library, minus 19 long flac files.  All of these are large (over 40 mins, 250MB).

Some I've ripped very recently with EAC -> FLAC 1.2.1, others were ripped with 1.1.4.

[09:08:41.7515] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Gavin Bryars\2005-10-01 - The Sinking of the Titanic Live\01 - The Sinking of the Titanic.flac
[09:07:18.4263] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Leaves\Volume 30\01 - Part 1.flac
[09:12:54.1927] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Leaves\Volume 39\01 - Part 1.flac
[09:11:00.0140] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Leaves\Volume 50\01 - Part 1.flac
[09:11:23.1586] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Leaves\Volume 60\01 - Part 1.flac
[09:10:15.2791] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Leaves\volume 75\01 - Part 1.flac
[09:07:22.8356] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Tree\Volume 09\01 - Part One.flac
[09:10:19.6401] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Tree\Volume 17\03 - Set Two.flac
[09:10:27.7702] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Tree\Volume 45\03 - Part 3.flac
[09:11:26.9430] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Tree\Volume 55\02 - Part Two.flac
[09:10:52.8758] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Tree\Volume 67\01 - Part 1.flac
[09:06:08.3215] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Electronic\Tangerine Dream\Tangerine Tree\Volume 92\01 - Part One.flac
[09:10:03.4697] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Live Concerts\Progressive Rock\Steven Wilson\2003-01-24\17 - Questin and Answer Session.flac
[08:12:55.8999] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Phil's Music\Electronic\Klaus Schulze\Jubilee Edition\Volume 1 - Tradition & Vision\01 - Tradition And Vision.flac
[08:12:56.2271] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Phil's Music\Electronic\Klaus Schulze\Jubilee Edition\Volume 4 - Borrowed Time\01 - Borrowed Time.flac
[08:19:37.7862] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Phil's Music\Progressive Rock\Mike Oldfield\Amarok [2000 HDCD Remaster]\01 - Amarok.flac
[08:21:32.3189] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Phil's Music\Psychedelic\Syd Barrett\Beyond Rhyme Nor Reason\CD5\01 - Sound Opinions WXRT Chicago 2001-01-03.flac
[08:28:43.6000] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Surround Sound\Jeff Wayne\War Of The Worlds\disc 1.cue
[08:28:44.8813] Slim::Utils::Scanner::scanDirectory (328) Scanning: M:\Music\Surround Sound\The Beatles\Love\Love.dts.flac
Comment 17 Philip Meyer 2009-08-05 17:03:22 UTC
I tried decoding one of the files to .wav, then re-encoding.  Still crashes the scanner.
Comment 18 Andy Grundman 2009-08-05 17:32:04 UTC
Hmm, what if you encode only a 1-minute chunk of that WAV?
Comment 19 Philip Meyer 2009-08-06 13:52:00 UTC
Saved the first minute as flac and it scanned fine.
Comment 20 Andy Grundman 2009-08-06 14:00:50 UTC
Argh, can you give me the exact flac command-line you used to encode?
Comment 21 Philip Meyer 2009-08-06 14:25:53 UTC
When ripping using EAC: P:\Music\FLAC\bin\flac.exe -8 -T "artist=%a" -T "title=%t" -T "album=%g" -T "date=%y" -T "tracknumber=%n" -T "genre=%m" %s

NB, other (smaller) songs on the same album ripped in the same way are scanned fine.

Not completely related to length of track (or file size), because I have other equally long flac files that are scanning fine too.
Comment 22 Andy Grundman 2009-08-06 14:38:09 UTC
Is M:\Music a local drive or a remote share?

The FLAC code in Audio::Scan does a stat to determine the file size and uses that to calculate the bitrate.  The other file types use seek/tell to determine the file size, so I wonder if it could be getting a bad stat response somehow.
Comment 23 Philip Meyer 2009-08-06 14:45:31 UTC
All music is on the same M: partition (local disk).
Comment 24 Philip Meyer 2009-08-06 14:46:37 UTC
I took a working long flac file (encoded with 1.1.4), and re-encoded to v1.2.1, and it still scans fine.
Comment 25 Andy Grundman 2009-08-06 14:57:55 UTC
I'm going to change the way file size is determined in the next update, it may 
help.
Comment 26 Andy Grundman 2009-08-06 14:59:35 UTC
 == Automatic comment from SVN commit #395 to Repository: opensource ==
https://svn.slimdevices.com/opensource?view=revision&revision=395

Bug 13198 - change the method for determining FLAC bitrate.  This may not solve the issue but worth a try as using stat is not the norm here


 == Modified 4 files total ==
trunk/Audio-Scan/Changes
trunk/Audio-Scan/TODO
trunk/Audio-Scan/lib/Audio/Scan.pm
trunk/Audio-Scan/src/flac.c
Comment 27 Andy Grundman 2009-08-06 16:08:10 UTC
 == Automatic comment from SVN commit #28085 to Repository: slim ==
https://svn.slimdevices.com/slim?view=revision&revision=28085

Audio::Scan 0.28

0.28    2009-08-06 19:00:00
        - Bug 13198, Changed the method for determining FLAC bitrate.

0.27    2009-07-26 23:00:00
        - Added support for Musepack SV8 files.
        - Refactored Musepack code to use buffer API, fixes
          crashes on big-endian platforms.
        - Added support for reading Musepack track gain and album gain.


 == Modified 10 files total ==
7.4/trunk/server/CPAN/Audio/Scan.pm
7.4/trunk/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/Audio/Scan/Scan.dll
7.4/trunk/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/trunk/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/trunk/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/trunk/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/trunk/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/trunk/server/CPAN/arch/5.8/sparc-linux/auto/Audio/Scan/Scan.so
7.4/trunk/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/trunk/server/modules.conf
Comment 28 Andy Grundman 2009-08-06 16:09:42 UTC
OK, new code is in SC, try the latest and let me know.
Comment 29 Andy Grundman 2009-08-06 16:51:14 UTC
 == Automatic comment from SVN commit #28087 to Repository: slim ==
https://svn.slimdevices.com/slim?view=revision&revision=28087

 r57579@macbookpro (orig r28080):  michael | 2009-08-06 02:38:06 -0400
 Bug: n/a
 Description: don't display download URL in web UI, unless we got an update message from SN including that URL. Don't check for downloads unless auto download is enabled.
 r57580@macbookpro (orig r28081):  andy | 2009-08-06 08:49:46 -0400
 Fixed Bug 13224 - simplify max mode, make it the default for everything, use it for pad mode.  Also added some more tests
 r57583@macbookpro (orig r28082):  andy | 2009-08-06 09:46:00 -0400
 Refactor S::W::Graphics to use ImageResizer
 r57596@macbookpro (orig r28083):  mwise | 2009-08-06 11:02:59 -0400
 Bug 13265: Should solve the shutdown issue.
 r57597@macbookpro (orig r28084):  mwise | 2009-08-06 11:45:22 -0400
 Bug 12962: Additional space at the end of the line caused the readynas init script to break.
 r57598@macbookpro (orig r28085):  andy | 2009-08-06 19:08:08 -0400
 Audio::Scan 0.28
 
 0.28    2009-08-06 19:00:00
         - Bug 13198, Changed the method for determining FLAC bitrate.
 
 0.27    2009-07-26 23:00:00
         - Added support for Musepack SV8 files.
         - Refactored Musepack code to use buffer API, fixes
           crashes on big-endian platforms.
         - Added support for reading Musepack track gain and album gain.
 r57599@macbookpro (orig r28086):  andy | 2009-08-06 19:41:16 -0400
 Fixed Bug 13252 - downgrade DBD::mysql to 3.0002 to fix crasher



 == Modified 27 files total ==
7.4/private-branches/baby-cat/
7.4/private-branches/baby-cat/platforms/debian/squeezebox.init
7.4/private-branches/baby-cat/platforms/readynas/rules
7.4/private-branches/baby-cat/platforms/readynas/squeezebox.init
7.4/private-branches/baby-cat/server/CPAN/Audio/Scan.pm
7.4/private-branches/baby-cat/server/CPAN/DBD/mysql/GetInfo.pm
7.4/private-branches/baby-cat/server/CPAN/DBD/mysql.pm
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/Audio/Scan/Scan.dll
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/mysql.dll
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/sparc-linux/auto/Audio/Scan/Scan.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/baby-cat/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/baby-cat/server/Slim/Utils/ImageResizer.pm
7.4/private-branches/baby-cat/server/Slim/Utils/Update.pm
7.4/private-branches/baby-cat/server/Slim/Web/Graphics.pm
7.4/private-branches/baby-cat/server/modules.conf
7.4/private-branches/baby-cat/tests/t/05resizer.t

 == Added 2 files total ==
7.4/private-branches/baby-cat/tests/data/images/ref/tall-cover-13x100.jpg
7.4/private-branches/baby-cat/tests/data/images/ref/wide-cover-100x12.jpg

 == Removed 2 files total ==
7.4/private-branches/baby-cat/platforms/readynas/CPAN/DBD/
7.4/private-branches/baby-cat/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/libmysql.dll
Comment 30 Andy Grundman 2009-08-06 16:58:40 UTC
 == Automatic comment from SVN commit #28088 to Repository: slim ==
https://svn.slimdevices.com/slim?view=revision&revision=28088

 r57579@macbookpro (orig r28080):  michael | 2009-08-06 02:38:06 -0400
 Bug: n/a
 Description: don't display download URL in web UI, unless we got an update message from SN including that URL. Don't check for downloads unless auto download is enabled.
 r57580@macbookpro (orig r28081):  andy | 2009-08-06 08:49:46 -0400
 Fixed Bug 13224 - simplify max mode, make it the default for everything, use it for pad mode.  Also added some more tests
 r57583@macbookpro (orig r28082):  andy | 2009-08-06 09:46:00 -0400
 Refactor S::W::Graphics to use ImageResizer
 r57596@macbookpro (orig r28083):  mwise | 2009-08-06 11:02:59 -0400
 Bug 13265: Should solve the shutdown issue.
 r57597@macbookpro (orig r28084):  mwise | 2009-08-06 11:45:22 -0400
 Bug 12962: Additional space at the end of the line caused the readynas init script to break.
 r57598@macbookpro (orig r28085):  andy | 2009-08-06 19:08:08 -0400
 Audio::Scan 0.28
 
 0.28    2009-08-06 19:00:00
         - Bug 13198, Changed the method for determining FLAC bitrate.
 
 0.27    2009-07-26 23:00:00
         - Added support for Musepack SV8 files.
         - Refactored Musepack code to use buffer API, fixes
           crashes on big-endian platforms.
         - Added support for reading Musepack track gain and album gain.
 r57599@macbookpro (orig r28086):  andy | 2009-08-06 19:41:16 -0400
 Fixed Bug 13252 - downgrade DBD::mysql to 3.0002 to fix crasher



 == Modified 27 files total ==
7.4/branches/noweb/
7.4/branches/noweb/platforms/debian/squeezebox.init
7.4/branches/noweb/platforms/readynas/rules
7.4/branches/noweb/platforms/readynas/squeezebox.init
7.4/branches/noweb/server/CPAN/Audio/Scan.pm
7.4/branches/noweb/server/CPAN/DBD/mysql/GetInfo.pm
7.4/branches/noweb/server/CPAN/DBD/mysql.pm
7.4/branches/noweb/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/Audio/Scan/Scan.dll
7.4/branches/noweb/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/mysql.dll
7.4/branches/noweb/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/branches/noweb/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/branches/noweb/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/branches/noweb/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/branches/noweb/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/branches/noweb/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/branches/noweb/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/branches/noweb/server/CPAN/arch/5.8/sparc-linux/auto/Audio/Scan/Scan.so
7.4/branches/noweb/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/branches/noweb/server/Slim/Utils/ImageResizer.pm
7.4/branches/noweb/server/Slim/Utils/Update.pm
7.4/branches/noweb/server/Slim/Web/Graphics.pm
7.4/branches/noweb/server/modules.conf
7.4/branches/noweb/tests/t/05resizer.t

 == Added 2 files total ==
7.4/branches/noweb/tests/data/images/ref/tall-cover-13x100.jpg
7.4/branches/noweb/tests/data/images/ref/wide-cover-100x12.jpg

 == Removed 2 files total ==
7.4/branches/noweb/platforms/readynas/CPAN/DBD/
7.4/branches/noweb/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/libmysql.dll
Comment 31 Andy Grundman 2009-08-06 17:02:54 UTC
 == Automatic comment from SVN commit #28089 to Repository: slim ==
https://svn.slimdevices.com/slim?view=revision&revision=28089

 r57601@macbookpro (orig r28088):  andy | 2009-08-06 19:58:37 -0400
  r57579@macbookpro (orig r28080):  michael | 2009-08-06 02:38:06 -0400
  Bug: n/a
  Description: don't display download URL in web UI, unless we got an update message from SN including that URL. Don't check for downloads unless auto download is enabled.
  r57580@macbookpro (orig r28081):  andy | 2009-08-06 08:49:46 -0400
  Fixed Bug 13224 - simplify max mode, make it the default for everything, use it for pad mode.  Also added some more tests
  r57583@macbookpro (orig r28082):  andy | 2009-08-06 09:46:00 -0400
  Refactor S::W::Graphics to use ImageResizer
  r57596@macbookpro (orig r28083):  mwise | 2009-08-06 11:02:59 -0400
  Bug 13265: Should solve the shutdown issue.
  r57597@macbookpro (orig r28084):  mwise | 2009-08-06 11:45:22 -0400
  Bug 12962: Additional space at the end of the line caused the readynas init script to break.
  r57598@macbookpro (orig r28085):  andy | 2009-08-06 19:08:08 -0400
  Audio::Scan 0.28
  
  0.28    2009-08-06 19:00:00
          - Bug 13198, Changed the method for determining FLAC bitrate.
  
  0.27    2009-07-26 23:00:00
          - Added support for Musepack SV8 files.
          - Refactored Musepack code to use buffer API, fixes
            crashes on big-endian platforms.
          - Added support for reading Musepack track gain and album gain.
  r57599@macbookpro (orig r28086):  andy | 2009-08-06 19:41:16 -0400
  Fixed Bug 13252 - downgrade DBD::mysql to 3.0002 to fix crasher
 



 == Modified 20 files total ==
7.4/branches/noweb-sqlite/
7.4/branches/noweb-sqlite/platforms/debian/squeezebox.init
7.4/branches/noweb-sqlite/platforms/readynas/rules
7.4/branches/noweb-sqlite/platforms/readynas/squeezebox.init
7.4/branches/noweb-sqlite/server/CPAN/Audio/Scan.pm
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/Audio/Scan/Scan.dll
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/mysql.dll
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb-sqlite/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/branches/noweb-sqlite/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb-sqlite/server/CPAN/arch/5.8/sparc-linux/auto/Audio/Scan/Scan.so
7.4/branches/noweb-sqlite/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/branches/noweb-sqlite/server/Slim/Utils/ImageResizer.pm
7.4/branches/noweb-sqlite/server/Slim/Utils/Update.pm
7.4/branches/noweb-sqlite/server/Slim/Web/Graphics.pm
7.4/branches/noweb-sqlite/server/modules.conf
7.4/branches/noweb-sqlite/tests/t/05resizer.t

 == Added 2 files total ==
7.4/branches/noweb-sqlite/tests/data/images/ref/tall-cover-13x100.jpg
7.4/branches/noweb-sqlite/tests/data/images/ref/wide-cover-100x12.jpg

 == Removed 2 files total ==
7.4/branches/noweb-sqlite/platforms/readynas/CPAN/DBD/
7.4/branches/noweb-sqlite/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/libmysql.dll
Comment 32 Andy Grundman 2009-08-06 17:10:07 UTC
 == Automatic comment from SVN commit #28090 to Repository: slim ==
https://svn.slimdevices.com/slim?view=revision&revision=28090

 r57579@macbookpro (orig r28080):  michael | 2009-08-06 02:38:06 -0400
 Bug: n/a
 Description: don't display download URL in web UI, unless we got an update message from SN including that URL. Don't check for downloads unless auto download is enabled.
 r57580@macbookpro (orig r28081):  andy | 2009-08-06 08:49:46 -0400
 Fixed Bug 13224 - simplify max mode, make it the default for everything, use it for pad mode.  Also added some more tests
 r57583@macbookpro (orig r28082):  andy | 2009-08-06 09:46:00 -0400
 Refactor S::W::Graphics to use ImageResizer
 r57596@macbookpro (orig r28083):  mwise | 2009-08-06 11:02:59 -0400
 Bug 13265: Should solve the shutdown issue.
 r57597@macbookpro (orig r28084):  mwise | 2009-08-06 11:45:22 -0400
 Bug 12962: Additional space at the end of the line caused the readynas init script to break.
 r57598@macbookpro (orig r28085):  andy | 2009-08-06 19:08:08 -0400
 Audio::Scan 0.28
 
 0.28    2009-08-06 19:00:00
         - Bug 13198, Changed the method for determining FLAC bitrate.
 
 0.27    2009-07-26 23:00:00
         - Added support for Musepack SV8 files.
         - Refactored Musepack code to use buffer API, fixes
           crashes on big-endian platforms.
         - Added support for reading Musepack track gain and album gain.
 r57599@macbookpro (orig r28086):  andy | 2009-08-06 19:41:16 -0400
 Fixed Bug 13252 - downgrade DBD::mysql to 3.0002 to fix crasher



 == Modified 27 files total ==
7.4/private-branches/fab4/
7.4/private-branches/fab4/platforms/debian/squeezebox.init
7.4/private-branches/fab4/platforms/readynas/rules
7.4/private-branches/fab4/platforms/readynas/squeezebox.init
7.4/private-branches/fab4/server/CPAN/Audio/Scan.pm
7.4/private-branches/fab4/server/CPAN/DBD/mysql/GetInfo.pm
7.4/private-branches/fab4/server/CPAN/DBD/mysql.pm
7.4/private-branches/fab4/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/Audio/Scan/Scan.dll
7.4/private-branches/fab4/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/mysql.dll
7.4/private-branches/fab4/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/private-branches/fab4/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/private-branches/fab4/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/fab4/server/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/fab4/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/fab4/server/CPAN/arch/5.10/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/fab4/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/Audio/Scan/Scan.bundle
7.4/private-branches/fab4/server/CPAN/arch/5.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
7.4/private-branches/fab4/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/fab4/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/fab4/server/CPAN/arch/5.8/sparc-linux/auto/Audio/Scan/Scan.so
7.4/private-branches/fab4/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so
7.4/private-branches/fab4/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
7.4/private-branches/fab4/server/Slim/Utils/ImageResizer.pm
7.4/private-branches/fab4/server/Slim/Utils/Update.pm
7.4/private-branches/fab4/server/Slim/Web/Graphics.pm
7.4/private-branches/fab4/server/modules.conf
7.4/private-branches/fab4/tests/t/05resizer.t

 == Added 2 files total ==
7.4/private-branches/fab4/tests/data/images/ref/tall-cover-13x100.jpg
7.4/private-branches/fab4/tests/data/images/ref/wide-cover-100x12.jpg

 == Removed 2 files total ==
7.4/private-branches/fab4/platforms/readynas/CPAN/DBD/
7.4/private-branches/fab4/server/CPAN/arch/5.10/MSWin32-x86-multi-thread/auto/DBD/mysql/libmysql.dll
Comment 33 Philip Meyer 2009-08-07 00:30:57 UTC
Doesn't appear to have made any difference.
Comment 34 Andy Grundman 2009-08-07 11:07:56 UTC
Ugh, I am completely stumped. :(
Comment 35 Philip Meyer 2009-08-07 11:39:56 UTC
Well, it used to work before the noweb-sqlite changes were merged, so perhaps compare differences to see what's changed to affect it?
Comment 36 Andy Grundman 2009-08-07 11:42:17 UTC
All the file scanning code is new, so that's why.  I will test a large file on a Windows box, that's the last thing I have left to try.
Comment 37 Andy Grundman 2009-08-07 12:15:40 UTC
Hooray I reproduced it on Windows!
Comment 38 Philip Meyer 2009-08-07 12:24:33 UTC
That's good news - I was beginning to think it was something I've done.

I'm eagerly awaiting a fix!
Comment 39 SVN Bot 2009-08-07 12:30:17 UTC
 == Auto-comment from SVN commit #398 to the opensource repo by andy ==
 == https://svn.slimdevices.com/opensource?view=revision&revision=398 ==

Fixed bug 13198, totalMS as a float here was broken under Windows for some files
Comment 40 SVN Bot 2009-08-07 12:53:55 UTC
 == Auto-comment from SVN commit #28102 to the slim repo by andy ==
 == https://svn.slimdevices.com/slim?view=revision&revision=28102 ==

Bug 13198 - Audio::Scan 0.29, fix for broken FLAC bitrate calculation on Windows
Comment 41 Philip Meyer 2009-08-07 15:58:41 UTC
I can confirm that it appears to be fixed - no errors having rescanned.

The reported bitrate in song info page however seems to be different to what I see reported for the same file in other apps.

Squeezebox Server reports: 399 kbps VBR
Other apps report: 522 kBit/s

Perhaps this is the difference between reporting bitrate of the FLAC compressed and uncompressed?

I also notice quite a few deprecated warnings during scanning.  Are you aware of these:

[23:42:54.4305] Carp::Clan::__ANON__ (216) Warning: DBIx::Class::ResultSet::single(): Query returned more than one row.  SQL that returns multiple rows is DEPRECATED for ->find and ->single at P:/Music/SlimServer/trunk/server/Slim/Schema.pm line 2215
Comment 42 Andy Grundman 2009-08-07 18:31:49 UTC
Do a wipe and rescan, that bogus bitrate value is a result of the workaround that was in place.

I am aware of that SQL warning, will fix it soon, but it's harmless I think.
Comment 43 James Richardson 2009-10-05 14:31:02 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.