Bug 17401 - Media::Scan Picture scanner crashes on Linux
: Media::Scan Picture scanner crashes on Linux
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.7.0
: PC Ubuntu Linux
: P1 normal with 3 votes (vote)
: 7.7.0
Assigned To: Andy Grundman
: libmediascan
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-04 01:22 UTC by Erland Isaksson
Modified: 2011-08-29 08:58 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Sample image that causes crash (435.07 KB, image/jpeg)
2011-08-04 01:22 UTC, Erland Isaksson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erland Isaksson 2011-08-04 01:22:05 UTC
The Media::Scan module seems to crash on Linux when it scans JPG pictures.
It seems to crash on all my images and Michael has tried the attached image on OSX where it seems to work, so I think it's Linux related. Other people have reported similar problems on Linux so I don't think it's specific to my setup.

Running the scanner with enhanced debugging enabled from command line gives this:
Scanning file /mnt/tmppictures/P7060033.JPG
Init JPEG buffer src, 4096 bytes in buffer
JPEG skip requested: 302 bytes
  JPEG buffer consume 2427 bytes
Parsing EXIF tag of size 14403
Saving Exif entry: ImageDescription: OLYMPUS DIGITAL CAMERA         
Saving Exif entry: Make: OLYMPUS OPTICAL CO.,LTD
Saving Exif entry: Model: C700UZ
Exif orientation: 1
Saving Exif entry: Orientation: Top-left
Saving Exif entry: XResolution: 72
Saving Exif entry: YResolution: 72
Saving Exif entry: ResolutionUnit: Inch
Saving Exif entry: Software: v357p-A75
Saving Exif entry: DateTime: 2002:07:06 14:40:39
Saving Exif entry: YCbCrPositioning: Co-sited
Saving Exif entry: Compression: JPEG compression
Saving Exif entry: XResolution: 72
Saving Exif entry: YResolution: 72
Saving Exif entry: ResolutionUnit: Inch
Saving Exif entry: ExposureTime: 1/1000 sec.
Saving Exif entry: FNumber: f/5.0
Saving Exif entry: ExposureProgram: Normal program
Saving Exif entry: ISOSpeedRatings: 100
Saving Exif entry: ExifVersion: Exif Version 2.1
Saving Exif entry: DateTimeOriginal: 2002:07:06 14:40:39
Saving Exif entry: DateTimeDigitized: 2002:07:06 14:40:39
Saving Exif entry: ComponentsConfiguration: Y Cb Cr -
Saving Exif entry: CompressedBitsPerPixel:  2
Saving Exif entry: ExposureBiasValue: 0.00 EV
Saving Exif entry: MaxApertureValue: 3.00 EV (f/2.8)
Saving Exif entry: MeteringMode: Pattern
Saving Exif entry: LightSource: Unknown
Saving Exif entry: Flash: Flash did not fire
Saving Exif entry: FocalLength: 5.9 mm
Saving Exif entry: MakerNote: 520 bytes undefined data
Saving Exif entry: UserComment:                                                                                                                      
Saving Exif entry: FlashPixVersion: FlashPix Version 1.0
Saving Exif entry: ColorSpace: sRGB
Saving Exif entry: PixelXDimension: 1600
Saving Exif entry: PixelYDimension: 1200
Saving Exif entry: FileSource: DSC
Saving Exif entry: SceneType: Directly photographed
Saving Exif entry: InteroperabilityIndex: R98
Saving Exif entry: InteroperabilityVersion: 0100
Resizing from 1600 x 1200 -> 300 x 225
Using JPEG scale factor 1/5, new source dimensions 400 x 300
thumb using width padding 0, inner width 0, height padding 0, inner height 225, bgcolor 0
[11-08-04 04:14:51.3808] Slim::Utils::Scanner::LMS::__ANON__ (761) Handling new image /mnt/tmppictures/P7060033.JPG
Segmentation fault
Comment 1 Erland Isaksson 2011-08-04 01:22:45 UTC
Created attachment 7373 [details]
Sample image that causes crash
Comment 2 Bob 2011-08-05 08:44:13 UTC
I have exactly the same problem as erland. Images do not scan on my Linux setup at all. The initial image scan causes SbS to stop and on restart the scan appears to start but does nothing.
Comment 3 Bob 2011-08-05 08:50:51 UTC
Should have added that I find no useful errors in SbS logs but I haven't set log options higher than default.
Comment 4 Gordon Harris 2011-08-06 09:18:16 UTC
I'm seeing the same issue on a ubuntu server 10.04 system.  Even with logging raised to debug, no useful info in the server or scanner logs.
Comment 5 Michael Herger 2011-08-29 03:39:55 UTC
Andy - can easily reproduce this in Ubuntu 11.04
Comment 6 Andy Grundman 2011-08-29 08:58:12 UTC
Should be fixed in r33247 for x86 Linux.