Bug 378855 - Crashes on startup
Summary: Crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: 5.5.0
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-17 02:24 UTC by quincy
Modified: 2017-05-12 14:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description quincy 2017-04-17 02:24:23 UTC
I was attempting to do a search when Digikam crashed.  Now it crashes on startup consistently.

Using the AppImage distribution of Digikam 5.5.0 on Linux Mint 18.1.

Here is the entire output when launching from the command line.

$ opt/digikam-5.5.0-01-x86-64.appimage 
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/home/quincy/Pictures/digikam4.db"
   DB Thumbs Name:           "/home/quincy/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/home/quincy/Pictures/recognition.db"
   Connect Options:          ""
   Host Name:                ""
   Host port:                -1
   Internal Server:          false
   Internal Server Path:     ""
   Internal Server Serv Cmd: ""
   Internal Server Init Cmd: ""
   Username:                 ""
   Password:                 ""

digikam.dbengine: Loading SQL code from config file "/tmp/.mount_OH5JeZ/usr/share/digikam/database/dbconfig.xml"
digikam.dbengine: Checking XML version ID => expected:  3  found:  3
digikam.coredb: Core database: running schema update
digikam.coredb: Core database: have a structure version  8
digikam.coredb: Core database: makeUpdates  8  to  8
digikam.database: Creating new Location  "/quincy/Pictures"  uuid  "volumeid:?uuid=65b2454a-03ca-43ce-9024-d288bfa670a2"
digikam.database: location for  "/home/quincy/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8254914560
digikam.general: Allowing a cache size of 200 MB
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: Thumbs database: have a structure version  "3"
digikam.general: Thumbnails database ready for use
digikam.general: Switch to widget style:  "Fusion"
digikam.dimg: ("/usr/share/color/icc", "/home/quincy/.local/share/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
digikam.general: Camera XML data:  "/home/quincy/.local/share/digikam/cameras.xml"
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: Face database: have a structure version  "2"
digikam.facesengine: Face database ready for use
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
digikam.facesengine: Face database ready for use
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
digikam.geoiface: "setting backend marble"
QtAV 1.11.0(Mar  9 2017, 11:27:18)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin, Shanghai, ChinaCopyright (C) 2012-2016 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
capi::version: 0.6.0
digikam.general: AudioOutput backends: ("OpenAL", "null")
digikam.general: Stacked View Mode :  0
digikam.geoiface: "setting backend marble"
digikam.general: "browse_album"
digikam.general: "browse_tag"
digikam.general: "browse_labels"
digikam.general: "browse_date"
digikam.general: "browse_timeline"
digikam.general: "browse_search"
digikam.general: "browse_fuzzysearch"
digikam.general: "browse_gpssearch"
digikam.general: "browse_people"
digikam.widgets: Paths to color scheme :  ("/tmp/.mount_OH5JeZ/usr/share/digikam/colorschemes")
digikam.widgets: ""  ::  ""
digikam.widgets: "High Key"  ::  "/tmp/.mount_OH5JeZ/usr/share/digikam/colorschemes/highkey.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/tmp/.mount_OH5JeZ/usr/share/lensfun"
digikam.dimg: Load lens database file:  "6x6.xml"
digikam.dimg: Load lens database file:  "actioncams.xml"
digikam.dimg: Load lens database file:  "compact-canon.xml"
digikam.dimg: Load lens database file:  "compact-casio.xml"
digikam.dimg: Load lens database file:  "compact-fujifilm.xml"
digikam.dimg: Load lens database file:  "compact-kodak.xml"
digikam.dimg: Load lens database file:  "compact-konica-minolta.xml"
digikam.dimg: Load lens database file:  "compact-leica.xml"
digikam.dimg: Load lens database file:  "compact-nikon.xml"
digikam.dimg: Load lens database file:  "compact-olympus.xml"
digikam.dimg: Load lens database file:  "compact-panasonic.xml"
digikam.dimg: Load lens database file:  "compact-pentax.xml"
digikam.dimg: Load lens database file:  "compact-ricoh.xml"
digikam.dimg: Load lens database file:  "compact-samsung.xml"
digikam.dimg: Load lens database file:  "compact-sigma.xml"
digikam.dimg: Load lens database file:  "compact-sony.xml"
digikam.dimg: Load lens database file:  "contax.xml"
digikam.dimg: Load lens database file:  "generic.xml"
digikam.dimg: Load lens database file:  "mil-canon.xml"
digikam.dimg: Load lens database file:  "mil-fujifilm.xml"
digikam.dimg: Load lens database file:  "mil-nikon.xml"
digikam.dimg: Load lens database file:  "mil-olympus.xml"
digikam.dimg: Load lens database file:  "mil-panasonic.xml"
digikam.dimg: Load lens database file:  "mil-pentax.xml"
digikam.dimg: Load lens database file:  "mil-samsung.xml"
digikam.dimg: Load lens database file:  "mil-samyang.xml"
digikam.dimg: Load lens database file:  "mil-sigma.xml"
digikam.dimg: Load lens database file:  "mil-sony.xml"
digikam.dimg: Load lens database file:  "mil-tamron.xml"
digikam.dimg: Load lens database file:  "mil-zeiss.xml"
digikam.dimg: Load lens database file:  "misc.xml"
digikam.dimg: Load lens database file:  "rf-leica.xml"
digikam.dimg: Load lens database file:  "slr-canon.xml"
digikam.dimg: Load lens database file:  "slr-hasselblad.xml"
digikam.dimg: Load lens database file:  "slr-konica-minolta.xml"
digikam.dimg: Load lens database file:  "slr-leica.xml"
digikam.dimg: Load lens database file:  "slr-nikon.xml"
digikam.dimg: Load lens database file:  "slr-olympus.xml"
digikam.dimg: Load lens database file:  "slr-panasonic.xml"
digikam.dimg: Load lens database file:  "slr-pentax.xml"
digikam.dimg: Load lens database file:  "slr-ricoh.xml"
digikam.dimg: Load lens database file:  "slr-samsung.xml"
digikam.dimg: Load lens database file:  "slr-samyang.xml"
digikam.dimg: Load lens database file:  "slr-schneider.xml"
digikam.dimg: Load lens database file:  "slr-sigma.xml"
digikam.dimg: Load lens database file:  "slr-soligor.xml"
digikam.dimg: Load lens database file:  "slr-sony.xml"
digikam.dimg: Load lens database file:  "slr-tamron.xml"
digikam.dimg: Load lens database file:  "slr-tokina.xml"
digikam.dimg: Load lens database file:  "slr-ussr.xml"
digikam.dimg: Load lens database file:  "slr-vivitar.xml"
digikam.dimg: Load lens database file:  "slr-zeiss.xml"
digikam.dimg: variant:  QVariant(Digikam::LensFunIface::DevicePtr, )
digikam.dimg: dev:  AEE  ::  AEE DV  ::  6
digikam.dimg: Search for camera  "" - ""  ==> false
digikam.dimg: Search for lens  ""  ==> false
digikam.dimg: updating data
digikam.dimg: updating data
digikam.general: Using  8  CPU core to run threads
digikam.general: new search text settings:  "" : hasResult =  false , validRows =  0
QFSFileEngine::open: No file name specified
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Added root album called:  "Pictures"
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Stacked View Mode :  2
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Stacked View Mode :  0
digikam.general: Action Thread run  1  new jobs
digikam.general: changing to SAlbum  0x2055b70
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
Recreating ksycoca file ("/home/quincy/.cache/ksycoca5_en_RRwhxxNG7RYRc45c+9ikt773Ybc=", version 303)
Menu "applications.menu" not found.
"applications.menu"  not found in  ("/home/quincy/.config/menus", "/etc/xdg/menus") 

Saving
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/tmp/.mount_OH5JeZ/usr/share/kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.library: UI file : "/tmp/.mount_OH5JeZ/usr/share/kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/tmp/.mount_OH5JeZ/usr/share/kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
digikam.database: Relation Interval requires a list of two values
ASSERT: "!isEmpty()" in file ././/include/QtCore/qlist.h, line 344
/tmp/.mount_OH5JeZ/AppRun: line 73:  3119 Aborted                 digikam.wrapper $@
Comment 1 caulier.gilles 2017-04-17 02:55:24 UTC
1/ try to use 5.6.0 pre-release AppImage :

https://drive.google.com/drive/my-drive

2/ run AppImage with "debug " argument to see where exception come in source code.

Gilles Caulier
Comment 2 quincy 2017-04-17 05:24:00 UTC
Downloading 5.6 prerelease now.

Ran 5.5 under debug mode.  Output below.

$ digikam-5.5.0-01-x86-64.appimage debug
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options
Starting digiKam into GDB...
Use 'bt' command on debugger prompt to get a crash backtrace.
Use 'q' command to quit debugger session.
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from digikam...done.
Catchpoint 1 (throw)
Starting program: /tmp/.mount_osGz9g/usr/bin/digikam 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe791e700 (LWP 15977)]
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
[New Thread 0x7fffe6035700 (LWP 15978)]
[New Thread 0x7fffe5834700 (LWP 15979)]
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/home/quincy/Pictures/digikam4.db"
   DB Thumbs Name:           "/home/quincy/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/home/quincy/Pictures/recognition.db"
   Connect Options:          ""
   Host Name:                ""
   Host port:                -1
   Internal Server:          false
   Internal Server Path:     ""
   Internal Server Serv Cmd: ""
   Internal Server Init Cmd: ""
   Username:                 ""
   Password:                 ""

[New Thread 0x7fffe5033700 (LWP 15980)]
[Thread 0x7fffe5033700 (LWP 15980) exited]
digikam.dbengine: Loading SQL code from config file "/tmp/.mount_osGz9g/usr/share/digikam/database/dbconfig.xml"
digikam.dbengine: Checking XML version ID => expected:  3  found:  3
digikam.coredb: Core database: running schema update
digikam.coredb: Core database: have a structure version  8
digikam.coredb: Core database: makeUpdates  8  to  8
digikam.database: Creating new Location  "/quincy/Pictures"  uuid  "volumeid:?uuid=65b2454a-03ca-43ce-9024-d288bfa670a2"
digikam.database: location for  "/home/quincy/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8254914560
digikam.general: Allowing a cache size of 200 MB
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: Thumbs database: have a structure version  "3"
digikam.general: Thumbnails database ready for use
digikam.general: Switch to widget style:  "Fusion"
digikam.dimg: ("/usr/share/color/icc", "/home/quincy/.local/share/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
[New Thread 0x7fffe5033700 (LWP 15981)]
digikam.general: Camera XML data:  "/home/quincy/.local/share/digikam/cameras.xml"
[New Thread 0x7fffd5f38700 (LWP 15982)]
[New Thread 0x7fffd5737700 (LWP 15983)]
[New Thread 0x7fffd4f36700 (LWP 15984)]
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: Face database: have a structure version  "2"
digikam.facesengine: Face database ready for use
[New Thread 0x7fffc3fff700 (LWP 15985)]
[New Thread 0x7fffc37fe700 (LWP 15986)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fffc2ffd700 (LWP 15987)]
[New Thread 0x7fffc27fc700 (LWP 15988)]
[New Thread 0x7fffc1ffb700 (LWP 15989)]
[New Thread 0x7fffc17fa700 (LWP 15990)]
[New Thread 0x7fffc0ff9700 (LWP 15991)]
digikam.facesengine: Face database ready for use
[New Thread 0x7fffa3fff700 (LWP 15992)]
[New Thread 0x7fffa37fe700 (LWP 15993)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fffa2ffd700 (LWP 15994)]
[New Thread 0x7fffa27fc700 (LWP 15995)]
[New Thread 0x7fffa1ffb700 (LWP 15996)]
[New Thread 0x7fffa17fa700 (LWP 15997)]
digikam.geoiface: "setting backend marble"
QtAV 1.11.0(Mar  9 2017, 11:27:18)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin, Shanghai, ChinaCopyright (C) 2012-2016 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
capi::version: 0.6.0
[New Thread 0x7fffa0ff9700 (LWP 15998)]
[New Thread 0x7fffa0ff9700 (LWP 15999)]
[Thread 0x7fffa0ff9700 (LWP 15998) exited]
[Thread 0x7fffa0ff9700 (LWP 15999) exited]
[New Thread 0x7fffa0ff9700 (LWP 16000)]
[New Thread 0x7fffd44ec700 (LWP 16001)]
digikam.general: AudioOutput backends: ("OpenAL", "null")
digikam.general: Stacked View Mode :  0
[New Thread 0x7fff53ffd700 (LWP 16002)]
[New Thread 0x7fff537fc700 (LWP 16003)]
digikam.geoiface: "setting backend marble"
[New Thread 0x7fff52ffb700 (LWP 16004)]
digikam.general: "browse_album"
digikam.general: "browse_tag"
digikam.general: "browse_labels"
digikam.general: "browse_date"
digikam.general: "browse_timeline"
digikam.general: "browse_search"
digikam.general: "browse_fuzzysearch"
digikam.general: "browse_gpssearch"
digikam.general: "browse_people"
[New Thread 0x7fff527fa700 (LWP 16005)]
[New Thread 0x7fff51ff9700 (LWP 16006)]
[New Thread 0x7fff517f8700 (LWP 16007)]
[New Thread 0x7fff50ff7700 (LWP 16008)]
[New Thread 0x7fff3fffe700 (LWP 16009)]
[New Thread 0x7fff3f7fd700 (LWP 16010)]
[New Thread 0x7fff3effc700 (LWP 16011)]
[New Thread 0x7fff3e7fb700 (LWP 16012)]
digikam.widgets: Paths to color scheme :  ("/tmp/.mount_osGz9g/usr/share/digikam/colorschemes")
digikam.widgets: ""  ::  ""
digikam.widgets: "High Key"  ::  "/tmp/.mount_osGz9g/usr/share/digikam/colorschemes/highkey.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/tmp/.mount_osGz9g/usr/share/lensfun"
digikam.dimg: Load lens database file:  "6x6.xml"
digikam.dimg: Load lens database file:  "actioncams.xml"
digikam.dimg: Load lens database file:  "compact-canon.xml"
digikam.dimg: Load lens database file:  "compact-casio.xml"
digikam.dimg: Load lens database file:  "compact-fujifilm.xml"
digikam.dimg: Load lens database file:  "compact-kodak.xml"
digikam.dimg: Load lens database file:  "compact-konica-minolta.xml"
digikam.dimg: Load lens database file:  "compact-leica.xml"
digikam.dimg: Load lens database file:  "compact-nikon.xml"
digikam.dimg: Load lens database file:  "compact-olympus.xml"
digikam.dimg: Load lens database file:  "compact-panasonic.xml"
digikam.dimg: Load lens database file:  "compact-pentax.xml"
digikam.dimg: Load lens database file:  "compact-ricoh.xml"
digikam.dimg: Load lens database file:  "compact-samsung.xml"
digikam.dimg: Load lens database file:  "compact-sigma.xml"
digikam.dimg: Load lens database file:  "compact-sony.xml"
digikam.dimg: Load lens database file:  "contax.xml"
digikam.dimg: Load lens database file:  "generic.xml"
digikam.dimg: Load lens database file:  "mil-canon.xml"
digikam.dimg: Load lens database file:  "mil-fujifilm.xml"
digikam.dimg: Load lens database file:  "mil-nikon.xml"
digikam.dimg: Load lens database file:  "mil-olympus.xml"
digikam.dimg: Load lens database file:  "mil-panasonic.xml"
digikam.dimg: Load lens database file:  "mil-pentax.xml"
digikam.dimg: Load lens database file:  "mil-samsung.xml"
digikam.dimg: Load lens database file:  "mil-samyang.xml"
digikam.dimg: Load lens database file:  "mil-sigma.xml"
digikam.dimg: Load lens database file:  "mil-sony.xml"
digikam.dimg: Load lens database file:  "mil-tamron.xml"
digikam.dimg: Load lens database file:  "mil-zeiss.xml"
digikam.dimg: Load lens database file:  "misc.xml"
digikam.dimg: Load lens database file:  "rf-leica.xml"
digikam.dimg: Load lens database file:  "slr-canon.xml"
digikam.dimg: Load lens database file:  "slr-hasselblad.xml"
digikam.dimg: Load lens database file:  "slr-konica-minolta.xml"
digikam.dimg: Load lens database file:  "slr-leica.xml"
digikam.dimg: Load lens database file:  "slr-nikon.xml"
digikam.dimg: Load lens database file:  "slr-olympus.xml"
digikam.dimg: Load lens database file:  "slr-panasonic.xml"
digikam.dimg: Load lens database file:  "slr-pentax.xml"
digikam.dimg: Load lens database file:  "slr-ricoh.xml"
digikam.dimg: Load lens database file:  "slr-samsung.xml"
digikam.dimg: Load lens database file:  "slr-samyang.xml"
digikam.dimg: Load lens database file:  "slr-schneider.xml"
digikam.dimg: Load lens database file:  "slr-sigma.xml"
digikam.dimg: Load lens database file:  "slr-soligor.xml"
digikam.dimg: Load lens database file:  "slr-sony.xml"
digikam.dimg: Load lens database file:  "slr-tamron.xml"
digikam.dimg: Load lens database file:  "slr-tokina.xml"
digikam.dimg: Load lens database file:  "slr-ussr.xml"
digikam.dimg: Load lens database file:  "slr-vivitar.xml"
digikam.dimg: Load lens database file:  "slr-zeiss.xml"
digikam.dimg: variant:  QVariant(Digikam::LensFunIface::DevicePtr, )
digikam.dimg: dev:  AEE  ::  AEE DV  ::  6
digikam.dimg: Search for camera  "" - ""  ==> false
digikam.dimg: Search for lens  ""  ==> false
digikam.dimg: updating data
[New Thread 0x7fff3d5ea700 (LWP 16013)]
[New Thread 0x7fff3cde9700 (LWP 16014)]
[New Thread 0x7fff07fff700 (LWP 16015)]
[New Thread 0x7fff077fe700 (LWP 16016)]
[New Thread 0x7fff06ffd700 (LWP 16017)]
[New Thread 0x7fff067fc700 (LWP 16018)]
[New Thread 0x7fff05ffb700 (LWP 16019)]
[New Thread 0x7fff057fa700 (LWP 16020)]
[New Thread 0x7fff04ff9700 (LWP 16021)]
[New Thread 0x7ffee7fff700 (LWP 16022)]
[New Thread 0x7ffee77fe700 (LWP 16023)]
[New Thread 0x7ffee6ffd700 (LWP 16024)]
[New Thread 0x7ffee67fc700 (LWP 16025)]
[New Thread 0x7ffee5ffb700 (LWP 16026)]
[New Thread 0x7ffee57fa700 (LWP 16027)]
[New Thread 0x7ffee4ff9700 (LWP 16028)]
[New Thread 0x7ffec7fff700 (LWP 16029)]
[New Thread 0x7ffec77fe700 (LWP 16030)]
[New Thread 0x7ffec6ffd700 (LWP 16031)]
[New Thread 0x7ffec67fc700 (LWP 16032)]
[New Thread 0x7ffec5ffb700 (LWP 16033)]
[New Thread 0x7ffec57fa700 (LWP 16034)]
[New Thread 0x7ffec4ff9700 (LWP 16035)]
[New Thread 0x7ffe9ffff700 (LWP 16036)]
[New Thread 0x7ffe9f7fe700 (LWP 16037)]
[New Thread 0x7ffe9effd700 (LWP 16038)]
[New Thread 0x7ffe9e7fc700 (LWP 16039)]
[New Thread 0x7ffe9dffb700 (LWP 16040)]
[New Thread 0x7ffe9d7fa700 (LWP 16041)]
[New Thread 0x7ffe9cff9700 (LWP 16042)]
[New Thread 0x7ffe87fff700 (LWP 16043)]
[New Thread 0x7ffe877fe700 (LWP 16044)]
[New Thread 0x7ffe86ffd700 (LWP 16045)]
[New Thread 0x7ffe867fc700 (LWP 16046)]
[New Thread 0x7ffe85ffb700 (LWP 16047)]
[New Thread 0x7ffe857fa700 (LWP 16048)]
[New Thread 0x7ffe84ff9700 (LWP 16049)]
digikam.dimg: updating data
[New Thread 0x7ffe7bfff700 (LWP 16050)]
[New Thread 0x7ffe7b7fe700 (LWP 16051)]
[New Thread 0x7ffe7affd700 (LWP 16052)]
[New Thread 0x7ffe7a7fc700 (LWP 16053)]
[New Thread 0x7ffe79ffb700 (LWP 16054)]
digikam.general: Using  8  CPU core to run threads
digikam.general: new search text settings:  "" : hasResult =  false , validRows =  0
QFSFileEngine::open: No file name specified
digikam.geoiface: ----
digikam.general: Added root album called:  "Pictures"
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe797fa700 (LWP 16055)]
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe78ff9700 (LWP 16056)]
digikam.general: Stacked View Mode :  2
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe78ff9700 (LWP 16057)]
[Thread 0x7ffe78ff9700 (LWP 16056) exited]
digikam.general: Stacked View Mode :  0
digikam.general: Action Thread run  1  new jobs
digikam.general: changing to SAlbum  0x1f27e50
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
Recreating ksycoca file ("/home/quincy/.cache/ksycoca5_en_6qrGmGKhrNCKvUXjHVdtRqvT5Bc=", version 303)
Menu "applications.menu" not found.
"applications.menu"  not found in  ("/home/quincy/.config/menus", "/etc/xdg/menus") 

Saving
digikam.database: Relation Interval requires a list of two values
ASSERT: "!isEmpty()" in file ././/include/QtCore/qlist.h, line 344

Thread 77 "Thread (pooled)" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffe7affd700 (LWP 16052)]
0x00007fffed7cc428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) q
A debugging session is active.

	Inferior 1 [process 15973] will be killed.

Quit anyway? (y or n) y
$
Comment 3 quincy 2017-04-17 05:33:31 UTC
Ran with 5.6 and it also crashes on startup.

$ ./digikam-5.6.0-01-x86-64.appimage debug
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options
Starting digiKam into GDB...
Use 'bt' command on debugger prompt to get a crash backtrace.
Use 'q' command to quit debugger session.
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from digikam...done.
Catchpoint 1 (throw)
Starting program: /tmp/.mount_1tqIev/usr/bin/digikam 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe89ed700 (LWP 17137)]
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
[New Thread 0x7fffe2f82700 (LWP 17138)]
[New Thread 0x7fffe2781700 (LWP 17139)]
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/home/quincy/Pictures/digikam4.db"
   DB Thumbs Name:           "/home/quincy/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/home/quincy/Pictures/recognition.db"
   Connect Options:          ""
   Host Name:                ""
   Host port:                -1
   Internal Server:          false
   Internal Server Path:     ""
   Internal Server Serv Cmd: ""
   Internal Server Init Cmd: ""
   Username:                 ""
   Password:                 ""

[New Thread 0x7fffe1f80700 (LWP 17140)]
[Thread 0x7fffe1f80700 (LWP 17140) exited]
digikam.dbengine: Loading SQL code from config file "/tmp/.mount_1tqIev/usr/share/digikam/database/dbconfig.xml"
digikam.dbengine: Checking XML version ID => expected:  3  found:  3
digikam.coredb: Core database: running schema update
digikam.coredb: Core database: have a structure version  8
digikam.coredb: Core database: makeUpdates  8  to  8
digikam.database: Creating new Location  "/quincy/Pictures"  uuid  "volumeid:?uuid=65b2454a-03ca-43ce-9024-d288bfa670a2"
digikam.database: location for  "/home/quincy/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8254914560
digikam.general: Allowing a cache size of 200 MB
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: Thumbs database: have a structure version  "3"
digikam.general: Thumbnails database ready for use
digikam.general: Switch to widget style:  "Fusion"
digikam.dimg: ("/usr/share/color/icc", "/home/quincy/.local/share/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
[New Thread 0x7fffe1f80700 (LWP 17144)]
digikam.general: Camera XML data:  "/home/quincy/.local/share/digikam/cameras.xml"
[New Thread 0x7fffd2f11700 (LWP 17145)]
[New Thread 0x7fffd2710700 (LWP 17146)]
[New Thread 0x7fffd1f0f700 (LWP 17147)]
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: Face database: have a structure version  "2"
digikam.facesengine: Face database ready for use
[New Thread 0x7fffd170e700 (LWP 17148)]
[New Thread 0x7fffd0f0d700 (LWP 17149)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fffbbfff700 (LWP 17150)]
[New Thread 0x7fffbb7fe700 (LWP 17151)]
[New Thread 0x7fffbaffd700 (LWP 17152)]
[New Thread 0x7fffba7fc700 (LWP 17153)]
[New Thread 0x7fffb9ffb700 (LWP 17154)]
digikam.facesengine: Face database ready for use
[New Thread 0x7fffb97fa700 (LWP 17155)]
[New Thread 0x7fffb8ff9700 (LWP 17156)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fff9bfff700 (LWP 17157)]
[New Thread 0x7fff5b7fc700 (LWP 17158)]
[New Thread 0x7fff5affb700 (LWP 17159)]
[New Thread 0x7fff5a7fa700 (LWP 17160)]
digikam.geoiface: "setting backend marble"
QtAV 1.11.0(Apr 11 2017, 04:24:16)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin, Shanghai, ChinaCopyright (C) 2012-2016 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
capi::version: 0.6.0
[New Thread 0x7fff59ff9700 (LWP 17161)]
[Thread 0x7fff59ff9700 (LWP 17161) exited]
[New Thread 0x7fff59ff9700 (LWP 17162)]
[Thread 0x7fff59ff9700 (LWP 17162) exited]
[New Thread 0x7fff59ff9700 (LWP 17163)]
[New Thread 0x7fffd055e700 (LWP 17164)]
digikam.general: AudioOutput backends: ("OpenAL", "null")
digikam.general: Stacked View Mode :  0
[New Thread 0x7fff597f8700 (LWP 17165)]
[New Thread 0x7fff58ff7700 (LWP 17166)]
digikam.geoiface: "setting backend marble"
[New Thread 0x7fff3fffe700 (LWP 17167)]
digikam.general: "browse_album"
digikam.general: "browse_tag"
digikam.general: "browse_labels"
digikam.general: "browse_date"
digikam.general: "browse_timeline"
digikam.general: "browse_search"
digikam.general: "browse_fuzzysearch"
digikam.general: "browse_gpssearch"
digikam.general: "browse_people"
[New Thread 0x7fff3f7fd700 (LWP 17168)]
[New Thread 0x7fff3effc700 (LWP 17169)]
[New Thread 0x7fff3e7fb700 (LWP 17170)]
[New Thread 0x7fff3dffa700 (LWP 17171)]
[New Thread 0x7fff3d7f9700 (LWP 17172)]
[New Thread 0x7fff3cff8700 (LWP 17173)]
[New Thread 0x7fff1ffff700 (LWP 17174)]
[New Thread 0x7fff1f7fe700 (LWP 17175)]
digikam.widgets: Paths to color scheme :  ("/tmp/.mount_1tqIev/usr/share/digikam/colorschemes")
digikam.widgets: ""  ::  ""
digikam.widgets: "High Key"  ::  "/tmp/.mount_1tqIev/usr/share/digikam/colorschemes/highkey.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/tmp/.mount_1tqIev/usr/share/lensfun"
digikam.dimg: Load lens database file:  "6x6.xml"
digikam.dimg: Load lens database file:  "actioncams.xml"
digikam.dimg: Load lens database file:  "compact-canon.xml"
digikam.dimg: Load lens database file:  "compact-casio.xml"
digikam.dimg: Load lens database file:  "compact-fujifilm.xml"
digikam.dimg: Load lens database file:  "compact-kodak.xml"
digikam.dimg: Load lens database file:  "compact-konica-minolta.xml"
digikam.dimg: Load lens database file:  "compact-leica.xml"
digikam.dimg: Load lens database file:  "compact-nikon.xml"
digikam.dimg: Load lens database file:  "compact-olympus.xml"
digikam.dimg: Load lens database file:  "compact-panasonic.xml"
digikam.dimg: Load lens database file:  "compact-pentax.xml"
digikam.dimg: Load lens database file:  "compact-ricoh.xml"
digikam.dimg: Load lens database file:  "compact-samsung.xml"
digikam.dimg: Load lens database file:  "compact-sigma.xml"
digikam.dimg: Load lens database file:  "compact-sony.xml"
digikam.dimg: Load lens database file:  "contax.xml"
digikam.dimg: Load lens database file:  "generic.xml"
digikam.dimg: Load lens database file:  "mil-canon.xml"
digikam.dimg: Load lens database file:  "mil-fujifilm.xml"
digikam.dimg: Load lens database file:  "mil-nikon.xml"
digikam.dimg: Load lens database file:  "mil-olympus.xml"
digikam.dimg: Load lens database file:  "mil-panasonic.xml"
digikam.dimg: Load lens database file:  "mil-pentax.xml"
digikam.dimg: Load lens database file:  "mil-samsung.xml"
digikam.dimg: Load lens database file:  "mil-samyang.xml"
digikam.dimg: Load lens database file:  "mil-sigma.xml"
digikam.dimg: Load lens database file:  "mil-sony.xml"
digikam.dimg: Load lens database file:  "mil-tamron.xml"
digikam.dimg: Load lens database file:  "mil-zeiss.xml"
digikam.dimg: Load lens database file:  "misc.xml"
digikam.dimg: Load lens database file:  "rf-leica.xml"
digikam.dimg: Load lens database file:  "slr-canon.xml"
digikam.dimg: Load lens database file:  "slr-hasselblad.xml"
digikam.dimg: Load lens database file:  "slr-konica-minolta.xml"
digikam.dimg: Load lens database file:  "slr-leica.xml"
digikam.dimg: Load lens database file:  "slr-nikon.xml"
digikam.dimg: Load lens database file:  "slr-olympus.xml"
digikam.dimg: Load lens database file:  "slr-panasonic.xml"
digikam.dimg: Load lens database file:  "slr-pentax.xml"
digikam.dimg: Load lens database file:  "slr-ricoh.xml"
digikam.dimg: Load lens database file:  "slr-samsung.xml"
digikam.dimg: Load lens database file:  "slr-samyang.xml"
digikam.dimg: Load lens database file:  "slr-schneider.xml"
digikam.dimg: Load lens database file:  "slr-sigma.xml"
digikam.dimg: Load lens database file:  "slr-soligor.xml"
digikam.dimg: Load lens database file:  "slr-sony.xml"
digikam.dimg: Load lens database file:  "slr-tamron.xml"
digikam.dimg: Load lens database file:  "slr-tokina.xml"
digikam.dimg: Load lens database file:  "slr-ussr.xml"
digikam.dimg: Load lens database file:  "slr-vivitar.xml"
digikam.dimg: Load lens database file:  "slr-zeiss.xml"
digikam.dimg: variant:  QVariant(Digikam::LensFunIface::DevicePtr, )
digikam.dimg: dev:  AEE  ::  AEE DV  ::  6
digikam.dimg: Search for camera  "" - ""  ==> false
digikam.dimg: Search for lens  ""  ==> false
digikam.dimg: updating data
[New Thread 0x7fff1e5ed700 (LWP 17176)]
[New Thread 0x7fff1ddec700 (LWP 17177)]
[New Thread 0x7fff1d5eb700 (LWP 17178)]
[New Thread 0x7fff1cdea700 (LWP 17179)]
[New Thread 0x7ffefbfff700 (LWP 17180)]
[New Thread 0x7ffefb7fe700 (LWP 17181)]
[New Thread 0x7ffefaffd700 (LWP 17182)]
[New Thread 0x7ffefa7fc700 (LWP 17183)]
[New Thread 0x7ffef9ffb700 (LWP 17184)]
[New Thread 0x7ffef97fa700 (LWP 17185)]
[New Thread 0x7ffef8ff9700 (LWP 17186)]
[New Thread 0x7ffedbfff700 (LWP 17187)]
[New Thread 0x7ffed3fff700 (LWP 17188)]
[New Thread 0x7ffedb7fe700 (LWP 17189)]
[New Thread 0x7ffedaffd700 (LWP 17190)]
[New Thread 0x7ffeda7fc700 (LWP 17191)]
[New Thread 0x7ffed9ffb700 (LWP 17192)]
[New Thread 0x7ffed97fa700 (LWP 17193)]
[New Thread 0x7ffed8ff9700 (LWP 17194)]
[New Thread 0x7ffed37fe700 (LWP 17195)]
[New Thread 0x7ffed2ffd700 (LWP 17196)]
[New Thread 0x7ffed27fc700 (LWP 17197)]
[New Thread 0x7ffed1ffb700 (LWP 17198)]
[New Thread 0x7ffed17fa700 (LWP 17199)]
[New Thread 0x7ffed0ff9700 (LWP 17200)]
[New Thread 0x7ffea3fff700 (LWP 17201)]
[New Thread 0x7ffea37fe700 (LWP 17202)]
[New Thread 0x7ffea2ffd700 (LWP 17203)]
[New Thread 0x7ffea27fc700 (LWP 17204)]
[New Thread 0x7ffea1ffb700 (LWP 17205)]
[New Thread 0x7ffea17fa700 (LWP 17206)]
[New Thread 0x7ffea0ff9700 (LWP 17207)]
[New Thread 0x7ffe7ffff700 (LWP 17208)]
[New Thread 0x7ffe7f7fe700 (LWP 17209)]
[New Thread 0x7ffe7effd700 (LWP 17210)]
[New Thread 0x7ffe7e7fc700 (LWP 17211)]
[New Thread 0x7ffe7dffb700 (LWP 17212)]
[New Thread 0x7ffe7d7fa700 (LWP 17213)]
[New Thread 0x7ffe7cff9700 (LWP 17214)]
[New Thread 0x7ffe7c7f8700 (LWP 17215)]
[New Thread 0x7ffe7bff7700 (LWP 17216)]
digikam.dimg: updating data
digikam.general: Using  8  CPU core to run threads
digikam.general: new search text settings:  "" : hasResult =  false , validRows =  0
QFSFileEngine::open: No file name specified
digikam.geoiface: ----
digikam.general: Added root album called:  "Pictures"
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Duplicates view is not active, returning
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe7b7f6700 (LWP 17217)]
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe7aff5700 (LWP 17218)]
digikam.general: Action Thread run  1  new jobs
digikam.database: " ( (Images.id IN (?,?,?)  ) AND 1 ) "
digikam.database: Search query:
 "SELECT DISTINCT Images.id, Images.name, Images.album,        Albums.albumRoot,        ImageInformation.rating, Images.category,        ImageInformation.format, ImageInformation.creationDate,        Images.modificationDate, Images.fileSize,        ImageInformation.width, ImageInformation.height,        ImagePositions.latitudeNumber, ImagePositions.longitudeNumber  FROM Images        LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageid        LEFT  JOIN ImageMetadata    ON Images.id=ImageMetadata.imageid        LEFT  JOIN VideoMetadata    ON Images.id=VideoMetadata.imageid        LEFT  JOIN ImagePositions   ON Images.id=ImagePositions.imageid        INNER JOIN Albums           ON Albums.id=Images.album WHERE Images.status=1 AND (  ( (Images.id IN (?,?,?)  ) AND 1 )  );" 
 (QVariant(qlonglong, 24853), QVariant(qlonglong, 24854), QVariant(qlonglong, 24855))
digikam.database: Search result: 42
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[Thread 0x7ffe7aff5700 (LWP 17218) exited]
[New Thread 0x7ffe7aff5700 (LWP 17219)]
digikam.general: Stacked View Mode :  2
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe7aff5700 (LWP 17220)]
[Thread 0x7ffe7aff5700 (LWP 17219) exited]
digikam.general: Stacked View Mode :  0
digikam.general: Action Thread run  1  new jobs
digikam.database: Relation Interval requires a list of two values
ASSERT: "!isEmpty()" in file ././/include/QtCore/qlist.h, line 344
digikam.general: changing to SAlbum  0x122b3a0
digikam.geoiface: "ROADMAP"

Thread 74 "Thread (pooled)" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffe7dffb700 (LWP 17212)]
0x00007fffed8d8428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
Comment 4 caulier.gilles 2017-04-17 07:43:28 UTC
When it crash, GDB give a prompt. Do not quit with 'q', but enter "bt" to get the backtrace

Npte : i suspect a corrupted database. Can you run the AppImage into a fresh account a populate a database from scratch ?

Gilles Caulier
Comment 5 quincy 2017-05-10 02:30:37 UTC
Here is the backtrace.  Sorry for the huge delay in my response.  I did backup the database to another location and reloaded digikam and it was able to start correctly and recreate the database.

$ ./digikam-5.5.0-01-x86-64.appimage debug
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options
Starting digiKam into GDB...
Use 'bt' command on debugger prompt to get a crash backtrace.
Use 'q' command to quit debugger session.
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from digikam...done.
Catchpoint 1 (throw)
Starting program: /tmp/.mount_7lGx9T/usr/bin/digikam 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe791e700 (LWP 23607)]
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
[New Thread 0x7fffe6035700 (LWP 23608)]
[New Thread 0x7fffe5834700 (LWP 23609)]
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/home/quincy/Pictures/digikam4.db"
   DB Thumbs Name:           "/home/quincy/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/home/quincy/Pictures/recognition.db"
   Connect Options:          ""
   Host Name:                ""
   Host port:                -1
   Internal Server:          false
   Internal Server Path:     ""
   Internal Server Serv Cmd: ""
   Internal Server Init Cmd: ""
   Username:                 ""
   Password:                 ""

[New Thread 0x7fffe5033700 (LWP 23610)]
[Thread 0x7fffe5033700 (LWP 23610) exited]
digikam.dbengine: Loading SQL code from config file "/tmp/.mount_7lGx9T/usr/share/digikam/database/dbconfig.xml"
digikam.dbengine: Checking XML version ID => expected:  3  found:  3
digikam.coredb: Core database: running schema update
digikam.coredb: Core database: have a structure version  8
digikam.coredb: Core database: makeUpdates  8  to  8
digikam.database: Creating new Location  "/quincy/Pictures"  uuid  "volumeid:?uuid=65b2454a-03ca-43ce-9024-d288bfa670a2"
digikam.database: location for  "/home/quincy/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8254914560
digikam.general: Allowing a cache size of 200 MB
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: Thumbs database: have a structure version  "3"
digikam.general: Thumbnails database ready for use
digikam.general: Switch to widget style:  "Fusion"
digikam.dimg: ("/usr/share/color/icc", "/home/quincy/.local/share/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
[New Thread 0x7fffe5033700 (LWP 23611)]
digikam.general: Camera XML data:  "/home/quincy/.local/share/digikam/cameras.xml"
[New Thread 0x7fffd5f38700 (LWP 23612)]
[New Thread 0x7fffd5737700 (LWP 23613)]
[New Thread 0x7fffd4f36700 (LWP 23614)]
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: FaceDB SelectFaceSetting val ret =  0
digikam.facedb: Face database: have a structure version  "2"
digikam.facesengine: Face database ready for use
[New Thread 0x7fffc3fff700 (LWP 23615)]
[New Thread 0x7fffc37fe700 (LWP 23616)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fffc2ffd700 (LWP 23617)]
[New Thread 0x7fffc27fc700 (LWP 23618)]
[New Thread 0x7fffc1ffb700 (LWP 23619)]
[New Thread 0x7fffc17fa700 (LWP 23620)]
[New Thread 0x7fffc0ff9700 (LWP 23621)]
digikam.facesengine: Face database ready for use
[New Thread 0x7fffa3fff700 (LWP 23622)]
[New Thread 0x7fffa37fe700 (LWP 23623)]
digikam.general: Face PipeLine: add database writer
digikam.general: Face PipeLine: add faces trainer
[New Thread 0x7fffa2ffd700 (LWP 23624)]
[New Thread 0x7fffa27fc700 (LWP 23625)]
[New Thread 0x7fffa1ffb700 (LWP 23626)]
[New Thread 0x7fffa17fa700 (LWP 23627)]
digikam.geoiface: "setting backend marble"
QtAV 1.11.0(Mar  9 2017, 11:27:18)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin, Shanghai, ChinaCopyright (C) 2012-2016 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
capi::version: 0.6.0
[New Thread 0x7fffa0ff9700 (LWP 23628)]
[Thread 0x7fffa0ff9700 (LWP 23628) exited]
[New Thread 0x7fffa0ff9700 (LWP 23629)]
[Thread 0x7fffa0ff9700 (LWP 23629) exited]
[New Thread 0x7fffa0ff9700 (LWP 23630)]
[New Thread 0x7fffd44ec700 (LWP 23631)]
digikam.general: AudioOutput backends: ("OpenAL", "null")
digikam.general: Stacked View Mode :  0
[New Thread 0x7fff53ffd700 (LWP 23632)]
[New Thread 0x7fff537fc700 (LWP 23633)]
digikam.geoiface: "setting backend marble"
[New Thread 0x7fff52ffb700 (LWP 23634)]
digikam.general: "browse_album"
digikam.general: "browse_tag"
digikam.general: "browse_labels"
digikam.general: "browse_date"
digikam.general: "browse_timeline"
digikam.general: "browse_search"
digikam.general: "browse_fuzzysearch"
digikam.general: "browse_gpssearch"
digikam.general: "browse_people"
[New Thread 0x7fff527fa700 (LWP 23635)]
[New Thread 0x7fff51ff9700 (LWP 23636)]
[New Thread 0x7fff517f8700 (LWP 23637)]
[New Thread 0x7fff50ff7700 (LWP 23638)]
[New Thread 0x7fff3fffe700 (LWP 23639)]
[New Thread 0x7fff3f7fd700 (LWP 23640)]
[New Thread 0x7fff3effc700 (LWP 23641)]
[New Thread 0x7fff3e7fb700 (LWP 23642)]
digikam.widgets: Paths to color scheme :  ("/tmp/.mount_7lGx9T/usr/share/digikam/colorschemes")
digikam.widgets: ""  ::  ""
digikam.widgets: "High Key"  ::  "/tmp/.mount_7lGx9T/usr/share/digikam/colorschemes/highkey.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/tmp/.mount_7lGx9T/usr/share/lensfun"
digikam.dimg: Load lens database file:  "6x6.xml"
digikam.dimg: Load lens database file:  "actioncams.xml"
digikam.dimg: Load lens database file:  "compact-canon.xml"
digikam.dimg: Load lens database file:  "compact-casio.xml"
digikam.dimg: Load lens database file:  "compact-fujifilm.xml"
digikam.dimg: Load lens database file:  "compact-kodak.xml"
digikam.dimg: Load lens database file:  "compact-konica-minolta.xml"
digikam.dimg: Load lens database file:  "compact-leica.xml"
digikam.dimg: Load lens database file:  "compact-nikon.xml"
digikam.dimg: Load lens database file:  "compact-olympus.xml"
digikam.dimg: Load lens database file:  "compact-panasonic.xml"
digikam.dimg: Load lens database file:  "compact-pentax.xml"
digikam.dimg: Load lens database file:  "compact-ricoh.xml"
digikam.dimg: Load lens database file:  "compact-samsung.xml"
digikam.dimg: Load lens database file:  "compact-sigma.xml"
digikam.dimg: Load lens database file:  "compact-sony.xml"
digikam.dimg: Load lens database file:  "contax.xml"
digikam.dimg: Load lens database file:  "generic.xml"
digikam.dimg: Load lens database file:  "mil-canon.xml"
digikam.dimg: Load lens database file:  "mil-fujifilm.xml"
digikam.dimg: Load lens database file:  "mil-nikon.xml"
digikam.dimg: Load lens database file:  "mil-olympus.xml"
digikam.dimg: Load lens database file:  "mil-panasonic.xml"
digikam.dimg: Load lens database file:  "mil-pentax.xml"
digikam.dimg: Load lens database file:  "mil-samsung.xml"
digikam.dimg: Load lens database file:  "mil-samyang.xml"
digikam.dimg: Load lens database file:  "mil-sigma.xml"
digikam.dimg: Load lens database file:  "mil-sony.xml"
digikam.dimg: Load lens database file:  "mil-tamron.xml"
digikam.dimg: Load lens database file:  "mil-zeiss.xml"
digikam.dimg: Load lens database file:  "misc.xml"
digikam.dimg: Load lens database file:  "rf-leica.xml"
digikam.dimg: Load lens database file:  "slr-canon.xml"
digikam.dimg: Load lens database file:  "slr-hasselblad.xml"
digikam.dimg: Load lens database file:  "slr-konica-minolta.xml"
digikam.dimg: Load lens database file:  "slr-leica.xml"
digikam.dimg: Load lens database file:  "slr-nikon.xml"
digikam.dimg: Load lens database file:  "slr-olympus.xml"
digikam.dimg: Load lens database file:  "slr-panasonic.xml"
digikam.dimg: Load lens database file:  "slr-pentax.xml"
digikam.dimg: Load lens database file:  "slr-ricoh.xml"
digikam.dimg: Load lens database file:  "slr-samsung.xml"
digikam.dimg: Load lens database file:  "slr-samyang.xml"
digikam.dimg: Load lens database file:  "slr-schneider.xml"
digikam.dimg: Load lens database file:  "slr-sigma.xml"
digikam.dimg: Load lens database file:  "slr-soligor.xml"
digikam.dimg: Load lens database file:  "slr-sony.xml"
digikam.dimg: Load lens database file:  "slr-tamron.xml"
digikam.dimg: Load lens database file:  "slr-tokina.xml"
digikam.dimg: Load lens database file:  "slr-ussr.xml"
digikam.dimg: Load lens database file:  "slr-vivitar.xml"
digikam.dimg: Load lens database file:  "slr-zeiss.xml"
digikam.dimg: variant:  QVariant(Digikam::LensFunIface::DevicePtr, )
digikam.dimg: dev:  AEE  ::  AEE DV  ::  6
digikam.dimg: Search for camera  "" - ""  ==> false
digikam.dimg: Search for lens  ""  ==> false
digikam.dimg: updating data
[New Thread 0x7fff3d5ea700 (LWP 23643)]
[New Thread 0x7fff3cde9700 (LWP 23644)]
[New Thread 0x7ffefffff700 (LWP 23645)]
[New Thread 0x7fff07fff700 (LWP 23646)]
[New Thread 0x7fff077fe700 (LWP 23647)]
[New Thread 0x7fff06ffd700 (LWP 23648)]
[New Thread 0x7fff067fc700 (LWP 23649)]
[New Thread 0x7fff05ffb700 (LWP 23650)]
[New Thread 0x7fff057fa700 (LWP 23651)]
[New Thread 0x7fff04ff9700 (LWP 23652)]
[New Thread 0x7ffeff7fe700 (LWP 23653)]
[New Thread 0x7ffefeffd700 (LWP 23654)]
[New Thread 0x7ffefe7fc700 (LWP 23655)]
[New Thread 0x7ffefdffb700 (LWP 23656)]
[New Thread 0x7ffefd7fa700 (LWP 23657)]
[New Thread 0x7ffefcff9700 (LWP 23658)]
[New Thread 0x7ffec7fff700 (LWP 23659)]
[New Thread 0x7ffec77fe700 (LWP 23660)]
[New Thread 0x7ffec6ffd700 (LWP 23661)]
[New Thread 0x7ffec67fc700 (LWP 23662)]
[New Thread 0x7ffec5ffb700 (LWP 23663)]
[New Thread 0x7ffec57fa700 (LWP 23664)]
[New Thread 0x7ffec4ff9700 (LWP 23665)]
[New Thread 0x7ffea3fff700 (LWP 23666)]
[New Thread 0x7ffea37fe700 (LWP 23667)]
[New Thread 0x7ffea2ffd700 (LWP 23668)]
[New Thread 0x7ffea27fc700 (LWP 23669)]
[New Thread 0x7ffea1ffb700 (LWP 23670)]
[New Thread 0x7ffea17fa700 (LWP 23671)]
[New Thread 0x7ffea0ff9700 (LWP 23672)]
[New Thread 0x7ffe83fff700 (LWP 23673)]
[New Thread 0x7ffe837fe700 (LWP 23674)]
[New Thread 0x7ffe82ffd700 (LWP 23675)]
[New Thread 0x7ffe827fc700 (LWP 23676)]
[New Thread 0x7ffe81ffb700 (LWP 23677)]
[New Thread 0x7ffe817fa700 (LWP 23678)]
[New Thread 0x7ffe80ff9700 (LWP 23679)]
digikam.dimg: updating data
[New Thread 0x7ffe7bfff700 (LWP 23680)]
[New Thread 0x7ffe7b7fe700 (LWP 23681)]
[New Thread 0x7ffe7affd700 (LWP 23682)]
[New Thread 0x7ffe7a7fc700 (LWP 23683)]
digikam.general: Using  8  CPU core to run threads
digikam.general: new search text settings:  "" : hasResult =  false , validRows =  0
QFSFileEngine::open: No file name specified
digikam.geoiface: ----
digikam.general: Added root album called:  "Pictures"
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe79ffb700 (LWP 23684)]
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[New Thread 0x7ffe797fa700 (LWP 23685)]
digikam.general: Stacked View Mode :  2
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
[Thread 0x7ffe797fa700 (LWP 23685) exited]
[New Thread 0x7ffe797fa700 (LWP 23686)]
digikam.general: Stacked View Mode :  0
digikam.general: Action Thread run  1  new jobs
digikam.general: changing to SAlbum  0x1f14400
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
Recreating ksycoca file ("/home/quincy/.cache/ksycoca5_en_3bMBT1u+0MBjmj+kb2rfFgZr6Uo=", version 303)
Menu "applications.menu" not found.
"applications.menu"  not found in  ("/home/quincy/.config/menus", "/etc/xdg/menus") 

Saving
digikam.database: Relation Interval requires a list of two values
ASSERT: "!isEmpty()" in file ././/include/QtCore/qlist.h, line 344

Thread 76 "Thread (pooled)" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffe7b7fe700 (LWP 23681)]
0x00007fffed7cc428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007fffed7cc428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007fffed7ce02a in __GI_abort () at abort.c:89
#2  0x00000031e029696e in QMessageLogger::fatal(char const*, ...) const ()
   from /tmp/.mount_7lGx9T/usr/lib/libQt5Core.so.5
#3  0x00000031e029220e in qt_assert(char const*, char const*, int) ()
   from /tmp/.mount_7lGx9T/usr/lib/libQt5Core.so.5
#4  0x00007fffee5140a9 in QList<int>::last (this=0x7ffe7b7fd4a0) at ././/include/QtCore/qlist.h:344
#5  0x00007fffee5108e0 in Digikam::ImageQueryBuilder::buildField (this=this@entry=0x7ffe7b7fd9f0, sql=..., 
    reader=..., name=..., boundValues=boundValues@entry=0x7ffe7b7fd7a0, hooks=hooks@entry=0x7ffe7b7fd7f0)
    at /b/dktemp/digikam-v5.5.0/core/libs/database/item/imagequerybuilder.cpp:1142
#6  0x00007fffee51380a in Digikam::ImageQueryBuilder::buildGroup (this=this@entry=0x7ffe7b7fd9f0, sql=..., 
    reader=..., boundValues=boundValues@entry=0x7ffe7b7fd7a0, hooks=hooks@entry=0x7ffe7b7fd7f0)
    at /b/dktemp/digikam-v5.5.0/core/libs/database/item/imagequerybuilder.cpp:204
#7  0x00007fffee513a0a in Digikam::ImageQueryBuilder::buildQueryFromXml (this=this@entry=0x7ffe7b7fd9f0, xml=..., 
    boundValues=boundValues@entry=0x7ffe7b7fd7a0, hooks=hooks@entry=0x7ffe7b7fd7f0)
    at /b/dktemp/digikam-v5.5.0/core/libs/database/item/imagequerybuilder.cpp:151
#8  0x00007fffee513acc in Digikam::ImageQueryBuilder::buildQuery (this=this@entry=0x7ffe7b7fd9f0, q=..., 
    boundValues=boundValues@entry=0x7ffe7b7fd7a0, hooks=hooks@entry=0x7ffe7b7fd7f0)
    at /b/dktemp/digikam-v5.5.0/core/libs/database/item/imagequerybuilder.cpp:123
#9  0x00007fffee4f4eb4 in Digikam::ImageLister::listSearch (this=this@entry=0x7ffe7b7fdb50, 
    receiver=receiver@entry=0x7ffe7b7fdba0, xml=..., limit=limit@entry=0, referenceImageId=-1)
    at /b/dktemp/digikam-v5.5.0/core/libs/database/item/imagelister.cpp:544
#10 0x00007fffee4db522 in Digikam::SearchesJob::run (this=0x29a5d20)
    at /b/dktemp/digikam-v5.5.0/core/libs/database/dbjobs/dbjob.cpp:275
#11 0x00000031e02abf8d in ?? () from /tmp/.mount_7lGx9T/usr/lib/libQt5Core.so.5
#12 0x00000031e02aef49 in ?? () from /tmp/.mount_7lGx9T/usr/lib/libQt5Core.so.5
#13 0x00007ffff5a746ba in start_thread (arg=0x7ffe7b7fe700) at pthread_create.c:333
#14 0x00007fffed89d82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Comment 6 caulier.gilles 2017-05-11 17:45:23 UTC
I see the problem. In 5.5.0 version the imagequerybuilder.cpp line 1142 is this one :

    else if (name == QLatin1String("videoaudiobitrate"))
    {
        //fieldQuery.addIntField("VideoMetadata.audioBitRate");
        QList<int> values = reader.valueToIntList();

        if (values.size() != 2)
        {
            qCWarning(DIGIKAM_DATABASE_LOG) << "Relation Interval requires a list of two values";
        }

        sql += QString::fromUtf8(" ( CAST(VideoMetadata.audioBitRate AS INTEGER)");
        ImageQueryBuilder::addSqlRelation(sql,
                                          relation == SearchXml::Interval ? SearchXml::GreaterThanOrEqual : SearchXml::GreaterThan);
        sql += QString::fromUtf8(" ? AND CAST(VideoMetadata.audioBitRate AS INTEGER)");
        ImageQueryBuilder::addSqlRelation(sql,
                                          relation == SearchXml::Interval ? SearchXml::LessThanOrEqual : SearchXml::LessThan);
        sql += QString::fromUtf8(" ?) ");

        *boundValues << values.first() << values.last(); <<<<<<<<<<<<<<<<<<<!!!
    }

In this source code, there are plenty of QList<> << v.first() << v.last() operation. if v list is empty, due to the queries to encapsulate to XML, Qt generate an exception and application crash.

So everywhere in this code, when this kind of operation is done, we need a check to see if v list is empty or not.

Gilles Caulier
Comment 7 caulier.gilles 2017-05-11 17:46:09 UTC
Maik, 

Do you arrive to the same conclusion than mine ?

Gilles
Comment 8 Maik Qualmann 2017-05-11 18:12:19 UTC
Yes, in any case. After the debug message, the function must be exited. I will try to reproduce the error. I am compiling currently Simons Patch11...

Maik
Comment 9 Maik Qualmann 2017-05-11 18:15:18 UTC
There are still more problems in sequence...

Maik
Comment 10 Maik Qualmann 2017-05-11 18:35:07 UTC
Crash is fully reproducible, my digiKam does not start anymore. I'll fix it.

Maik
Comment 11 Maik Qualmann 2017-05-11 19:00:08 UTC
Git commit 9be70b9dbc6e0fa9e507a4a7cff5af402c34113e by Maik Qualmann.
Committed on 11/05/2017 at 18:59.
Pushed by mqualmann into branch 'master'.

fix possible crash in ImageQueryBuilder
FIXED-IN: 5.6.0

M  +2    -1    NEWS
M  +8    -1    libs/database/item/imagequerybuilder.cpp

https://commits.kde.org/digikam/9be70b9dbc6e0fa9e507a4a7cff5af402c34113e
Comment 12 quincy 2017-05-12 14:41:14 UTC
Great job and great response time!