Bug 383912

Summary: AppImage crashes when started in terminal with 'debug' option
Product: [Applications] digikam Reporter: Andrius <aegoreev>
Component: Bundle-AppImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, freisim93
Priority: NOR    
Version First Reported In: 5.7.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0
Sentry Crash Report:

Description Andrius 2017-08-23 13:21:00 UTC
Hello,

I tried appimage on Mint MATE and it works just fine but if I launch it with 'debug' option it crashes on startup.

See bugtraces below.
It looks like it the same ol' story with exiv2 and mp4 files but I thought the video file metadata support was turned off awhile ago...




[Thread 0x7ffef2fe5700 (LWP 9508) exited]
"applications.menu"  not found in  ("/etc/xdg/menus") 

kipi.library: Plugin  "SendImages"  (generic name:  "SendImages" ) is in the ignore list from host application
kipi.library: Plugin  "Print images"  (generic name:  "Print images" ) is in the ignore list from host application
[Switching to Thread 0x7ffefffff700 (LWP 9482)]

Thread 47 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007fffea65e8bd in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff582eb15 in Exiv2::ImageFactory::open (
    path="/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4", 
    useCurl=useCurl@entry=true) at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/image.cpp:848
#2  0x00007ffff671e9de in Digikam::MetaEngine::load (this=this@entry=0x7ffeffffe730, filePath=...)
    at /b/dktemp/digikam-master/core/libs/dmetadata/metaengine.cpp:281
#3  0x00007ffff6767486 in Digikam::DMetadata::load (this=this@entry=0x7ffeffffe730, filePath=...)
    at /b/dktemp/digikam-master/core/libs/dmetadata/dmetadata.cpp:96
#4  0x00007ffff6767502 in Digikam::DMetadata::DMetadata (this=0x7ffeffffe730, filePath=...)
    at /b/dktemp/digikam-master/core/libs/dmetadata/dmetadata.cpp:63
#5  0x00007ffff67b7a31 in Digikam::ThumbnailCreator::createThumbnail (this=this@entry=0xc29280, info=..., 
    detailRect=...) at /b/dktemp/digikam-master/core/libs/threadimageio/thumbnailcreator.cpp:469
#6  0x00007ffff67baa47 in Digikam::ThumbnailCreator::load (this=0xc29280, identifier=..., rect=..., 
    pregenerate=pregenerate@entry=true)
    at /b/dktemp/digikam-master/core/libs/threadimageio/thumbnailcreator.cpp:264
#7  0x00007ffff67bb450 in Digikam::ThumbnailCreator::pregenerate (this=<optimized out>, identifier=...)
    at /b/dktemp/digikam-master/core/libs/threadimageio/thumbnailcreator.cpp:197
#8  0x00007ffff67c5ca0 in Digikam::ThumbnailLoadingTask::execute (this=0x2980710)
    at /b/dktemp/digikam-master/core/libs/threadimageio/thumbnailtask.cpp:76
#9  0x00007ffff679e6d2 in Digikam::LoadSaveThread::run (this=0xcdd420)
    at /b/dktemp/digikam-master/core/libs/threadimageio/loadsavethread.cpp:133
#10 0x00007ffff67dc70e in Digikam::DynamicThread::DynamicThreadPriv::run (this=0xcfb230)
    at /b/dktemp/digikam-master/core/libs/threads/dynamicthread.cpp:183
---Type <return> to continue, or q <return> to quit---
#11 0x00007fffec9e08bd in ?? () from /tmp/.mount_a6gVcJ/usr/lib/libQt5Core.so.5
#12 0x00007fffec9e39ba in ?? () from /tmp/.mount_a6gVcJ/usr/lib/libQt5Core.so.5
#13 0x00007ffff54c56ba in start_thread (arg=0x7ffefffff700) at pthread_create.c:333
#14 0x00007fffe9def3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Comment 1 caulier.gilles 2017-08-23 13:26:05 UTC
yes, exactly.

1/ Exiv2 video support is turned off.
2/ The crash come from Exiv2.

But i think it's normal. Exiv2 will generate a C++ exception if video file try to be loaded. As video support is disable, and as with gdb, we catch all C++ exceptions, gdb stop the execution when mp4 is parsed by Exiv2.

So this behavior is normal for me. It's not a crash. It's a simple C++ exception throw by gdb.

Does it crash without "debug" argument on command line ?

Gilles Caulier
Comment 2 caulier.gilles 2017-08-23 13:26:58 UTC
Note : in gdb prompt, you must be able to continue to run digiKam with "c" command.

Gilles Caulier
Comment 3 Andrius 2017-08-23 13:32:01 UTC
(In reply to caulier.gilles from comment #1)
> 
> Does it crash without "debug" argument on command line ?
> 
> Gilles Caulier

No it does not
Comment 4 Andrius 2017-08-23 13:38:44 UTC
(In reply to caulier.gilles from comment #2)
> Note : in gdb prompt, you must be able to continue to run digiKam with "c"
> command.
> 
> Gilles Caulier

Looks like it throws an exception after loading every single plugin. I had to press 'c' after each one.





kipi.library: Plugin  "Print images"  (generic name:  "Print images" ) is in the ignore list from host application
kipi.library: Plugin  "SendImages"  (generic name:  "SendImages" ) is in the ignore list from host application
[Switching to Thread 0x7fff31deb700 (LWP 10704)]

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
[Thread 0x7ffef47e0700 (LWP 10738) exited]
[Thread 0x7ffef4fe1700 (LWP 10737) exited]
[Thread 0x7ffef57e2700 (LWP 10736) exited]
[Thread 0x7ffef5fe3700 (LWP 10735) exited]
[Thread 0x7ffef67e4700 (LWP 10734) exited]
[Thread 0x7ffef6fe5700 (LWP 10733) exited]
[Thread 0x7ffef77e6700 (LWP 10732) exited]
[Thread 0x7ffef7fe7700 (LWP 10731) exited]
[Thread 0x7ffef87e8700 (LWP 10730) exited]
[Thread 0x7ffef8fe9700 (LWP 10729) exited]
[Thread 0x7ffef97ea700 (LWP 10728) exited]
[Thread 0x7ffef9feb700 (LWP 10727) exited]
[Thread 0x7ffefa7ec700 (LWP 10726) exited]
[Thread 0x7ffefafed700 (LWP 10725) exited]
[Thread 0x7ffefb7ee700 (LWP 10724) exited]
[Thread 0x7ffefbfef700 (LWP 10723) exited]
[Thread 0x7ffefc7f0700 (LWP 10722) exited]
[Thread 0x7ffefcff1700 (LWP 10721) exited]
[Thread 0x7ffefd7f2700 (LWP 10720) exited]
[Thread 0x7ffefdff3700 (LWP 10719) exited]
[Thread 0x7ffefe7f4700 (LWP 10718) exited]
[Thread 0x7ffefeff5700 (LWP 10717) exited]
[Thread 0x7ffeff7f6700 (LWP 10716) exited]
[Thread 0x7ffeffff7700 (LWP 10715) exited]
[Thread 0x7fff007f8700 (LWP 10714) exited]
[Thread 0x7fff00ff9700 (LWP 10713) exited]
[Thread 0x7fff017fa700 (LWP 10712) exited]
[Thread 0x7fff01ffb700 (LWP 10711) exited]
[Thread 0x7fff027fc700 (LWP 10710) exited]
[Thread 0x7fff02ffd700 (LWP 10709) exited]
[Thread 0x7fff037fe700 (LWP 10708) exited]
[Thread 0x7fff03fff700 (LWP 10707) exited]
[Thread 0x7fff30de9700 (LWP 10706) exited]
[Thread 0x7fff315ea700 (LWP 10705) exited]
[Thread 0x7fff325ec700 (LWP 10703) exited]
[Thread 0x7fff32ded700 (LWP 10702) exited]
kipi.plugins: Plugin_GoogleServices Plugin Loaded
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4: The file contains data of an unknown image type
kipi.library: UI file : "/tmp/.mount_fXHGnx/usr/share/kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/tmp/.mount_fXHGnx/usr/share/kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786_x264.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786_x264.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786_x264.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786_x264.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786_x264.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174322_2786_x264.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790_x264.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790_x264.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790_x264.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790_x264.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790_x264.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174449_2790_x264.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890_x264.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890_x264.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890_x264.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890_x264.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890_x264.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_194700_2890_x264.mp4"

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785_x264.mp4: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2

Thread 37 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007fffea65e8bd in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) c
Continuing.
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785_x264.mp4: The file contains data of an unknown image type
digikam.dimg: "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785_x264.mp4"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785_x264.mp4" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MP4"
digikam.general: Cannot create thumbnail for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785_x264.mp4"
digikam.general: Thumbnail is null for  "/mnt/data/FamilyPictures/2017/2017-07/2017-07-01/20170701_174224_2785_x264.mp4"
digikam.geoiface: ----
digikam.geoiface: "setting backend marble"
[New Thread 0x7fff03fff700 (LWP 10769)]
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
[New Thread 0x7fff00ff9700 (LWP 10770)]
[New Thread 0x7ffef5fe3700 (LWP 10771)]
[New Thread 0x7ffef8fe9700 (LWP 10772)]
[New Thread 0x7fff32bae700 (LWP 10773)]
digikam.facesengine: Face database ready for use
[New Thread 0x7fff315ea700 (LWP 10774)]
[New Thread 0x7fff30de9700 (LWP 10775)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fff037fe700 (LWP 10776)]
[New Thread 0x7fff02ffd700 (LWP 10777)]
[New Thread 0x7fff027fc700 (LWP 10778)]
digikam.facesengine: Face database ready for use
[New Thread 0x7fff01ffb700 (LWP 10779)]
[New Thread 0x7fff017fa700 (LWP 10780)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
digikam.geoiface: "setting backend marble"
[New Thread 0x7fff007f8700 (LWP 10781)]
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.general: Using  4  CPU core to run threads
digikam.general: scan mode: ScanDeferredFiles
[New Thread 0x7ffeffff7700 (LWP 10782)]
digikam.general: Action Thread run  1  new jobs
[New Thread 0x7ffeff7f6700 (LWP 10783)]
digikam.general: total scan value :  35648
digikam.dbengine: Database is locked. Waited 0
digikam.dbengine: Database is locked. Waited 250
digikam.dbengine: Database is locked. Waited 500
digikam.dbengine: Database is locked. Waited 750
digikam.dbengine: Database is locked. Waited 1000
digikam.dbengine: Database is locked. Waited 1250
digikam.database: items to tag ()
digikam.database: Complete scan took: 2406 msecs.
digikam.general: Adjusting environment variables for AppImage bundle
digikam.general: Event is dispatched to desktop notifier through DBUS
digikam.general: Nothing to do. Databases are clean.
digikam.general: Adjusting environment variables for AppImage bundle
digikam.general: Event is dispatched to desktop notifier through DBUS
digikam.general: One job is done
digikam.general: Cancel Main Thread
digikam.general: Cancel Main Thread
[Thread 0x7ffeffff7700 (LWP 10782) exited]
[Thread 0x7ffeff7f6700 (LWP 10783) exited]
[Thread 0x7fff31deb700 (LWP 10704) exited]
Comment 5 Andrius 2017-08-23 13:39:34 UTC
Also this issue does not exist on OpenSUSE. What is the difference?
Comment 6 caulier.gilles 2017-08-23 14:17:18 UTC
the wrapper script included in AppImage turn on C++ exception catching :

https://cgit.kde.org/digikam-software-compilation.git/tree/project/bundles/appimage/data/AppRun#n55

Gilles Caulier
Comment 7 Andrius 2017-08-24 15:48:10 UTC
Updated libstdc++6 to the latest version but it did not change anything



apt-cache policy libstdc++6
libstdc++6:
  Installed: 7.2.0-1ubuntu1~16.04
  Candidate: 7.2.0-1ubuntu1~16.04
  Version table:
 *** 7.2.0-1ubuntu1~16.04 500
        500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.0-6ubuntu1~16.04.4 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     5.3.1-14ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Comment 8 Simon 2017-08-24 15:57:11 UTC
There is no problem here, no amount of updating will stop it. As Gilles wrote in comment #6 the debug mode of the AppImage enables catching of exceptions being thrown, even if they are handled. This means the execution is paused (not aborted) and you get to the gdb command prompt. You can resume by entering "c" and pressing Enter. If you don't want execution to be paused on thrown exceptions, you can enter

info breakpoints
delete *num*

where *num* is the number of the line containing exception throw.
Comment 9 Andrius 2017-08-24 16:28:44 UTC
(In reply to Simon from comment #8)
> There is no problem here, no amount of updating will stop it. As Gilles
> wrote in comment #6 the debug mode of the AppImage enables catching of
> exceptions being thrown, even if they are handled. This means the execution
> is paused (not aborted) and you get to the gdb command prompt. You can
> resume by entering "c" and pressing Enter. If you don't want execution to be
> paused on thrown exceptions, you can enter
> 
> info breakpoints
> delete *num*
> 
> where *num* is the number of the line containing exception throw.

Simon,
Thanks for your reply.
I just don't get why it behaves differently on OpenSUSE where I don't have to press see after trying to generate a thumbnail for every single mp4 file. Basically I cannot debug digiKam on Linux Mint bacause I have mp4 video files in each folder.
Comment 10 Simon 2017-08-24 16:42:49 UTC
On OpenSUSE you use the AppImage as well?

And you can debug without having to press a button for every mp4 file, just use the workaround I gave in comment #8.

I am however curious about the reason why "catch throw" is activated automatically in AppImage (@Gilles).
Comment 11 caulier.gilles 2017-08-24 18:56:29 UTC
Well, Marcel recommend to catch C++ exception to handle all problems report by Exiv2.

Of course we can disabling this behavior now.

Gilles
Comment 12 caulier.gilles 2017-08-27 12:28:05 UTC
Git commit 8d0da94bc711c374d491b85678484147af8edc5f by Gilles Caulier.
Committed on 27/08/2017 at 12:27.
Pushed by cgilles into branch 'master'.

remove C++ exceptions catch which are not suitable with Exiv2
FIXED-IN:5.7.0

M  +2    -2    project/bundles/appimage/data/AppRun

https://commits.kde.org/digikam-software-compilation/8d0da94bc711c374d491b85678484147af8edc5f