Bug 326580

Summary: DigiKam 3.5 corrupts JPG, TiFF, PNG images
Product: [Applications] digikam Reporter: mm3689-forum
Component: Maintenance-MetadataAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: critical CC: caulier.gilles
Priority: NOR    
Version: 3.5.0   
Target Milestone: ---   
Platform: MacPorts   
OS: macOS   
Latest Commit: Version Fixed In: 4.12.0
Sentry Crash Report:
Attachments: Photoshop Elements Crash Log
quicklookd Crash Log
MacOS X Finder Crash Log
digikam Crash Log

Description mm3689-forum 2013-10-24 20:29:06 UTC
After the update to digikam 3.5 and a digikam maintainance rescan pictures->database (SQLite) 150 GB pictures are corrupted: Finder/quicklookd and Photoshop Elements 8 are crashing with error EXC_BREAKPOINT (SIGTRAP), when I open any picture with Quicklook or via Open-dialog of PSE. Raw and PDF pictures are not affected. 

Reproducible: Always

Steps to Reproduce:
better try not to reproduce the bug, if you like your pictures
1. update to digikam 3.5
2. run maintainance + sync pictures to database. After it is done,
3. try to open a picture in MacOS X Finder by pressing space bar or
4. go to Photoshop Elements / open / choose any image digikam can write corrupted metadata to:  jpg, tiff, png. Sigma raw files (X3F) and PDF are not affected
5. go to Apple preview and try to open a jpg picture - it crashes
6. GIMP 2.8.6 Macports version crashes NOT


Actual Results:  
MacOS Finder / Quicklook: Finder crashes
Apple Preview: crashes
Photoshop Elements 8: crashes



Expected Results:  
smooth operation like before (digikam 3.4)

Macports 2.2.0
you find console reports here:
https://trac.macports.org/ticket/40912
Comment 1 mm3689-forum 2013-10-24 20:32:12 UTC
Created attachment 83087 [details]
Photoshop Elements Crash Log
Comment 2 mm3689-forum 2013-10-24 20:32:46 UTC
Created attachment 83088 [details]
quicklookd Crash Log
Comment 3 mm3689-forum 2013-10-24 20:33:16 UTC
Created attachment 83089 [details]
MacOS X Finder Crash Log
Comment 4 mm3689-forum 2013-10-24 20:34:52 UTC
Created attachment 83090 [details]
digikam Crash Log

not sure, if this concerns to the bug since digikam did not crash during the "maintainance". Only the data was loss after.
Comment 5 caulier.gilles 2013-10-24 20:41:58 UTC
Maintenance/Sync Picture WITH database (not to DB) will update image metadata accordingly with DB content. It use Exiv2 shared library to perform these operations. digiKam do not play with image metadata directly : all is delegate to Exiv2.

Please report this problem to Exiv2 project including non corrupted and corrupted images to investigate. Also, please report which information will be sync in images accordingly with digiKam metadata setup.

Note : corruption is not reproducible here under Linux.

Gilles Caulier
Comment 6 mm3689-forum 2013-10-25 10:30:20 UTC
Thanks Gilles. So did I:
http://dev.exiv2.org/issues/930
Comment 7 caulier.gilles 2015-06-22 19:29:35 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

https://www.digikam.org/node/740

Gilles Caulier