Bug 381877

Summary: Digikam start allocating all memory when scans a new collection.
Product: [Applications] digikam Reporter: giggi1999
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: critical CC: caulier.gilles, freisim93, metzpinguin, nvlplx
Priority: NOR    
Version: 5.6.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Attachments: What's happen
Memory

Description giggi1999 2017-07-01 19:27:15 UTC
When I've inserted some new images in a new folder; digikam when scanning the new folder has allocate all memory (RAM) of my system in few seconds, and as a results the system and digikam hang.

I've not imported the images with digikam, but I've created a new folder and copied the images with dolphin (or any other system tool).

At the moment, for me, digikam is not usable.
Comment 1 caulier.gilles 2017-07-01 20:45:28 UTC
Can you share the new album contents, just to try to reproduce the problem here ?

Gilles Caulier
Comment 2 giggi1999 2017-07-02 06:55:26 UTC
The new album is a folder with 125 jpeg images.
The average size of a single is about 7.7 Mb.
The photo has been done with an Olympus Omd em 5 camera.

The total size of the album.
> du Harley\ II/ -h
> 901M    Harley II/

And finally the album, and the picture collection, is an external USB drive formatted in XFS.
Comment 3 giggi1999 2017-07-02 07:05:28 UTC
Now I've tried to move the new folder outside the collection.
As a result I've obtained a similar freeze.
The system was freezed for a pair of minutes when finished digikam has crashed.

Two suspect entry in journalctl log:
lug 02 09:02:20 sir kwin_x11[1250]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 15298, resource id: 33560089, major code: 3 (GetWindowAttributes), minor code: 0
lug 02 09:02:20 sir kwin_x11[1250]: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 15299, resource id: 33560089, major code: 14 (GetGeometry), minor code: 0
Comment 4 caulier.gilles 2017-07-02 08:22:24 UTC
QXcbConnection: XCB error: sound like a packaging system problem.

Here this kind of freeze are never seen. My collection is huge (more than 200.000 items as RAW, JPG, PNg, TIFF, MPG, MOV, AVI, MKV, etc...)

Gilles Caulier
Comment 5 giggi1999 2017-07-02 20:01:36 UTC
The log message likes a problem with Qt.
But the time is correlated with digikam.

Strange.
Comment 6 giggi1999 2017-07-08 20:11:23 UTC
Created attachment 106510 [details]
What's happen

This is the snapshot of the RAM usage caused by digikam.
Comment 7 giggi1999 2017-07-08 20:13:40 UTC
The log of digikam up to the ctrl+c

digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/run/media/simone/esterno_xfs/data/Pictures/digikam4.db"
   DB Thumbs Name:           "/run/media/simone/esterno_xfs/data/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/run/media/simone/esterno_xfs/data/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 "/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  "/data/Pictures"  uuid  "volumeid:?uuid=83fe5e0a-66fa-42c9-ad66-05f1bee9c0b2"
digikam.database: location for  "/run/media/simone/esterno_xfs/data/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8356839424
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:  "oxygen"
digikam.dimg: ("/usr/share/color/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
digikam.general: Camera XML data:  "/home/sim/.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
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
digikam.geoiface: "setting backend marble"
QtAV 1.12.0(Jun 21 2017, 14:33:46)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin->PPTV, Shanghai, China Copyright (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
digikam.general: AudioOutput backends: ("OpenAL", "Pulse", "null")
digikam.general: Stacked View Mode :  0
digikam.geoiface: "setting backend marble"
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 :  ("/usr/share/digikam/colorschemes")
digikam.widgets: "Breeze"  ::  ""
digikam.widgets: "DarkRoom"  ::  "/usr/share/digikam/colorschemes/darkroom.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/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.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: Action Thread run  1  new jobs
digikam.database: " ( (Images.id IN (?,?,?,?,?,?)  ) ) "
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 (?,?,?,?,?,?)  ) )  );" 
 (QVariant(qlonglong, 9818), QVariant(qlonglong, 9817), QVariant(qlonglong, 9816), QVariant(qlonglong, 9815), QVariant(qlonglong, 9814), QVariant(qlonglong, 9813))
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.database: Search result: 84
digikam.general: Using  8  CPU core to run threads
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: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.general: One job is done
kipi.plugins: Plugin_Dropbox Plugin Loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_dropboxui.rc"
kipi.library: Loaded plugin  "Dropbox"
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.plugins: Plugin_PrintImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_printimagesui.rc"
kipi.library: Loaded plugin  "PrintImages"
kipi.plugins: Plugin_RemoteStorage plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_remotestorageui.rc"
kipi.library: Loaded plugin  "RemoteStorage"
kipi.plugins: Plugin_GoogleServices Plugin Loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_sendimagesui.rc"
kipi.library: Loaded plugin  "SendImages"
kipi.plugins: Plugin_Imageshack plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_imageshackui.rc"
kipi.library: Loaded plugin  "Imageshack"
kipi.plugins: Plugin_MediaWiki plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_wikimediaui.rc"
kipi.library: Loaded plugin  "MediaWiki export"
kipi.plugins: Plugin_Vkontakte plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_vkontakteui.rc"
kipi.library: Loaded plugin  "VKontakte"
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_kmlexportui.rc"
kipi.library: Loaded plugin  "KMLExport"
kipi.plugins: Plugin_Smug plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_smugui.rc"
kipi.library: Loaded plugin  "Smug"
kipi.plugins: Plugin_JAlbum plugin loaded
kipi.plugins: Reading jAlbum data from kipirc file..
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_jalbumui.rc"
kipi.library: Loaded plugin  "JAlbum"
kipi.plugins: Plugin_Facebook plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_facebookui.rc"
kipi.library: Loaded plugin  "Facebook"
kipi.plugins: Plugin_Piwigo plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_piwigoui.rc"
kipi.library: Loaded plugin  "Piwigo"
kipi.plugins: Plugin_Rajce plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_rajceui.rc"
kipi.library: Loaded plugin  "Rajce"
kipi.plugins: Reading data from kipirc file..
digikam.geoiface: ----
digikam.geoiface: "setting backend marble"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
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"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.general: scan mode: ScanDeferredFiles
Comment 8 Maik Qualmann 2017-07-08 20:36:53 UTC
Which libexiv2 version do you use, see digiKam component info? Please try the beta AppImage from www.digikam.org to reproduce the error. Can you share a few samples from the Olympus camera files?

Maik
Comment 9 giggi1999 2017-07-09 11:42:18 UTC
The exiv2 used in Archlinux: 0.25
https://www.archlinux.org/packages/extra/i686/exiv2/

But is not listed in the dependencies of digikam.
https://www.archlinux.org/packages/extra/x86_64/digikam/


Some images form my camera.
https://www.dropbox.com/sh/cg70llotcif22af/AAA6q9kw4vYNvktYTNbeocBRa?dl=0

Where's the beta?
Comment 10 giggi1999 2017-07-09 15:45:37 UTC
The log from the appimage (up to the ctrl+c):
(The problem is the same ...)

./digikam-5.6.0-01-x86-64.appimage 
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: minimal, offscreen, xcb, wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimalegl, vnc.

Reinstalling the application may fix this problem.
/tmp/.mount_6terHj/usr/bin/digikam.wrapper: riga 121: 19967 Annullato               (core dump creato) LD_LIBRARY_PATH="" kdialog --caption "" --title "$TITLE" -yesno "$TEXT"
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: minimal, offscreen, xcb, wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimalegl, vnc.

Reinstalling the application may fix this problem.
/tmp/.mount_6terHj/usr/bin/digikam.wrapper: riga 121: 19971 Annullato               (core dump creato) LD_LIBRARY_PATH="" kdialog --caption "" --title "$TITLE" -yesno "$TEXT"
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/run/media/simone/esterno_xfs/data/Pictures/digikam4.db"
   DB Thumbs Name:           "/run/media/simone/esterno_xfs/data/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/run/media/simone/esterno_xfs/data/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_6terHj/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  "/data/Pictures"  uuid  "volumeid:?uuid=83fe5e0a-66fa-42c9-ad66-05f1bee9c0b2"
digikam.database: location for  "/run/media/simone/esterno_xfs/data/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8356839424
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:  "oxygen"
digikam.dimg: ("/usr/share/color/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
digikam.general: Camera XML data:  "/home/sim/.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(Apr 29 2017, 05:27:51)
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.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_6terHj/usr/share/digikam/colorschemes", "/usr/share/digikam/colorschemes")
digikam.widgets: "Breeze"  ::  ""
digikam.widgets: "DarkRoom"  ::  "/usr/share/digikam/colorschemes/darkroom.colors"
digikam.widgets: "DarkRoom"  ::  "/usr/share/digikam/colorschemes/darkroom.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/tmp/.mount_6terHj/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.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: Action Thread run  1  new jobs
digikam.database: " ( (Images.id IN (?,?,?,?,?,?)  ) ) "
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 (?,?,?,?,?,?)  ) )  );" 
 (QVariant(qlonglong, 9818), QVariant(qlonglong, 9817), QVariant(qlonglong, 9816), QVariant(qlonglong, 9815), QVariant(qlonglong, 9814), QVariant(qlonglong, 9813))
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.database: Search result: 84
digikam.general: Using  8  CPU core to run threads
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: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.geoiface: ----
kf5.kservice.sycoca: Parse error in  "/home/sim/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line  1 , col  1 :  "unexpected end of file"
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
kipi.plugins: Plugin_Smug plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_smugui.rc"
kipi.library: Loaded plugin  "Smug"
org.kde.kcoreaddons: Error loading plugin "kipiplugin_remotestorage" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/tmp/.mount_6terHj/usr/plugins", "/tmp/.mount_6terHj/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportazione e importazione con KIO"  ( "kipiplugin_remotestorage" )  with error:  "La libreria dinamica non è stata trovata."
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_kmlexportui.rc"
kipi.library: Loaded plugin  "KMLExport"
kipi.plugins: Plugin_Piwigo plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_piwigoui.rc"
kipi.library: Loaded plugin  "Piwigo"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_sendimagesui.rc"
kipi.library: Loaded plugin  "SendImages"
kipi.plugins: Plugin_MediaWiki plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_wikimediaui.rc"
kipi.library: Loaded plugin  "MediaWiki export"
kipi.plugins: Plugin_Imageshack plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_imageshackui.rc"
kipi.library: Loaded plugin  "Imageshack"
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.plugins: Plugin_PrintImages plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_printimagesui.rc"
kipi.library: Loaded plugin  "PrintImages"
kipi.plugins: Plugin_JAlbum plugin loaded
kipi.plugins: Reading jAlbum data from kipirc file..
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_jalbumui.rc"
kipi.library: Loaded plugin  "JAlbum"
kipi.plugins: Plugin_Rajce plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_rajceui.rc"
kipi.library: Loaded plugin  "Rajce"
kipi.plugins: Plugin_GoogleServices Plugin Loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
kipi.plugins: Plugin_Facebook plugin loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_facebookui.rc"
kipi.library: Loaded plugin  "Facebook"
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
org.kde.kcoreaddons: Error loading plugin "kipiplugin_vkontakte" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/tmp/.mount_6terHj/usr/plugins", "/tmp/.mount_6terHj/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportatore a VKontakte.ru"  ( "kipiplugin_vkontakte" )  with error:  "La libreria dinamica non è stata trovata."
kipi.plugins: Plugin_Dropbox Plugin Loaded
kipi.library: UI file : "/tmp/.mount_6terHj/usr/share/kxmlgui5/kipi/kipiplugin_dropboxui.rc"
kipi.library: Loaded plugin  "Dropbox"
org.kde.kcoreaddons: Error loading plugin "kipiplugin_remotestorage" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/tmp/.mount_6terHj/usr/plugins", "/tmp/.mount_6terHj/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportazione e importazione con KIO"  ( "kipiplugin_remotestorage" )  with error:  "La libreria dinamica non è stata trovata."
kipi.plugins: Reading data from kipirc file..
org.kde.kcoreaddons: Error loading plugin "kipiplugin_vkontakte" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/tmp/.mount_6terHj/usr/plugins", "/tmp/.mount_6terHj/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportatore a VKontakte.ru"  ( "kipiplugin_vkontakte" )  with error:  "La libreria dinamica non è stata trovata."
org.kde.kcoreaddons: Error loading plugin "kipiplugin_remotestorage" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/tmp/.mount_6terHj/usr/plugins", "/tmp/.mount_6terHj/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportazione e importazione con KIO"  ( "kipiplugin_remotestorage" )  with error:  "La libreria dinamica non è stata trovata."
org.kde.kcoreaddons: Error loading plugin "kipiplugin_vkontakte" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/tmp/.mount_6terHj/usr/plugins", "/tmp/.mount_6terHj/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportatore a VKontakte.ru"  ( "kipiplugin_vkontakte" )  with error:  "La libreria dinamica non è stata trovata."
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.general: One job is done
digikam.geoiface: "setting backend marble"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
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"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.general: scan mode: ScanDeferredFiles
Comment 11 caulier.gilles 2017-07-09 16:01:41 UTC
Ahah. look well the report :

This application failed to start because it could not find or load the Qt
platform plugin "xcb"
in "".

Available platform plugins are: minimal, offscreen, xcb,
wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimalegl, vnc.

^^^ It said that XCB plugin is missing and it said that plugin available XCB is here.

Excelent.

I'm sur, the XCB Qt plugin is included in AppImage.

But the most important is the first error :

/tmp/.mount_6terHj/usr/bin/digikam.wrapper: riga 121: 19967 Annullato               (core dump creato) LD_LIBRARY_PATH="" kdialog --caption "" --title "$TITLE" -yesno "$TEXT"

The AppImage sdk add rules to register the application in desktop menu (it's optional).

I suspect that dialog used to ask to end user if the application must be registered in desktop, crash violently.

There is a quick test to validate this error:

1/ AppÎmage in a simple ISO9960 container loaded dynamically in memory and mounted in temp dir by the kernel.
2/ mount the appimage manually somewhere on you hard drive and edit the script used to run digiKam without to pass by AppImage SDK:

   * mkdir ./tmpDK
   * mkdir ./DK5
   * sudo mount appimagefile ./tmpDK
   * cp ./tmpDK/* ./DK5 -r
   * edit file ./DK5/AppRun and remplace at en of file "digikam.wrapper $@" by "digikam $@"

3/ Run ./DK5/AppRun

If it run (and it work here), the problem is with AppImage desktop integration rules...

Gilles Caulier
Comment 12 giggi1999 2017-07-09 16:37:12 UTC
I've tried ...
The problem has not solved.
But I've a more complete log ...
The image listed in the log has been added recently (after the appearance of the problem).


The full log up to the ctrl+c
https://pastebin.com/JFyNhAhR


./DK5/AppRun
-- 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:             "/run/media/simone/esterno_xfs/data/Pictures/digikam4.db"
   DB Thumbs Name:           "/run/media/simone/esterno_xfs/data/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/run/media/simone/esterno_xfs/data/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 "/mnt/hd_root/media/spz/digik/DK5/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  "/data/Pictures"  uuid  "volumeid:?uuid=83fe5e0a-66fa-42c9-ad66-05f1bee9c0b2"
digikam.database: location for  "/run/media/simone/esterno_xfs/data/Pictures"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8356839424
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:  "oxygen"
digikam.dimg: ("/usr/share/color/icc")
digikam.dimg: No X.org XICC profile installed for screen  0
digikam.general: Camera XML data:  "/home/sim/.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(Apr 29 2017, 05:27:51)
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.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 :  ("/mnt/hd_root/media/spz/digik/DK5/usr/share/digikam/colorschemes", "/usr/share/digikam/colorschemes")
digikam.widgets: "Breeze"  ::  ""
digikam.widgets: "DarkRoom"  ::  "/usr/share/digikam/colorschemes/darkroom.colors"
digikam.widgets: "DarkRoom"  ::  "/usr/share/digikam/colorschemes/darkroom.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/mnt/hd_root/media/spz/digik/DK5/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.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: Action Thread run  1  new jobs
digikam.database: " ( (Images.id IN (?,?,?,?,?,?)  ) ) "
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 (?,?,?,?,?,?)  ) )  );" 
 (QVariant(qlonglong, 9818), QVariant(qlonglong, 9817), QVariant(qlonglong, 9816), QVariant(qlonglong, 9815), QVariant(qlonglong, 9814), QVariant(qlonglong, 9813))
digikam.database: Search result: 84
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
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: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
kipi.plugins: Plugin_Smug plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_smugui.rc"
kipi.library: Loaded plugin  "Smug"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_kmlexportui.rc"
kipi.library: Loaded plugin  "KMLExport"
kipi.plugins: Plugin_Dropbox Plugin Loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_dropboxui.rc"
kipi.library: Loaded plugin  "Dropbox"
org.kde.kcoreaddons: Error loading plugin "kipiplugin_vkontakte" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/mnt/hd_root/media/spz/digik/DK5/usr/plugins", "/mnt/hd_root/media/spz/digik/DK5/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportatore a VKontakte.ru"  ( "kipiplugin_vkontakte" )  with error:  "La libreria dinamica non è stata trovata."
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
kipi.plugins: Plugin_MediaWiki plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_wikimediaui.rc"
kipi.library: Loaded plugin  "MediaWiki export"
kipi.plugins: Plugin_JAlbum plugin loaded
kipi.plugins: Reading jAlbum data from kipirc file..
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_jalbumui.rc"
kipi.library: Loaded plugin  "JAlbum"
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
kipi.plugins: Plugin_PrintImages plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_printimagesui.rc"
kipi.library: Loaded plugin  "PrintImages"
kipi.plugins: Plugin_Rajce plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_rajceui.rc"
kipi.library: Loaded plugin  "Rajce"
kipi.plugins: Plugin_Facebook plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_facebookui.rc"
kipi.library: Loaded plugin  "Facebook"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_sendimagesui.rc"
kipi.library: Loaded plugin  "SendImages"
kipi.plugins: Plugin_Piwigo plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_piwigoui.rc"
kipi.library: Loaded plugin  "Piwigo"
org.kde.kcoreaddons: Error loading plugin "kipiplugin_remotestorage" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/mnt/hd_root/media/spz/digik/DK5/usr/plugins", "/mnt/hd_root/media/spz/digik/DK5/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportazione e importazione con KIO"  ( "kipiplugin_remotestorage" )  with error:  "La libreria dinamica non è stata trovata."
kipi.plugins: Plugin_Imageshack plugin loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_imageshackui.rc"
kipi.library: Loaded plugin  "Imageshack"
kipi.plugins: Plugin_GoogleServices Plugin Loaded
kipi.library: UI file : "/mnt/hd_root/media/spz/digik/DK5/usr/share/kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
org.kde.kcoreaddons: Error loading plugin "kipiplugin_vkontakte" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/mnt/hd_root/media/spz/digik/DK5/usr/plugins", "/mnt/hd_root/media/spz/digik/DK5/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportatore a VKontakte.ru"  ( "kipiplugin_vkontakte" )  with error:  "La libreria dinamica non è stata trovata."
kipi.plugins: Reading data from kipirc file..
org.kde.kcoreaddons: Error loading plugin "kipiplugin_remotestorage" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/mnt/hd_root/media/spz/digik/DK5/usr/plugins", "/mnt/hd_root/media/spz/digik/DK5/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportazione e importazione con KIO"  ( "kipiplugin_remotestorage" )  with error:  "La libreria dinamica non è stata trovata."
org.kde.kcoreaddons: Error loading plugin "kipiplugin_vkontakte" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/mnt/hd_root/media/spz/digik/DK5/usr/plugins", "/mnt/hd_root/media/spz/digik/DK5/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportatore a VKontakte.ru"  ( "kipiplugin_vkontakte" )  with error:  "La libreria dinamica non è stata trovata."
org.kde.kcoreaddons: Error loading plugin "kipiplugin_remotestorage" "La libreria dinamica non è stata trovata." 
Plugin search paths are ("/mnt/hd_root/media/spz/digik/DK5/usr/plugins", "/mnt/hd_root/media/spz/digik/DK5/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
kipi.library: Cannot create instance for plugin  "Esportazione e importazione con KIO"  ( "kipiplugin_remotestorage" )  with error:  "La libreria dinamica non è stata trovata."
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.general: One job is done
digikam.geoiface: ----
digikam.geoiface: "setting backend marble"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
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"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.general: scan mode: ScanDeferredFiles
digikam.general: total scan value :  35245
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003304.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003304.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:31:40.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:31:40 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.database: Scanning took 37 ms
digikam.database: Finishing took 29 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003305.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003305.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:31:58.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:31:58 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.database: Scanning took 51 ms
digikam.database: Finishing took 0 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003306.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003306.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:32:01.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:32:01 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.database: Scanning took 40 ms
digikam.database: Finishing took 1 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003307.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003307.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:32:05.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:32:05 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.database: Scanning took 50 ms
digikam.database: Finishing took 0 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003308.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003308.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:32:27.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:32:27 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.database: Scanning took 50 ms
digikam.database: Finishing took 1 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003309.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003309.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:34:06.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:34:06 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  8
digikam.database: Scanning took 48 ms
digikam.database: Finishing took 1 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003310.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003310.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:34:49.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:34:49 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  8
digikam.database: Scanning took 31 ms
digikam.database: Finishing took 0 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

digikam.dimg: "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003311.JPG"  : JPEG file identified
digikam.database: Adding new item "/run/media/simone/esterno_xfs/data/Pictures/Italia/Quarcino Luglio/Z0003311.JPG"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime(2017-07-08 14:36:07.000 CEST Qt::TimeSpec(LocalTime))
digikam.metaengine: DateTime (Exif digitalized):  sab lug 8 14:36:07 2017
digikam.metaengine: Orientation => Exif.Image.Orientation =>  8
digikam.database: Scanning took 20 ms
digikam.database: Finishing took 1 ms
digikam.metaengine: Exiv2 ( 2 ) :  Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.
Comment 13 caulier.gilles 2017-07-09 17:17:29 UTC
after the appearance of the problem == > which one.

The new trace is clear : no crash here.

Do you seen the main GUI appear ? Why do you press CTRL+C ? Let's the application to continuos the scan. All is fine until now.

Gilles Caulier
Comment 14 giggi1999 2017-07-09 18:16:41 UTC
(In reply to caulier.gilles from comment #13)
> after the appearance of the problem == > which one.
> 
> The new trace is clear : no crash here.
> 
> Do you seen the main GUI appear ? Why do you press CTRL+C ? Let's the
> application to continuos the scan. All is fine until now.
> 
> Gilles Caulier

The splash screen and GUI appear.

I press ctrl+c because digikam start allocating all memory of my PC, and as a results the system completely stalls.
That's happen with the ArchLinux version an the appimage.

The problem is not a crash, but the continuous allocation of memory (and generally the consequence is an indirect crash).


Generally I press ctrl+c at 7.5 Gb ...
Comment 15 caulier.gilles 2017-07-09 18:22:33 UTC
Ok, now it's clear.

Next stage is to discovering Which king of file create this memory dysfunction on your computer.

Remember that it's not reproducible here. Can you imagine this kind of dysfunction for an application running in production this is not acceptable.

So typically, digiKam allocate the memory when it's scan the collection of image. Can you confirm ? There is no other operation running in background. Right ?

If yes, use the digiKam appimage, as explained previously in this thread, but with another account on your system. Typically, a fresh account where you will import step by step the albums from your collection, to discover which kind of files mangle the memory.

Gilles Caulier
Comment 16 giggi1999 2017-07-09 19:00:11 UTC
Created attachment 106521 [details]
Memory

What's happen with the memory.
Comment 17 giggi1999 2017-07-09 19:03:06 UTC
I've tried with a new user on an empty collection.
And the problem is still here.

I've added two attachment with a screenshot of ksysguard. 

The log:
 
$ digikam 
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/mnt/disco_d/picture/digikam4.db"
   DB Thumbs Name:           "/mnt/disco_d/picture/thumbnails-digikam.db"
   DB Face Name:             "/mnt/disco_d/picture/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 "/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  "/picture"  uuid  "volumeid:?uuid=eecebd58cebd19b3"
digikam.database: location for  "/mnt/disco_d/picture"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8356839424
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.dimg: ("/usr/share/color/icc")
digikam.general: Does not contain  "Comment"  Namespace
digikam.metaengine: Loading default values ++++++++++++++++
digikam.dimg: No X.org XICC profile installed for screen  0
digikam.general: Camera XML data:  "/home/tmpusr/.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                                                                                                
libpng warning: iCCP: known incorrect sRGB profile                                                                                               
libpng warning: iCCP: known incorrect sRGB profile                                                                                               
digikam.geoiface: "setting backend marble"                                                                                                       
QtAV 1.12.0(Jun 21 2017, 14:33:46)                                                                                                               
Multimedia framework base on Qt and FFmpeg.                                                                                                      
Distributed under the terms of LGPLv2.1 or later.                                                                                                
Shanghai University->S3 Graphics->Deepin->PPTV, Shanghai, China Copyright (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
digikam.general: AudioOutput backends: ("OpenAL", "Pulse", "null")
digikam.general: Stacked View Mode :  0
digikam.geoiface: "setting backend marble"
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 :  ("/usr/share/digikam/colorschemes")
digikam.widgets: "Breeze"  ::  ""
digikam.widgets: "Breeze"  ::  ""
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/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.general: Added root album called:  "/mnt/disco_d/picture"
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: "ROADMAP"
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.general: One job is done
digikam.general: Data From DBJobsThread is null:  true
digikam.general: Cancel Main Thread
digikam.general: One job is done
kipi.plugins: Plugin_PrintImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_printimagesui.rc"
kipi.library: Loaded plugin  "PrintImages"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_kmlexportui.rc"
kipi.library: Loaded plugin  "KMLExport"
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
kipi.plugins: Plugin_MediaWiki plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_wikimediaui.rc"
kipi.library: Loaded plugin  "MediaWiki export"
kipi.plugins: Plugin_Piwigo plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_piwigoui.rc"
kipi.library: Loaded plugin  "Piwigo"
kipi.plugins: Plugin_Facebook plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_facebookui.rc"
kipi.library: Loaded plugin  "Facebook"
kipi.plugins: Plugin_Imageshack plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_imageshackui.rc"
kipi.library: Loaded plugin  "Imageshack"
kipi.plugins: Plugin_Vkontakte plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_vkontakteui.rc"
kipi.library: Loaded plugin  "VKontakte"
kipi.plugins: Plugin_JAlbum plugin loaded
kipi.plugins: Reading jAlbum data from kipirc file..
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_jalbumui.rc"
kipi.library: Loaded plugin  "JAlbum"
kipi.plugins: Plugin_Dropbox Plugin Loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_dropboxui.rc"
kipi.library: Loaded plugin  "Dropbox"
kipi.plugins: Plugin_GoogleServices Plugin Loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_sendimagesui.rc"
kipi.library: Loaded plugin  "SendImages"
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
kipi.plugins: Plugin_RemoteStorage plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_remotestorageui.rc"
kipi.library: Loaded plugin  "RemoteStorage"
kipi.plugins: Plugin_Smug plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_smugui.rc"
kipi.library: Loaded plugin  "Smug"
kipi.plugins: Plugin_Rajce plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_rajceui.rc"
kipi.library: Loaded plugin  "Rajce"
kipi.plugins: Reading data from kipirc file..
digikam.geoiface: ----
digikam.general: Stacked View Mode :  2
digikam.geoiface: "setting backend marble"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
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"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: scan mode: ScanDeferredFiles
digikam.general: total scan value :  5
digikam.database: items to tag ()
digikam.database: Complete scan took: 11 msecs.
digikam.general: Event is dispatched to desktop notifier through DBUS
^C
[tmpusr@sir ~]$ digikam 
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/mnt/disco_d/picture/digikam4.db"
   DB Thumbs Name:           "/mnt/disco_d/picture/thumbnails-digikam.db"
   DB Face Name:             "/mnt/disco_d/picture/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 "/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  "/picture"  uuid  "volumeid:?uuid=eecebd58cebd19b3"
digikam.database: location for  "/mnt/disco_d/picture"  is available  true
KMemoryInfo: Platform identified :  "LINUX"
KMemoryInfo: TotalRam:  8356839424
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.dimg: ("/usr/share/color/icc")
digikam.general: Does not contain  "Comment"  Namespace
digikam.metaengine: Loading default values ++++++++++++++++
digikam.dimg: No X.org XICC profile installed for screen  0
digikam.general: Camera XML data:  "/home/tmpusr/.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
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
digikam.geoiface: "setting backend marble"
QtAV 1.12.0(Jun 21 2017, 14:33:46)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin->PPTV, Shanghai, China Copyright (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
digikam.general: AudioOutput backends: ("OpenAL", "Pulse", "null")
digikam.general: Stacked View Mode :  0
digikam.geoiface: "setting backend marble"
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 :  ("/usr/share/digikam/colorschemes")
digikam.widgets: "Breeze"  ::  ""
digikam.widgets: "Breeze"  ::  ""
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/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.general: Added root album called:  "/mnt/disco_d/picture"
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: Stacked View Mode :  0
digikam.geoiface: "ROADMAP"
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.general: One job is done
digikam.general: Data From DBJobsThread is null:  true
digikam.general: Cancel Main Thread
digikam.general: One job is done
kipi.plugins: Plugin_PrintImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_printimagesui.rc"
kipi.library: Loaded plugin  "PrintImages"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_kmlexportui.rc"
kipi.library: Loaded plugin  "KMLExport"
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
kipi.plugins: Plugin_MediaWiki plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_wikimediaui.rc"
kipi.library: Loaded plugin  "MediaWiki export"
kipi.plugins: Plugin_Piwigo plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_piwigoui.rc"
kipi.library: Loaded plugin  "Piwigo"
kipi.plugins: Plugin_Facebook plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_facebookui.rc"
kipi.library: Loaded plugin  "Facebook"
kipi.plugins: Plugin_Imageshack plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_imageshackui.rc"
kipi.library: Loaded plugin  "Imageshack"
kipi.plugins: Plugin_Vkontakte plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_vkontakteui.rc"
kipi.library: Loaded plugin  "VKontakte"
kipi.plugins: Plugin_JAlbum plugin loaded
kipi.plugins: Reading jAlbum data from kipirc file..
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_jalbumui.rc"
kipi.library: Loaded plugin  "JAlbum"
kipi.plugins: Plugin_Dropbox Plugin Loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_dropboxui.rc"
kipi.library: Loaded plugin  "Dropbox"
kipi.plugins: Plugin_GoogleServices Plugin Loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_sendimagesui.rc"
kipi.library: Loaded plugin  "SendImages"
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
kipi.plugins: Plugin_RemoteStorage plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_remotestorageui.rc"
kipi.library: Loaded plugin  "RemoteStorage"
kipi.plugins: Plugin_Smug plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_smugui.rc"
kipi.library: Loaded plugin  "Smug"
kipi.plugins: Plugin_Rajce plugin loaded
kipi.library: UI file : "/usr/share/kxmlgui5/kipi/kipiplugin_rajceui.rc"
kipi.library: Loaded plugin  "Rajce"
kipi.plugins: Reading data from kipirc file..
digikam.geoiface: ----
digikam.general: Stacked View Mode :  2
digikam.geoiface: "setting backend marble"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
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"
QFSFileEngine::open: No file name specified
digikam.geoiface: "ROADMAP"
digikam.geoiface: "ROADMAP"
digikam.geoiface: ----
digikam.general: scan mode: ScanDeferredFiles
digikam.general: total scan value :  5
digikam.database: items to tag ()
digikam.database: Complete scan took: 3 msecs.
digikam.general: Event is dispatched to desktop notifier through DBUS
Comment 18 Maik Qualmann 2017-07-10 19:50:29 UTC
I understand it correctly, new account and only 2 images? Very strange. Can you use gdb and look where digikam is after Ctrl-c? Possibly several attempts. The output of the console is ok.

Maik
Comment 19 nvlplx 2017-07-11 19:54:13 UTC
The situation is quite similar with mine, described on DK user mailing list ("memory leak : valgrind backtrace", from Paulux). 
If it's related, gdb should show nothing. 

On my system, downgrading qtAV to version 1.11 fixed the problem (workaround).
Comment 20 caulier.gilles 2017-07-11 19:57:20 UTC
QtAV is to handle video files. Do you have any video in your collection while scanning which can explain why downgrading QtAv can fix the problem ?
Comment 21 giggi1999 2017-07-11 20:35:17 UTC
I've installed digikam on a different PC (with ArchLinux) and it works.
The problems seems related to my installation.

So I must rebuild digikam in debug mode, and I'll do the same job with 
> gdb digikam

?
Comment 22 giggi1999 2017-07-11 20:39:09 UTC
(In reply to caulier.gilles from comment #20)
> QtAV is to handle video files. Do you have any video in your collection
> while scanning which can explain why downgrading QtAv can fix the problem ?

Yes I've a pair of MOV videos.
Comment 23 caulier.gilles 2017-07-11 20:50:08 UTC
And if you scan a collection without video files, the problem is not reproducible ?

Gilles Caulier
Comment 24 giggi1999 2017-07-11 21:02:09 UTC
(In reply to nvlplx from comment #19)
> The situation is quite similar with mine, described on DK user mailing list
> ("memory leak : valgrind backtrace", from Paulux). 
> If it's related, gdb should show nothing. 
> 
> On my system, downgrading qtAV to version 1.11 fixed the problem
> (workaround).

I confirm!
I've downgraded to qtAV 1.11 (from 1.12) and digikam is still working.
Comment 25 caulier.gilles 2017-07-11 21:05:42 UTC
When you downgrade qtav, ffmpeg packages are also downgraded or it still the same for both QtAV versions ?
Comment 26 giggi1999 2017-07-12 05:32:35 UTC
(In reply to caulier.gilles from comment #25)
> When you downgrade qtav, ffmpeg packages are also downgraded or it still the
> same for both QtAV versions ?

ffmpeg is the same (ffmpeg 1:3.3.2-1).
Comment 27 caulier.gilles 2017-07-12 06:20:09 UTC
Ok, now we will investiguate the memory leak with valgrind. Start digiKam from a console like this :

valgrind --tool=memcheck --leak-check=full --error-limit=no digikam

This will run DK in Valgrind which will catch the memory corruptions. This slow down digiKam.

Just report here all the trace from the console until the end of digiKam session.

Gilles Caulier
Comment 28 nvlplx 2017-07-13 19:08:20 UTC
Here are some extracts of valgrind outputs.
I don't have more, because I've not reinstalled qtAV 1.12, sorry for that. 

[...]
==1397== 576 bytes in 1 blocks are possibly lost in loss record 46,312 of 49,097
==1397==    at 0x4C2DF05: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1397==    by 0x40119F1: allocate_dtv (in /usr/lib/ld-2.25.so)
==1397==    by 0x401236D: _dl_allocate_tls (in /usr/lib/ld-2.25.so)
==1397==    by 0xE333DC9: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.25.so)
==1397==    by 0x879B875: QThread::start(QThread::Priority) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x1232DC22: QtAV::VideoFrameExtractor::VideoFrameExtractor(QObject*) (in /usr/lib/libQtAV.so.1.12.0)
==1397==    by 0x5EF8824: Digikam::VideoThumbnailer::VideoThumbnailer(QObject*) (in /usr/lib/libdigikamcore.so.5.6.0)
==1397==    by 0x5EF9DE4: Digikam::VideoThumbnailerJob::VideoThumbnailerJob(QObject*) (in /usr/lib/libdigikamcore.so.5.6.0)
==1397==    by 0x5EEAA06: Digikam::ThumbnailLoadThread::ThumbnailLoadThread(QObject*) (in /usr/lib/libdigikamcore.so.5.6.0)
==1397==    by 0x55A2A3D: ??? (in /usr/lib/libdigikamgui.so.5.6.0)
==1397==    by 0x559C53D: ??? (in /usr/lib/libdigikamgui.so.5.6.0)
==1397==    by 0x5106204: ??? (in /usr/lib/libdigikamgui.so.5.6.0)
==1397==  
==1397== 576 bytes in 1 blocks are possibly lost in loss record 46,313 of 49,097
==1397==    at 0x4C2DF05: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1397==    by 0x40119F1: allocate_dtv (in /usr/lib/ld-2.25.so)
==1397==    by 0x401236D: _dl_allocate_tls (in /usr/lib/ld-2.25.so)
==1397==    by 0xE333DC9: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.25.so)
==1397==    by 0x879B875: QThread::start(QThread::Priority) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x13B696B5: QNetworkConfigurationManagerPrivate::initialize() (in /usr/lib/libQt5Network.so.5.9.1)
==1397==    by 0x13B638EC: qNetworkConfigurationManagerPrivate() (in /usr/lib/libQt5Network.so.5.9.1)
==1397==    by 0x13B63986: QNetworkConfigurationManager::QNetworkConfigurationManager(QObject*) (in /usr/lib/libQt5Network.so.5.9.1)
==1397==    by 0x174C1FA4: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A9241: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)

[...]
==1397== 2,304 bytes in 4 blocks are possibly lost in loss record 48,185 of 49,097
==1397==    at 0x4C2DF05: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1397==    by 0x40119F1: allocate_dtv (in /usr/lib/ld-2.25.so)
==1397==    by 0x401236D: _dl_allocate_tls (in /usr/lib/ld-2.25.so)
==1397==    by 0xE333DC9: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.25.so)
==1397==    by 0x450FFF4B: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x451003BC: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x454719F3: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x4552B57E: amdgpu_winsys_create (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x44E50EDE: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x4517FEE9: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x4517BC1F: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==1397==    by 0x43B77FA4: ??? (in /usr/lib/libGLX_mesa.so.0.0.0)

[...]
==1397== 4,360 bytes in 1 blocks are possibly lost in loss record 48,482 of 49,097
==1397==    at 0x4C2BEEF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1397==    by 0x27BA3F90: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BA3502: sqlite3Malloc (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BB1A53: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BB22C5: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BAC9FF: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27B41A26: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27B46A49: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27B48410: sqlite3BtreeMovetoUnpacked (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BD604D: sqlite3VdbeExec (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BD7F9E: sqlite3_step (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x5019375C: ??? (in /usr/lib/qt/plugins/sqldrivers/libqsqlite.so)
==1397==  
==1397== 4,360 bytes in 1 blocks are possibly lost in loss record 48,483 of 49,097
==1397==    at 0x4C2BEEF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1397==    by 0x27BA3F90: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BA3502: sqlite3Malloc (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BB1A53: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BB22C5: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BAC9FF: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27B41A26: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27B48BB5: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27B486D6: sqlite3BtreeMovetoUnpacked (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BD92FD: ??? (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BD24AE: sqlite3VdbeExec (in /usr/lib/libsqlite3.so.0.8.6)
==1397==    by 0x27BD7F9E: sqlite3_step (in /usr/lib/libsqlite3.so.0.8.6)


[...]
==1397== Use of uninitialised value of size 8
==1397==    at 0x16399805: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x8979A27: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==  
==1397== Conditional jump or move depends on uninitialised value(s)
==1397==    at 0x1639980C: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x8979A27: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==  
==1397== Conditional jump or move depends on uninitialised value(s)
==1397==    at 0x1639989B: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x8979A27: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==  
==1397== Use of uninitialised value of size 8
==1397==    at 0x1612C383: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399290: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==  
==1397== Conditional jump or move depends on uninitialised value(s)
==1397==    at 0x1612C389: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399290: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==  
==1397== Use of uninitialised value of size 8
==1397==    at 0x1612C3D8: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399290: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==  
==1397== Conditional jump or move depends on uninitialised value(s)
==1397==    at 0x1612C3DE: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399290: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==1397==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==1397==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==1397== 

[...]

==13178== Use of uninitialised value of size 8
==13178==    at 0x1612C383: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x16399290: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==13178==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==13178==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==13178==  Uninitialised value was created by a stack allocation
==13178==    at 0x4051A2: ??? (in /usr/bin/digikam)
==13178==  
==13178== Conditional jump or move depends on uninitialised value(s)
==13178==    at 0x1612C389: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x16399290: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x16399B9A: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1612DBCA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1610F5AC: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x161291DA: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x161295E3: JSC::Heap::collect(JSC::HeapOperation) (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1639C080: JSC::GCActivityCallback::doWork() (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x1639D050: ??? (in /usr/lib/libQt5WebKit.so.5.212.0)
==13178==    by 0x89A91FA: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==13178==    by 0x788746B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==13178==    by 0x788ECF3: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.9.1)
==13178==  Uninitialised value was created by a stack allocation
==13178==    at 0x4051A2: ??? (in /usr/bin/digikam)
Comment 29 giggi1999 2017-07-15 09:27:52 UTC
A pair of logs from valgrind
The second one is incomplete.


> valgrind --tool=memcheck --leak-check=full --error-limit=no  digikam

https://pastebin.com/JwvwiNd3

-------------------------------------------------------------------
-------------------------------------------------------------------


> valgrind --tool=memcheck --leak-check=full --error-limit=no --show-leak-kinds=all digikam

https://pastebin.com/q88sw263
Comment 30 caulier.gilles 2017-07-15 10:11:47 UTC
2,874,814 bytes in 59 blocks are still reachable in loss record 42,450 of 42,454
==14781==    by 0xE57BA04: cmsOpenIOhandlerFromMem (in /usr/lib/liblcms2.so.2.0.8)
==14781==    by 0xE57D2C4: cmsOpenProfileFromMemTHR (in /usr/lib/liblcms2.so.2.0.8)
==14781==    by 0x5D19CA8: Digikam::IccProfile::open() (in /usr/lib/libdigikamcore.so.5.6.0)
==14781==    by 0x5D24328: Digikam::IccSettings::Private::scanDirectory(QString const&, QStringList const&, QList<Digikam::IccProfile>*) (in /usr/lib/libdigikamcore.so.5.6.0)
==14781==
==14781== 2,876,289 bytes in 59 blocks are still reachable in loss record 42,451 of 42,454
==14781==    by 0x87AF923: QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) (in /usr/lib/libQt5Core.so.5.9.1)
==14781==    by 0x87B23C3: QByteArray::resize(int) (in /usr/lib/libQt5Core.so.5.9.1)
==14781==    by 0x88B410D: QIODevice::readAll() (in /usr/lib/libQt5Core.so.5.9.1)
==14781==    by 0x5D1970F: Digikam::IccProfile::data() (in /usr/lib/libdigikamcore.so.5.6.0)
==14781==    by 0x5D19BAF: Digikam::IccProfile::open() (in /usr/lib/libdigikamcore.so.5.6.0)

This happen when digiKAm scan ICC color profiles from your system. Typically, you have the color management turned on.

Turn off CM and try again. Perhaps you have corrupted ICC color profile on your system.

Gilles Caulier
Comment 31 giggi1999 2017-07-15 11:01:52 UTC
How do you turn off the ICC color profile?
Comment 32 caulier.gilles 2017-07-15 12:38:05 UTC
Go to DK setup/color-management and turn off the first option on top of the page.

Gilles Caulier
Comment 33 giggi1999 2017-07-15 14:58:45 UTC
(In reply to caulier.gilles from comment #32)
> Go to DK setup/color-management and turn off the first option on top of the
> page.
> 
> Gilles Caulier

That's the result.
https://pastebin.com/kH7hx05K
Comment 34 giggi1999 2017-07-15 15:01:36 UTC
(In reply to caulier.gilles from comment #32)
> Go to DK setup/color-management and turn off the first option on top of the
> page.
> 
> Gilles Caulier

The problem has not been solved (with qtav 1.12)
Comment 35 caulier.gilles 2017-07-15 15:09:56 UTC
You have a huge memory link about your NVidia video driver :

282,927 bytes in 1 blocks are possibly lost in loss record 47,954 of 47,969
==24333==    at 0x4C2DF55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24333==    by 0x43F4DE92: ??? (in /usr/lib/libGLX_nvidia.so.381.22)
==24333==    by 0x454783A0: ??? (in /usr/lib/libnvidia-glcore.so.381.22)

It's about OpenGL layer used... everywhere, as QtAV, OpenCV, Qt...

This is why it's not only relevant of on part of digiKam. The leak is everywhere.

My tips to confirm :

- Create a VM with virtual box, and install a secondary system inside.
- install digiKam in this VM.
- run and check memory (here is work perfectly)

The VM will emulate OpenGL with an additional layer which will not use the Nvidia driver directly.

About the original problem, you nivia package from your Linux has a serious problem. I use also at work exclusively the NVidia cards for the Linux box (nothing about DK), and i already seen this kind of problem. Updating the driver or fixing the OpenGL settings can be a solution. There is a huge Nvidia control panel to tune all the configurations.

Gilles Caulier
Comment 36 caulier.gilles 2017-07-28 04:42:04 UTC
Any feedback here ?

Gilles Caulier
Comment 37 giggi1999 2017-07-29 09:29:25 UTC
(In reply to caulier.gilles from comment #36)
> Any feedback here ?
> 
> Gilles Caulier

Digikam works again, I've done nothing.
Probably it was a problem with an external lib.
Comment 38 Maik Qualmann 2017-12-17 19:49:33 UTC
Git commit 6a9fd9891a3ff341dc42fe36158cbf0101d513b6 by Maik Qualmann.
Committed on 17/12/2017 at 19:20.
Pushed by mqualmann into branch 'master'.

delete threads from memory when they are finished
Related: bug 375317, bug 375035, bug 321784, bug 325712, bug 328732, bug 330227, bug 331912, bug 344661, bug 345395, bug 350549, bug 338249, bug 329651, bug 329091, bug 387821, bug 381222

M  +2    -1    NEWS
M  +25   -0    libs/database/dbjobs/dbjobsmanager.cpp
M  +35   -0    libs/iojobs/iojobsmanager.cpp

https://commits.kde.org/digikam/6a9fd9891a3ff341dc42fe36158cbf0101d513b6
Comment 39 caulier.gilles 2017-12-17 20:02:52 UTC
Following this commit:

https://commits.kde.org/digikam/6a9fd9891a3ff341dc42fe36158cbf0101d513b6

... the approach to fix this problem is under way and new digiKam 5.8.0 pre-release bundles will be compiled tonight to lets a chance to end-users to give a feedback about this fix before the 5.8.0 official release planed before Christmas 2017.

The bundles will be available in 2 hours at this url:

https://files.kde.org/digikam/

Please do not waste time to test if this file is always valid for next 5.8.0.

Thanks in advance

Gilles Caulier