Bugzilla – Bug 17401
Media::Scan Picture scanner crashes on Linux
Last modified: 2011-08-29 08:58:12 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
Created attachment 7373 [details] Sample image that causes crash
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.
Should have added that I find no useful errors in SbS logs but I haven't set log options higher than default.
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.
Andy - can easily reproduce this in Ubuntu 11.04
Should be fixed in r33247 for x86 Linux.