Summary: | AppImage crashes when started in terminal with 'debug' option | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Andrius <aegoreev> |
Component: | Bundle-AppImage | Assignee: | 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: | https://commits.kde.org/digikam-software-compilation/8d0da94bc711c374d491b85678484147af8edc5f | Version Fixed In: | 5.7.0 |
Sentry Crash Report: |
Description
Andrius
2017-08-23 13:21:00 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 Note : in gdb prompt, you must be able to continue to run digiKam with "c" command. Gilles Caulier (In reply to caulier.gilles from comment #1) > > Does it crash without "debug" argument on command line ? > > Gilles Caulier No it does not (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] Also this issue does not exist on OpenSUSE. What is the difference? 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 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 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. (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. 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). Well, Marcel recommend to catch C++ exception to handle all problems report by Exiv2. Of course we can disabling this behavior now. Gilles 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 |