Bug 14328 - Need useful error messages when artwork fails
: Need useful error messages when artwork fails
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.4.0
: PC Debian Linux
: P2 normal (vote)
: 7.4.x
Assigned To: Andy Grundman
:
Depends on:
Blocks: 14386
  Show dependency treegraph
 
Reported: 2009-09-26 12:04 UTC by Marc Auslander
Modified: 2010-02-17 09:52 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Auslander 2009-09-26 12:04:03 UTC
Some of my cover art isn't showing up.  The scanner log has entries of the form:

[09-09-26 14:59:00.1542] Slim::Music::Import::runScanPostProcessing (433) Starting artwork scan
[09-09-26 14:59:05.4242] Slim::Web::Graphics::processCoverArtRequest (262) Error: Unable to resize music/28064/cover_100x100_o: Can't resize unknown type, magic: "\0\0\rIHDR\0"
[09-09-26 14:59:05.5246] Slim::Web::Graphics::processCoverArtRequest (262) Error: Unable to resize music/28064/cover_50x50_o: Can't resize unknown type, magic: "\0\0\rIHDR\0"
[09-09-26 14:59:05.5336] Slim::Web::Graphics::processCoverArtRequest (262) Error: Unable to resize music/28064/cover_40x40_m: Can't resize unknown type, magic: "\0\0\rIHDR\0"
...

which are useless.  (AFAIK, all my artwork are jpg files.)

Every scanner error should log a file name and a coherent reason for the failure.
Comment 1 Gordon Harris 2009-10-06 05:36:20 UTC
It also might help prevent confusion if file names and paths emitted in the log are always correctly utf8 encoded...either that or emit the value directly from the url field in the track table without translation.  As it is, when I look at logs, I don't know if I'm seeing the problem, or seeing a mis-translation of the problem.
Comment 2 Andy Grundman 2010-02-17 09:52:58 UTC
This error now includes the filename.