Project

General

Profile

Bug #930

Macports 2.2: DigiKam 3.5 corrupts metadata of JPG, TiFF, PNG images ( libexif @0.6.21_0)

Added by Martin Möck over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
metadata
Target version:
Start date:
25 Oct 2013
Due date:
% Done:

100%

Estimated time:

Description

According to the advice of the developer of digikam, I post my problem here again. It is NOT reproduceable under Linux.
https://bugs.kde.org/show_bug.cgi?id=326580

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

Solution on jpeg pictures is to stripe exif data with a tool like http://imageoptim.com/
After that, I can open the pictures in Quicklook, PSE, Preview again - but all the exif data is gone.

One corrupted picture is attached.

Reproducible: Always

Steps to Reproduce: better try not to reproduce the bug, unless you have a backup of your pictures

1. update macports digikam to version 3.5
2. run maintainance + sync pictures with database. In the digikam preferences / Metadata / Write this information to the metadata / every checkbox is checked. In Reading and writing metadata prefs nothing is checked. (see screenshot attached)

After the sync is done,
3. try to preview a picture in MacOS X Finder/Quicklook 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

The following ports are currently installed:
aalib @1.4rc5_4 (active)
akonadi @1.10.2_0+mysql5 (active)
aspell @0.60.6.1_0 (active)
aspell-dict-en @7.1_0 (active)
at-spi2-atk @2.10.0_0 (active)
at-spi2-core @2.10.1_0 (active)
atk @2.10.0_0 (active)
attica @0.4.2_0 (active)
autoconf @2.69_2 (active)
automake @1.14_0 (active)
automoc @0.9.88_4 (active)
avahi @0.6.31_9+gtk+gtk3+python27+x11 (active)
babl @0.1.10_0 (active)
bison @2.7.1_0 (active)
boehmgc @7.2d_0 (active)
boost @1.54.0_0+no_single+no_static+python27 (active)
bzip2 @1.0.6_0 (active)
cairo @1.12.16_1+x11 (active)
cfitsio @3.340_0 (active)
clang-3.3 @3.3_1+analyzer+python27 (active)
clang_select @0.1_0 (active)
clucene @2.3.3.4_0 (active)
cmake @2.8.12_0 (active)
coreutils @8.21_0 (active)
cppunit @1.12.1_0 (active)
curl @7.33.0_0+ssl (active)
curl-ca-bundle @7.33.0_0 (active)
cyrus-sasl2 @2.1.25_4+kerberos (active)
db46 @4.6.21_8 (active)
db_select @0.1_2 (active)
dbus @1.6.12_0+startupitem (active)
dbus-glib @0.100.2_0 (active)
dbus-python27 @0.84.0_0 (active)
dbusmenu-qt @0.9.2_0 (active)
dcraw @9.19-20130617020400_0 (active)
desktop-file-utils @0.15_1 (active)
digikam @3.5.0_0 (active)
dirac @1.0.2_1 (active)
djvulibre @3.5.25_6 (active)
docbook-xml @5.0_2 (active)
docbook-xml-4.1.2 @5.0_1 (active)
docbook-xml-4.2 @5.0_1 (active)
docbook-xml-4.3 @5.0_1 (active)
docbook-xml-4.4 @5.0_1 (active)
docbook-xml-4.5 @5.0_1 (active)
docbook-xml-5.0 @5.0_1 (active)
docbook-xsl @1.78.1_0 (active)
docbook-xsl-ns @1.76.1_0 (active)
doxygen @1.8.5_1 (active)
eggdbus @0.6_1 (active)
eigen3 @3.2.0_0+cmake (active)
enca @1.13_0 (active)
enchant @1.6.0_1 (active)
exiv2 @0.23_0 (active)
expat @2.1.0_0 (active)
ffmpeg @2.0.2_0+gpl2 (active)
fftw-3 @3.3.3_3 (active)
flac @1.3.0_0 (active)
flex @2.5.37_1 (active)
fontconfig @2.11.0_0 (active)
freetype @2.5.0_1 (active)
fribidi @0.19.5_0 (active)
gawk @4.0.2_0 (active)
gconf @2.32.4_2+x11 (active)
gd2 @2.1.0_3+x11 (active)
gdbm @1.10_2 (active)
gdk-pixbuf2 @2.30.0_0+x11 (active)
gegl @0.2.0_9+python27 (active)
geoclue @0.12.99_3 (active)
gettext @0.18.3.1_1 (active)
ghostscript @9.10_0
ghostscript @9.10_1+x11 (active)
giflib @4.2.3_0+x11 (active)
gimp @2.8.6_0 (active)
gimp-app @2.8.2_1 (active)
gimp-help-en @2.8.0_0+python27 (active)
gimp-jp2 @2.2.0_6 (active)
gimp-lqr-plugin @0.7.2_0 (active)
gimp2 @2.8.6_3+help_browser+python27 (active)
glib-networking @2.38.0_0 (active)
glib2 @2.38.1_0 (active)
gmake @3.82_0 (active)
gmic @1.5.0.8_5 (active)
gmp @5.1.2_0 (active)
gnome-doc-utils @0.20.10_0+python27 (active)
gnome-keyring @2.32.1_0 (active)
gnome-mime-data @2.18.0_3 (active)
gnome-vfs @2.24.4_1 (active)
gnupg @1.4.14_0 (active)
gnutls @3.1.10_1 (active)
gobject-introspection @1.38.0_1 (active)
gpgme @1.4.2_0 (active)
gpsd @3.5_3 (active)
grantlee @0.3.0_0 (active)
GraphicsMagick @1.3.18_0+q8 (active)
graphite2 @1.2.3_0 (active)
gsettings-desktop-schemas @3.8.2_0 (active)
gstreamer1 @1.0.9_0 (active)
gstreamer1-gst-plugins-base @1.0.9_0 (active)
gtk-doc @1.18_0+python27 (active)
gtk-nodoka-engine @0.7.5_3 (active)
gtk2 @2.24.22_0+x11 (active)
gtk3 @3.10.1_0+x11 (active)
gtkimageview @1.6.4_5 (active)
gutenprint @5.2.9_1 (active)
harfbuzz @0.9.22_0 (active)
harfbuzz-icu @0.9.22_0 (active)
help2man @1.43.3_0 (active)
hicolor-icon-theme @0.12_0 (active)
hunspell @1.3.2_0 (active)
icns-gimp @0.1_1 (active)
icu @51.2_1 (active)
ilmbase @1.0.2_0 (active)
ImageMagick @6.8.7-0_0+x11
ImageMagick @6.8.7-2_0+x11 (active)
intltool @0.50.2_2+perl5_12 (active)
iso-codes @3.43_0 (active)
jack @0.121.3_0 (active)
jasper @1.900.1_10 (active)
jbig2dec @0.11_1 (active)
jbigkit @2.0_2 (active)
jpeg @9_1 (active)
kactivities @4.11.2_0 (active)
kde-l10n-de @4.11.2_0 (active)
kde4-baseapps @4.11.2_0 (active)
kde4-runtime @4.11.2_0 (active)
kdeartwork @4.11.2_0 (active)
kdelibs4 @4.11.2_0+docs (active)
kdepimlibs4 @4.11.2_0 (active)
kerberos5 @1.11.3_0 (active)
krusader @2.0.0_1 (active)
lame @3.99.5_0 (active)
lcms @1.19_5 (active)
lcms2 @2.4_2 (active)
ld64 @127.2_6+llvm33 (active)
lensfun @0.2.8_0 (active)
libart_lgpl @2.3.21_0 (active)
libass @0.10.1_0 (active)
libassuan @2.1.1_0 (active)
libbluray @0.3.0_0 (active)
libbonobo @2.32.1_1 (active)
libbonoboui @2.24.5_7+x11 (active)
libcanberra @0.30_3+x11 (active)
libcomerr @1.42.7_2 (active)
libcroco @0.6.8_0 (active)
libdaemon @0.14_0 (active)
libdmtx @0.7.2_5 (active)
libedit @20121213-3.0_0 (active)
libexif @0.6.21_0 (active)
libffi @3.0.13_0 (active)
libgcrypt @1.5.3_0 (active)
libglade2 @2.6.4_7 (active)
libgnome @2.32.1_0 (active)
libgnome-keyring @2.32.0_0 (active)
libgnomecanvas @2.30.3_4 (active)
libgnomeui @2.24.5_10+x11 (active)
libgpg-error @1.12_0 (active)
libgphoto2 @2.5.2_1 (active)
libgpod @0.8.0_11+python27 (active)
libgsf @1.14.28_0 (active)
libical @0.43_1 (active)
libiconv @1.14_0 (active)
libidl @0.8.14_2 (active)
libidn @1.26_0 (active)
libiodbc @3.52.8_4+x11 (active)
libkdcraw @4.11.2_0 (active)
libkdeedu @4.11.2_0 (active)
libkexiv2 @4.11.2_0 (active)
libkipi @4.11.2_0 (active)
libksane @4.11.2_0 (active)
liblqr @1-0.4.2_0 (active)
libmng @1.0.10_3 (active)
libmodplug @0.8.8.4_0 (active)
libogg @1.3.1_0 (active)
libopenraw @0.0.9_3 (active)
libopus @1.0.3_0 (active)
libpaper @1.1.24_0 (active)
libpixman @0.30.2_0 (active)
libplist @1.10_0+python27 (active)
libpng @1.5.17_0 (active)
libproxy @0.4.11_1+python27 (active)
librsvg @2.36.4_2 (active)
libsamplerate @0.1.8_0 (active)
libsdl @1.2.15_3+x11 (active)
libsecret @0.16_0 (active)
libsndfile @1.0.25_0 (active)
libsoup @2.44.1_0 (active)
libspiro @20071029_0 (active)
libssh @0.5.5_0 (active)
libtasn1 @2.11_0 (active)
libtheora @1.1.1_1 (active)
libtool @2.4.2_3 (active)
libusb @1.0.9_0
libusb @1.0.17_0 (active)
libusb-compat @0.1.4_0 (active)
libvorbis @1.3.3_0 (active)
libvpx @1.2.0_1 (active)
libwmf @0.2.8.4_7 (active)
libxml2 @2.9.1_0 (active)
libxslt @1.1.28_0 (active)
llvm-3.3 @3.3_1 (active)
llvm_select @0.2_0 (active)
lua @5.2.2_1 (active)
lzo2 @2.06_0 (active)
m4 @1.4.16_0 (active)
macclipboard-gimp @0.7_0 (active)
macfile-gimp @0.1_0 (active)
marble @4.11.2_0 (active)
mesa @8.0.4_2+python27 (active)
mhash @0.9.9.9_0 (active)
mpfr @3.1.1-p2_0 (active)
mysql5 @5.1.72_0 (active)
mysql5-server @5.1.72_0 (active)
ncurses @5.9_2 (active)
nepomuk-core @4.11.2_0 (active)
nepomuk-widgets @4.11.2_0 (active)
net-snmp @5.7.2_0 (active)
nettle @2.6_1 (active)
nosetests_select @0.1_0 (active)
opencv @2.4.6.1_2 (active)
openexr @1.7.0_0 (active)
openjpeg @2.0.0_0 (active)
openjpeg15 @1.5.0_0 (active)
openldap @2.4.31_3 (active)
openslp @1.2.1_2 (active)
openssl @1.0.1e_1 (active)
orbit2 @2.14.19_2 (active)
orc @0.4.17_0 (active)
oxygen-icons @4.11.2_0 (active)
p5.12-getopt-long @2.400.0_0 (active)
p5.12-locale-gettext @1.50.0_7 (active)
p5.12-pathtools @3.330.0_3 (active)
p5.12-scalar-list-utils @1.270.0_3 (active)
p5.12-xml-parser @2.400.0_4 (active)
p11-kit @0.20.1_0 (active)
pango @1.36.0_0+x11 (active)
pcre @8.33_0 (active)
perl5 @5.12.4_0+perl5_12 (active)
perl5.12 @5.12.4_2 (active)
phonon @4.6.0_1 (active)
pkgconfig @0.28_0 (active)
policykit @0.104_1 (active)
poppler @0.24.2_0 (active)
poppler-data @0.4.6_0 (active)
popt @1.16_0 (active)
prison @1.0_0 (active)
pth @2.0.7_0 (active)
py27-cairo @1.10.0_2+x11 (active)
py27-gdbm @2.7.5_0 (active)
py27-gobject @2.28.6_0 (active)
py27-libxml2 @2.9.1_0 (active)
py27-mutagen @1.21_0 (active)
py27-nose @1.3.0_0 (active)
py27-numpy @1.7.1_0 (active)
py27-pygtk @2.24.0_1+x11 (active)
py27-setuptools @1.1.6_0 (active)
python27 @2.7.5_1 (active)
python_select @0.3_2 (active)
qca @2.0.3_1 (active)
qimageblitz @0.0.6_0 (active)
qjson @0.7.1_1 (active)
qrencode @3.1.1_2 (active)
qt4-mac @4.8.5_0 (active)
qt4-mac-mysql5-plugin @4.8.5_0 (active)
qt4-mac-sqlite3-plugin @4.8.5_0 (active)
raptor2 @2.0.8_0 (active)
rarian @0.8.1_0 (active)
rasqal @0.9.29_0 (active)
readline @6.2.000_0 (active)
redland @1.0.15_0+db46 (active)
sane-backends @1.0.22_4 (active)
schroedinger @1.0.11_0 (active)
scons @2.3.0_0 (active)
shared-desktop-ontologies @0.11.0_0 (active)
shared-mime-info @1.2_0 (active)
soprano @2.9.3_0 (active)
speex @1.2rc1_0 (active)
sqlite3 @3.8.0.2_0 (active)
strigi @0.7.7_5 (active)
swig @2.0.10_0 (active)
swig-python @2.0.10_0 (active)
taglib @1.8_0 (active)
tcp_wrappers @20_2 (active)
texi2html @5.0_0 (active)
texinfo @4.13_2 (active)
tiff @4.0.3_1 (active)
ufraw @0.19.2_0 (active)
urw-fonts @1.0.7pre44_0 (active)
vala @0.20.1_0 (active)
virtuoso @7.0.0_0 (active)
w3m @0.5.3_2 (active)
webkit-gtk @2.0.4_1+video (active)
webp @0.3.1_0 (active)
x264 @20130327_0 (active)
Xft2 @2.3.1_0 (active)
xmlcatmgr @2.2_1 (active)
xorg-compositeproto @0.4.2_0 (active)
xorg-damageproto @1.2.1_0 (active)
xorg-dri2proto @2.8_0 (active)
xorg-evieproto @1.1.1_0 (active)
xorg-fixesproto @5.0_0 (active)
xorg-glproto @1.4.16_0 (active)
xorg-inputproto @2.3_0 (active)
xorg-kbproto @1.0.6_0 (active)
xorg-libice @1.0.8_0 (active)
xorg-libpthread-stubs @0.3_0 (active)
xorg-libsm @1.2.1_0 (active)
xorg-libX11 @1.6.2_0 (active)
xorg-libXau @1.0.8_0 (active)
xorg-libxcb @1.9.1_0+python27 (active)
xorg-libXcomposite @0.4.4_0 (active)
xorg-libXcursor @1.1.14_0 (active)
xorg-libXdamage @1.1.4_0 (active)
xorg-libXdmcp @1.1.1_0 (active)
xorg-libXevie @1.0.3_0 (active)
xorg-libXext @1.3.2_0 (active)
xorg-libXfixes @5.0.1_0 (active)
xorg-libXi @1.7.2_0 (active)
xorg-libXinerama @1.1.3_0 (active)
xorg-libXmu @1.1.2_0 (active)
xorg-libXrandr @1.4.2_0 (active)
xorg-libXt @1.1.4_0 (active)
xorg-libXtst @1.2.2_0 (active)
xorg-randrproto @1.4.0_0 (active)
xorg-recordproto @1.14.2_0 (active)
xorg-renderproto @0.11.1_0 (active)
xorg-util-macros @1.17.1_0 (active)
xorg-xcb-proto @1.8_0+python27 (active)
xorg-xcb-util @0.3.9_0 (active)
xorg-xextproto @7.2.1_0 (active)
xorg-xineramaproto @1.2.1_0 (active)
xorg-xproto @7.0.24_0 (active)
xpm @3.5.11_0 (active)
xrender @0.9.8_0 (active)
xsane @0.998_2 (active)
XviD @1.3.2_3 (active)
xz @5.0.5_0 (active)
yasm @1.2.0_0 (active)
zlib @1.2.8_0 (active)


Files

IMG_7719.jpg (4.88 MB) IMG_7719.jpg JPG with corrupted metadata, which causes Finder, Preview, PSE on MacOS 10.6.8 to crash Martin Möck, 25 Oct 2013 03:18
Digikam_Metadata_prefs.png (43.6 KB) Digikam_Metadata_prefs.png Digikam metadata prefs Martin Möck, 25 Oct 2013 03:18
Digikam_Maintainance_prefs.png (68.1 KB) Digikam_Maintainance_prefs.png Digikam maintainance prefs Martin Möck, 25 Oct 2013 03:18
IMG_7719.JPG (3.24 MB) IMG_7719.JPG non-currupted version of the picture Martin Möck, 25 Oct 2013 03:29
DigiKam-IMG_7719.png (388 KB) DigiKam-IMG_7719.png Robin Mills, 12 Apr 2015 23:38

History

#1

Updated by Martin Möck over 5 years ago

I forgot the non-currupted version of the picture

#2

Updated by Robin Mills about 4 years ago

  • Assignee set to Robin Mills
  • Priority changed from Urgent to Normal
  • Target version set to 0.25

I'm going to mark this as "Resolved". The issue cannot be reproduced:

537 rmills@rmillsmbp:~/gnu/exiv2/trunk $ ls -alt IMG_7719.jpg 
-rw-r--r--+ 1 rmills  staff  5119001 12 Apr 21:07 IMG_7719.jpg
538 rmills@rmillsmbp:~/gnu/exiv2/trunk $ exiv2 -pa IMG_7719.jpg 
Exif.Image.ProcessingSoftware                Ascii      14  digiKam-3.5.0
Exif.Image.Make                              Ascii       6  Canon
Exif.Image.Model                             Ascii      13  Canon EOS 5D
...
No crash on the trunk. I suspect a new version of DigiKam will resolve this.

#3

Updated by Thomas Beutlich about 4 years ago

Robin, did you try to reproduce with Macports? Issue author already said that it is not reproducible on Linux.

#4

Updated by Robin Mills about 4 years ago

No Thomas, I did not. I only ran the image on exiv2 on MacOS-X on the trunk. And I'm not even sure that he's using Exiv2. The bug title and the report shows "libexif @0.6.21_0 (active)". There are two possibilities:

1) His version of DigiKam is using libexif and not libexiv2
2) He's using Exiv2 v0.21.0 which has been somehow labelled as "libexif @0.6.21_0"
v0.21 is a rather elderly version of exiv2 (about 6 years old).

So... my feeling is that he should update DigiKam. I'm running mac ports right now to install DigiKam and I'll look at this when the golf is finished.

#5

Updated by Robin Mills about 4 years ago

Well, MacPorts has build DigiKam in about 2 hours. Lots of dependencies (including exiv2 of course).

I got it to run. You have start bus:

620 rmills@rmillsmbp:/Applications $ launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
/opt/local/Library/LaunchAgents/org.freedesktop.dbus-session.plist: Operation already in progress
621 rmills@rmillsmbp:/Applications $ ps ax | grep dbus
94908   ??  S      0:00.01 /opt/local/bin/dbus-daemon --nofork --session
95128 s000  R+     0:00.00 grep dbus
622 rmills@rmillsmbp:/Applications $ 
I think it's running. Then chown the preferences:
625 rmills@rmillsmbp:/Applications $ sudo chown -R rmills ~/Library/Preferences/KDE
626 rmills@rmillsmbp:/Applications $ 
And then the application magically appears in /Applications/Macports/KDE/digikam. And here's Martin's image and metadata beautifully displayed:

For sure it's running libexiv2 v0.24

517 rmills@rmillsmbp:/Applications/MacPorts/KDE4/digikam.app/Contents/MacOS $ otool -L digikam | grep exiv2
    /opt/local/lib/libkexiv2.11.dylib (compatibility version 11.0.0, current version 11.2.0)
518 rmills@rmillsmbp:/Applications/MacPorts/KDE4/digikam.app/Contents/MacOS $ depends digikam | grep exiv2
/opt/local/lib/libexiv2.13.dylib
/opt/local/lib/libkexiv2.11.dylib
519 rmills@rmillsmbp:/Applications/MacPorts/KDE4/digikam.app/Contents/MacOS $ exiv2 -vV | grep libexiv2
library=/usr/local/lib/libexiv2.13.dylib
520 rmills@rmillsmbp:/Applications/MacPorts/KDE4/digikam.app/Contents/MacOS $ 
I think this is a wild goose chase. The user is talking about DigiKam v3.5 and the current release is v4.8. For sure, it's time for an upgrade.

#6

Updated by Robin Mills about 4 years ago

  • % Done changed from 0 to 100
#7

Updated by Andreas Huggel almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF