Bug 377418 - Crash on saving metadata. Latest AppImage 5.5
Summary: Crash on saving metadata. Latest AppImage 5.5
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 5.5.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-09 11:59 UTC by Andrius
Modified: 2022-01-31 13:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius 2017-03-09 11:59:19 UTC
digikam.metaengine: Metadata for file "20161218_172327.jpg" written to file.
[New Thread 0x7fff17fff700 (LWP 21566)]
[Switching to Thread 0x7fff15924700 (LWP 21565)]

Thread 231 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffee10b8bd in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007fffee10b8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff5e8054d in VerifyXPathRoot (expandedXPath=0x7fff15922420, 
    propName=0x7fff20064548 "hierarchicalSubject", 
    schemaURI=0x7fff2007f588 "http://ns.adobe.com/lightroom/1.0/")
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/xmpsdk/src/XMPCore_Impl.cpp:173
#2  ExpandXPath (
    schemaNS=schemaNS@entry=0x7fff2007f588 "http://ns.adobe.com/lightroom/1.0/", propPath=propPath@entry=0x7fff20034ef8 "hierarchicalSubject", 
    expandedXPath=expandedXPath@entry=0x7fff15922420)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/xmpsdk/src/XMPCore_Impl.cpp:688
#3  0x00007ffff5e88166 in XMPMeta::SetProperty (this=this@entry=
    0x7fff200852f0, 
    schemaNS=schemaNS@entry=0x7fff2007f588 "http://ns.adobe.com/lightroom/1.0/", propName=propName@entry=0x7fff20034ef8 "hierarchicalSubject", 
    propValue=propValue@entry=0x0, options=options@entry=512)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/xmpsdk/src/XMPMeta-GetSet.cpp:460
#4  0x00007ffff5e756fa in WXMPMeta_SetProperty_1 (xmpRef=0x7fff200852f0, 
    schemaNS=0x7fff2007f588 "http://ns.adobe.com/lightroom/1.0/", 
    propName=0x7fff20034ef8 "hierarchicalSubject", propValue=0x0, options=512, 
---Type <return> to continue, or q <return> to quit---
    wResult=0x7fff159224e0)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/xmpsdk/src/WXMPMeta.cpp:529
#5  0x00007ffff5e63428 in TXMPMeta<std::string>::SetProperty (
    this=this@entry=0x7fff15922900, schemaNS=<optimized out>, 
    propName=<optimized out>, propValue=propValue@entry=0x0, 
    options=options@entry=512)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/xmpsdk/include/client-glue/TXMPMeta.incl_cpp:421
#6  0x00007ffff5e6025e in Exiv2::XmpParser::encode (
    xmpPacket="<?xpacket begin=\"\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?> <x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 4.4.0-Exiv2\"> <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"> <rdf:Descrip"..., 
    xmpData=..., formatFlags=formatFlags@entry=2112, padding=padding@entry=0)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/xmp.cpp:744
#7  0x00007ffff5dc4cd4 in Exiv2::JpegBase::doWriteMetadata (
    this=this@entry=0x7fff20066b60, outIo=...)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/jpgimage.cpp:1071
#8  0x00007ffff5dc62d7 in Exiv2::JpegBase::writeMetadata (this=0x7fff20066b60)
    at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/jpgimage.cpp:872
#9  0x00007ffff67f53ee in Digikam::MetaEngine::Private::saveOperations (
    this=this@entry=0x7fff20077a60, finfo=..., image=...)
    at /b/dktemp/digikam-master/core/libs/dmetadata/metaengine_p.cpp:352
#10 0x00007ffff67f77fd in Digikam::MetaEngine::Private::saveToFile (
---Type <return> to continue, or q <return> to quit---
    this=0x7fff20077a60, finfo=...)
    at /b/dktemp/digikam-master/core/libs/dmetadata/metaengine_p.cpp:192
#11 0x00007ffff67f0b59 in Digikam::MetaEngine::save (this=0x7fff15923650, 
    imageFilePath=...)
    at /b/dktemp/digikam-master/core/libs/dmetadata/metaengine.cpp:419
#12 0x00007ffff67f16a1 in Digikam::MetaEngine::applyChanges (
    this=this@entry=0x7fff15923650)
    at /b/dktemp/digikam-master/core/libs/dmetadata/metaengine.cpp:449
#13 0x00007ffff682d119 in Digikam::DMetadata::applyChanges (
    this=this@entry=0x7fff15923650)
    at /b/dktemp/digikam-master/core/libs/dmetadata/dmetadata.cpp:116
#14 0x00007ffff7779062 in Digikam::MetadataHub::writeToMetadata (
    this=this@entry=0x7fff159236e0, info=..., writeMode=writeMode@entry=..., 
    ignoreLazySync=ignoreLazySync@entry=false, settings=...)
    at /b/dktemp/digikam-master/core/libs/fileactionmanager/metadatahub.cpp:263
#15 0x00007ffff7783bdd in Digikam::FileActionMngrFileWorker::writeMetadata (
    this=0xba9e40, infos=..., flags=128)
    at /b/dktemp/digikam-master/core/libs/fileactionmanager/fileworkeriface.cpp:131
#16 0x00007ffff7786d9e in Digikam::FileWorkerInterface::qt_static_metacall (
    _o=0xba9e40, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)
    at /b/dktemp/digikam-master/build/core/libs/fileactionmanager/moc_fileworkeriface.cpp:103
---Type <return> to continue, or q <return> to quit---
#17 0x00000031e04b0e6a in QObject::event(QEvent*) ()
   from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#18 0x00007fffef3978fc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /tmp/.mount_9GSMRx/usr/lib/libQt5Widgets.so.5
#19 0x00007fffef39e808 in QApplication::notify(QObject*, QEvent*) ()
   from /tmp/.mount_9GSMRx/usr/lib/libQt5Widgets.so.5
#20 0x00000031e04880f0 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#21 0x00000031e048a03b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#22 0x00000031e04d5993 in ?? () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#23 0x00007fffecc58197 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fffecc583f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fffecc5849c in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00000031e04d5d87 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#27 0x00000031e04863da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#28 0x00007ffff68a795c in Digikam::WorkerObjectRunnable::run (
    this=0x7fffac04d3e0)
    at /b/dktemp/digikam-master/core/libs/threads/threadmanager.cpp:192
---Type <return> to continue, or q <return> to quit---
#29 0x00000031e02abf8d in ?? () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#30 0x00000031e02aef49 in ?? () from /tmp/.mount_9GSMRx/usr/lib/libQt5Core.so.5
#31 0x00007ffff5a316ba in start_thread (arg=0x7fff15924700)
    at pthread_create.c:333
#32 0x00007fffed89c82d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)
Comment 1 caulier.gilles 2017-03-09 12:03:34 UTC
It's clear. It crash in Exiv2, XMP parser class, and finaly in Adobe XMP SDK. Probably something from your image in XMP metadata is not well interpreted by Exiv2.

Reprot this problem as UPSTREAM to Exiv2 team with the image file for investiguation (20161218_172327.jpg)

Gilles Caulier
Comment 2 Andrius 2017-03-10 05:51:14 UTC
(In reply to caulier.gilles from comment #1)
> It's clear. It crash in Exiv2, XMP parser class, and finaly in Adobe XMP
> SDK. Probably something from your image in XMP metadata is not well
> interpreted by Exiv2.
> 
> Reprot this problem as UPSTREAM to Exiv2 team with the image file for
> investiguation (20161218_172327.jpg)
> 
> Gilles Caulier

Posted http://dev.exiv2.org/issues/1281
Comment 3 caulier.gilles 2021-05-04 04:04:36 UTC
Not reproducible with digiKam 7.3.0 and Exiv2 0.27.4