Summary: | digiKam crashes when saving ratings to a raw (nef) file - Use ExifTool instead. | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Frank Hommes <freanki> |
Component: | Metadata-ExifTool | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ahuggel, caulier.gilles |
Priority: | NOR | ||
Version: | 1.3.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/digikam/commit/232040bdd51ba615ba3c2ac04e4846a3cf80c1af | Version Fixed In: | 8.0.0 |
Sentry Crash Report: |
Description
Frank Hommes
2010-04-23 14:11:59 UTC
This is relevant of Exiv2 library. Which version you use exactly ? Gilles Caulier oh right, it's exiv2 again. I'm using the latest version vom svn-trunk revision:2185. Ok, Andreas Huggel, Exiv2 author is there... Can you try to use Exiv2 command line tool to reproduce the cras as well ? Gilles Caulier I tried to though it's more complex to me then i.e. exiftools =) I extracted the metadata and tried to write it to the file again when exiv2 crashes with: exiv2: /root/trunk/src/tiffcomposite.cpp:1845: virtual uint32_t Exiv2::Internal::TiffDirectory::doSizeData() const: Assertion `false' failed. Aborted Ok, thanks. I let's Andreas managed this entry. Gilles Caulier Ok, this looks like an exiv2 bug. Marked as upstream. Yes, an exiv2 issue, I can reproduce it too. Quite easily actually: $ exiv2 -M'set Exif.Image.Rating 5' image.NEF Will have a look... Andreas Checked-in a fix, the above command-line now works again. Can you please try with exiv2 svn r2198 or higher and report if that solves your problem? Andreas The command is not working with at revision 2207. freanki@tristan:~/win/pics/2010/raw$ exiv2 -M'set Exif.Image.Rating 5' 20100429-105920.nef exiv2: /home/freanki/progs/src/trunk/src/tiffcomposite.cpp:1853: virtual uint32_t Exiv2::Internal::TiffDirectory::doSizeData() const: Assertion `false' failed. Aborted It works fine here, I just tested again. Please double-check that you're really using the newly compiled library and not some older version. If the problem persists, please send me the image (ahuggel at gmx dot net) Andreas Please tell me how to get sure. freanki@tristan:~/progs/src/trunk/build$ exiv2 -V exiv2 0.19.1 freanki@tristan:~/progs/src/trunk$ svn update At revision 2209. freanki@tristan:~/progs/src/trunk$ cd build freanki@tristan:~/progs/src/trunk/build$ make && sudo make install [ 70%] Built target exiv2 [ 73%] Built target exiv2bin [ 75%] Built target metacopy [ 76%] Built target taglist [ 92%] Built target translationsexiv2 [100%] Built target update_translations_exiv2 [sudo] password for freanki: [ 70%] Built target exiv2 [ 73%] Built target exiv2bin [ 75%] Built target metacopy [ 76%] Built target taglist [ 92%] Built target translationsexiv2 [100%] Built target update_translations_exiv2 Install the project... -- Install configuration: "debugfull" -- Up-to-date: /usr/include/exiv2/exv_conf.h -- Up-to-date: /usr/include/exiv2/exv_msvc.h -- Up-to-date: /usr/lib/pkgconfig/exiv2.pc -- Up-to-date: /usr/lib/pkgconfig/exiv2.lsm -- Up-to-date: /usr/lib/libexiv2.so.6.0.0 -- Up-to-date: /usr/lib/libexiv2.so.6 -- Up-to-date: /usr/lib/libexiv2.so -- Up-to-date: /usr/bin/exiv2 -- Up-to-date: /usr/bin/metacopy -- Up-to-date: /usr/bin/taglist -- Up-to-date: /usr/include/exiv2/basicio.hpp -- Up-to-date: /usr/include/exiv2/bmpimage.hpp -- Up-to-date: /usr/include/exiv2/canonmn.hpp -- Up-to-date: /usr/include/exiv2/convert.hpp -- Up-to-date: /usr/include/exiv2/cr2image.hpp -- Up-to-date: /usr/include/exiv2/crwimage.hpp -- Up-to-date: /usr/include/exiv2/datasets.hpp -- Up-to-date: /usr/include/exiv2/easyaccess.hpp -- Up-to-date: /usr/include/exiv2/error.hpp -- Up-to-date: /usr/include/exiv2/exif.hpp -- Up-to-date: /usr/include/exiv2/fujimn.hpp -- Up-to-date: /usr/include/exiv2/futils.hpp -- Up-to-date: /usr/include/exiv2/gifimage.hpp -- Up-to-date: /usr/include/exiv2/image.hpp -- Up-to-date: /usr/include/exiv2/iptc.hpp -- Up-to-date: /usr/include/exiv2/jp2image.hpp -- Up-to-date: /usr/include/exiv2/jpgimage.hpp -- Up-to-date: /usr/include/exiv2/metadatum.hpp -- Up-to-date: /usr/include/exiv2/minoltamn.hpp -- Up-to-date: /usr/include/exiv2/mn.hpp -- Up-to-date: /usr/include/exiv2/mrwimage.hpp -- Up-to-date: /usr/include/exiv2/nikonmn.hpp -- Up-to-date: /usr/include/exiv2/olympusmn.hpp -- Up-to-date: /usr/include/exiv2/orfimage.hpp -- Up-to-date: /usr/include/exiv2/panasonicmn.hpp -- Up-to-date: /usr/include/exiv2/pentaxmn.hpp -- Up-to-date: /usr/include/exiv2/pgfimage.hpp -- Up-to-date: /usr/include/exiv2/pngimage.hpp -- Up-to-date: /usr/include/exiv2/preview.hpp -- Up-to-date: /usr/include/exiv2/properties.hpp -- Up-to-date: /usr/include/exiv2/psdimage.hpp -- Up-to-date: /usr/include/exiv2/rafimage.hpp -- Up-to-date: /usr/include/exiv2/rcsid.hpp -- Up-to-date: /usr/include/exiv2/rw2image.hpp -- Up-to-date: /usr/include/exiv2/sigmamn.hpp -- Up-to-date: /usr/include/exiv2/sonymn.hpp -- Up-to-date: /usr/include/exiv2/tags.hpp -- Up-to-date: /usr/include/exiv2/tgaimage.hpp -- Up-to-date: /usr/include/exiv2/tiffimage.hpp -- Up-to-date: /usr/include/exiv2/types.hpp -- Up-to-date: /usr/include/exiv2/value.hpp -- Up-to-date: /usr/include/exiv2/version.hpp -- Up-to-date: /usr/include/exiv2/xmp.hpp -- Up-to-date: /usr/include/exiv2/xmpsidecar.hpp -- Up-to-date: /usr/man/man1/exiv2.1 -- Up-to-date: /usr/share/locale/fr/LC_MESSAGES/exiv2.mo -- Up-to-date: /usr/share/locale/fi/LC_MESSAGES/exiv2.mo -- Up-to-date: /usr/share/locale/es/LC_MESSAGES/exiv2.mo -- Up-to-date: /usr/share/locale/sk/LC_MESSAGES/exiv2.mo -- Up-to-date: /usr/share/locale/ru/LC_MESSAGES/exiv2.mo -- Up-to-date: /usr/share/locale/pl/LC_MESSAGES/exiv2.mo -- Up-to-date: /usr/share/locale/de/LC_MESSAGES/exiv2.mo freanki@tristan:~/progs/src/trunk/build$ exiv2 -M'set Exif.Image.Rating 5' /home/freanki/win/pics/2010/raw/20100429-105920.nef exiv2: /home/freanki/progs/src/trunk/src/tiffcomposite.cpp:1853: virtual uint32_t Exiv2::Internal::TiffDirectory::doSizeData() const: Assertion `false' failed. Aborted freanki@tristan:~/progs/src/trunk/build$ /usr/local/bin/exiv2 -M'set Exif.Image.Rating 5' /home/freanki/win/pics/2010/raw/20100429-105920.nef exiv2: /home/freanki/progs/src/trunk/src/tiffcomposite.cpp:1853: virtual uint32_t Exiv2::Internal::TiffDirectory::doSizeData() const: Assertion `false' failed. Aborted (What means resolved as upstream exactly?) Frank, You're using cmake to build exiv2, which by itself is experimental. In order to be sure you're testing what you've just compiled, pls follow these steps: Check-out a new copy of exiv2 from SVN (or clean up the current one thoroughly), then run the following commands in the top directory: $ make config; ./configure; make $ cd src $ ./exiv2 -M'set Exif.Image.Rating 5' /path/to/image.nef and if that works, you may want to $ make install and re-compile digiKam + Co so that they also use it. (Assuming it's currently linked to the cmake-built library.) Gilles, Look at the snippet below. Does that mean cmake didn't install anything? [100%] Built target update_translations_exiv2 Install the project... -- Install configuration: "debugfull" [...] -- Up-to-date: /usr/lib/libexiv2.so.6 -- Up-to-date: /usr/lib/libexiv2.so -- Up-to-date: /usr/bin/exiv2 [...] Andreas This means cmake didn't install these files because the installed ones are the same as in the build tree. If you look at the other messages you see that there were no code changes since the last built of exiv2 so that nothing had to be rebuilt since the last call to make. Yeah, those [...] -- Up-to-date: /usr/lib/libexiv2.so.6 -- Up-to-date: /usr/lib/libexiv2.so -- Up-to-date: /usr/bin/exiv2 [...] have been like this because I already installed the current svn version. Just to show all the output... With make/configure instead of cmake it really works! Thank you! Git commit 232040bdd51ba615ba3c2ac04e4846a3cf80c1af by Gilles Caulier. Committed on 08/04/2022 at 05:24. Pushed by cgilles into branch 'master'. More files closed with ExifTool backend used to write metadata to RAW files instead Exiv2. Related: bug 193228, bug 236127, bug 291627, bug 305823, bug 317745, bug 234181, bug 366406, bug 168064, bug 134487 FIXED-IN: 8.0.0 M +14 -4 NEWS https://invent.kde.org/graphics/digikam/commit/232040bdd51ba615ba3c2ac04e4846a3cf80c1af |