Bug 377039 - Network Collections cause hang on "Reading Database"
Summary: Network Collections cause hang on "Reading Database"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Media (show other bugs)
Version: 5.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-28 23:17 UTC by Andrew
Modified: 2017-07-26 04:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.5.0


Attachments
OSX Crash Log after Force Quite (968.96 KB, text/plain)
2017-03-01 14:46 UTC, Andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew 2017-02-28 23:17:14 UTC
OSX 10.12.3 (and previous versions also)
Occurs on Digikam 5.4.0, and 5.3.0, and several previous versions. Installed via the .pkg files on the digikam site.  
External localhost MySQL (5.7.9) on a SSD, tuned properly for the hardware. 
Network drives on ubuntu via NetATalk. 
~200,000 images on several network shares.

Digikam appears to hang on "Reading Database" on the splash screen when network collections are present and the drives are mounted. If you wait long enough, it will usually eventually start up (>30 minutes). Sometimes forcing quit and trying again results in a start up in only 4 or 5 minutes. 

If I start digikam with the network drives unmounted, it starts in less than 20 seconds but then I can't access any of the files on the network collections only the local ~50k images. The network images remain unavailable even if I mount the remote drives. . 

The hang/slow start gets worse as the size of the remote collections gets larger so I'm guessing digikam is doing something on those drives for each image file?!? In any case, mysql shows no queries running and the slow query log shows nothing for digikam.

Once digikam starts, everything works normally. 

This problem has been getting studly worse as my collections get bigger and as I add network collections for various reasons. 

2 issues/questions: 

1) Why doesn't digikam see that the files are available if the drives are mounted after digikam starts? Why does this require a restart of digikam (which hangs for 30+ minutes). A simple "stat" call will show the image file or collection root is present and available after startup, but maybe it is harder than that (i.e. scan for changes might need to run?). Am I missing some menu item to make it see the connected network drives? 

2) Is there a way to fix the hang/slow start? What can I do to help you figure out the issue? As noted, mysql does not appear to be doing anything during the hang, and the collections exist whether the drives are mounted or not so the DB is the same.
Comment 1 Mario Frank 2017-03-01 07:09:16 UTC
Hey Andrew,

I think I'think would help if you provide us the log written during start of digiKam. If you run digiKam from console, the log is written to stdout. There are many possible reasons. So we need some log.

Cheers, 
Mario
Comment 2 Andrew 2017-03-01 14:21:25 UTC
This version appears to be silent on the command line but maybe I'm doing something wrong. Here is how I'm starting it. Please advise if I should use a different method:

io:digiKam afritz$ pwd
/Applications/digiKam
io:digiKam afritz$ digikam.app/Contents/MacOS/applet 
io:digiKam afritz$ 

The pkg downloaded with the link from the digikam site to kde.org's repository: https://download.kde.org/stable/digikam/
Comment 3 Andrew 2017-03-01 14:22:58 UTC
The above results in the digikam starting as if I had clicked on the app icon, bringing up the splash screen and hanging the same. No output is ever produced on the command line from the pkg based install that I can tell.
Comment 4 Andrew 2017-03-01 14:46:33 UTC
Created attachment 104298 [details]
OSX Crash Log after Force Quite

I'm not sure if this is helpful, but here is OSX crash log (thread info, etc) that is produced after a force quite.
Comment 5 caulier.gilles 2017-03-01 14:51:03 UTC
Andrew,

Please try with MacoOS 5.5.0 pre release that i compiled yesterday evening with current implementation. We have 90 bug fixes closed since 5.4.0.

Gilles Caulier
Comment 6 caulier.gilles 2017-03-01 15:00:20 UTC
link to 5.5.0 PKG :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM
Comment 7 Andrew 2017-03-01 15:17:39 UTC
5.5.0 installed. I started it several times. Each time it started in about 1 or 2 minutes, which is much better than the indeterminate time of 5.4.0 and before. 

Quitting digikam seems to leave it hung though. The main window disappears and the menus are no longer accessible but the icon still shows it is running and you have to force quite to actually stop it. This is much better than it never starting... 

Is there a way to get the PKG version to give a log?
Comment 8 caulier.gilles 2017-03-01 16:06:50 UTC
Under OSX, digiKam executable is installed at /opt/digikam/Applications/digiKam/digikam.app/Contents/MacOS/digikam
and can be started directly from the console to see debug traces.

Here, it work under Sierra.

Gilles Caulier
Comment 9 caulier.gilles 2017-03-01 16:19:41 UTC
Oups sorry wring patch to executable. Look below :

/opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam

MacBook-Pro-de-Gilles:MacOS gilles$ /opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam 
AudioResampler::Register(..., FFmpeg)
Singleton 0x7ff9af45bde0 created...
AudioResampler::Register(..., Libav)
AudioOutputBackend::Register(..., AudioToolbox)
Singleton 0x7ff9af45bef0 created...
AudioOutputBackend::Register(..., OpenAL)
VideoDecoder::Register(..., CUDA)
Singleton 0x7ff9af45c000 created...
VideoDecoder::Register(..., VideoToolbox)
VideoRenderer::Register(..., OpenGLWindow)
Singleton 0x7ff9af45c460 created...
SubtitleProcessor::Register(..., LibASS)
Singleton 0x7ff9af45c510 created...
SubtitleProcessor::Register(..., FFmpeg)
AudioDecoder::Register(..., FFmpeg)
Singleton 0x7ff9af45c7c0 created...
AudioEncoder::Register(..., FFmpeg)
Singleton 0x7ff9af45c840 created...
ImageConverter::Register(..., FFmpeg)
Singleton 0x7ff9af45c8f0 created...
MediaIO::Register(..., QIODevice)
Singleton 0x7ff9af45cb00 created...
MediaIO::Register(..., QFile)
AudioOutputBackend::Register(..., null)
VideoDecoder::Register(..., FFmpeg)
VideoEncoder::Register(..., FFmpeg)
Singleton 0x7ff9af45cca0 created...
registerRenderers...........
VideoRenderer::Register(..., OpenGLWidget)
VideoRenderer::Register(..., QGLWidget2)
VideoRenderer::Register(..., Widget)
VideoRenderer::Register(..., GraphicsItem)
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QSQLITE"
   DB Core Name:             "/Users/gilles/Pictures/digikam4.db"
   DB Thumbs Name:           "/Users/gilles/Pictures/thumbnails-digikam.db"
   DB Face Name:             "/Users/gilles/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 "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//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  "/"  uuid  "volumeid:?path=/Users/gilles/Pictures/Photos"
digikam.database: location for  "/Users/gilles/Pictures/Photos"  is available  true
KMemoryInfo: Platform identified :  "Unknown"
KMemoryInfo: TotalRam:  -1
digikam.general: Allowing a cache size of 60 MB
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: Thumbs database: have a structure version  "3"
digikam.general: Thumbnails database ready for use
digikam.general: Switch to widget style:  "Fusion"
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
digikam.dimg: ("/System/Library/ColorSync/Profiles", "/Library/ColorSync/Profiles")
digikam.dimg: The original Adobe RGB (1998) profile has been found at "/System/Library/ColorSync/Profiles/AdobeRGB1998.icc"
digikam.general: Camera XML data:  "/Users/gilles/Library/Application Support/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"
AudioOutputBackend::id("AudioToolbox")
digikam.general: AudioOutput backends: ("AudioToolbox", "OpenAL", "null")
digikam.general: Stacked View Mode :  0
digikam.geoiface: "setting backend marble"
digikam.general: "browse_album"
digikam.general: "browse_tag"
digikam.general: "browse_labels"
digikam.general: "browse_date"
digikam.general: "browse_timeline"
digikam.general: "browse_search"
digikam.general: "browse_fuzzysearch"
digikam.general: "browse_gpssearch"
digikam.general: "browse_people"
digikam.widgets: Paths to color scheme :  ("/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/colorschemes")
digikam.widgets: ""  ::  ""
digikam.widgets: "Black Body"  ::  "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/colorschemes/blackbody.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//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:  "Photos"
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.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.general: changing to SAlbum  0x7ff9b5733650
digikam.database: " ( (  (Albums.relativePath LIKE ?) OR (Images.name LIKE ?) OR (Images.id IN    (SELECT imageid FROM ImageTags     WHERE tagid IN    (SELECT id FROM Tags WHERE name LIKE ?))) OR (Albums.caption LIKE ?) OR (Albums.collection LIKE ?) OR (Images.id IN  (SELECT imageid FROM ImageComments   WHERE type=? AND comment LIKE ?)) OR (Images.id IN  (SELECT imageid FROM ImageComments   WHERE type=? AND comment LIKE ?))  ) ) "
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 (  ( (  (Albums.relativePath LIKE ?) OR (Images.name LIKE ?) OR (Images.id IN    (SELECT imageid FROM ImageTags     WHERE tagid IN    (SELECT id FROM Tags WHERE name LIKE ?))) OR (Albums.caption LIKE ?) OR (Albums.collection LIKE ?) OR (Images.id IN  (SELECT imageid FROM ImageComments   WHERE type=? AND comment LIKE ?)) OR (Images.id IN  (SELECT imageid FROM ImageComments   WHERE type=? AND comment LIKE ?))  ) )  );" 
 (QVariant(QString, "%mkv%"), QVariant(QString, "%mkv%"), QVariant(QString, "%mkv%"), QVariant(QString, "%mkv%"), QVariant(QString, "%mkv%"), QVariant(int, 1), QVariant(QString, "%mkv%"), QVariant(int, 3), QVariant(QString, "%mkv%"))
digikam.geoiface: "ROADMAP"
digikam.database: Search result: 14
digikam.geoiface: "setting backend googlemaps"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
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: ----
kipi.plugins: Plugin_YandexFotki plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_yandexfotkiui.rc"
kipi.library: Loaded plugin  "YandexFotki"
kipi.plugins: Plugin_GoogleServices Plugin Loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_googleservicesui.rc"
kipi.library: Loaded plugin  "Google Services"
kipi.plugins: Plugin_Rajce plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_rajceui.rc"
kipi.library: Loaded plugin  "Rajce"
kipi.plugins: Plugin_Smug plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_smugui.rc"
kipi.library: Loaded plugin  "Smug"
kipi.plugins: Plugin_Flickr plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_flickrui.rc"
kipi.library: Loaded plugin  "Flickr"
kipi.plugins: Plugin_Facebook plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_facebookui.rc"
kipi.library: Loaded plugin  "Facebook"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_sendimagesui.rc"
kipi.library: Loaded plugin  "SendImages"
kipi.plugins: Plugin_Imageshack plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_imageshackui.rc"
kipi.library: Loaded plugin  "Imageshack"
kipi.plugins: Plugin_MediaWiki plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_wikimediaui.rc"
kipi.library: Loaded plugin  "MediaWiki export"
kipi.plugins: Imgur plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_imgurui.rc"
kipi.library: Loaded plugin  "Imgur"
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_flashexportui.rc"
kipi.library: Loaded plugin  "FlashExport"
kipi.plugins: Plugin_SendImages plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_kmlexportui.rc"
kipi.library: Loaded plugin  "KMLExport"
kipi.plugins: Plugin_JAlbum plugin loaded
kipi.plugins: Reading jAlbum data from kipirc file..
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_jalbumui.rc"
kipi.library: Loaded plugin  "JAlbum"
kipi.plugins: Plugin_Piwigo plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_piwigoui.rc"
kipi.library: Loaded plugin  "Piwigo"
kipi.plugins: Plugin_PrintImages plugin loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_printimagesui.rc"
kipi.library: Loaded plugin  "PrintImages"
kipi.plugins: Plugin_Dropbox Plugin Loaded
kipi.library: UI file : "/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//kxmlgui5/kipi/kipiplugin_dropboxui.rc"
kipi.library: Loaded plugin  "Dropbox"
kipi.plugins: Reading data from kipirc file..
digikam.geoiface: ----
QFSFileEngine::open: No file name specified
digikam.geoiface: "setting backend googlemaps"
digikam.geoiface: "ROADMAP"
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
QFSFileEngine::open: No file name specified
digikam.geoiface: "setting backend marble"
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
digikam.geoiface: "ROADMAP"
digikam.general: Not active, returning without action
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: Cancel Main Thread
digikam.general: One job is done
digikam.general: scan mode: ScanDeferredFiles
digikam.general: total scan value :  4381
digikam.database: items to tag ()
digikam.database: Complete scan took: 725 msecs.
digikam.general: Event is dispatched to OSX desktop notifier
Comment 10 Andrew 2017-03-01 16:27:35 UTC
io:Desktop afritz$ /opt/digikam/Applications/digiKam/digikam.app/Contents/MacOS/digikam
-bash: /opt/digikam/Applications/digiKam/digikam.app/Contents/MacOS/digikam: No such file or directory


However, /opt/digikam/Applications/digiKam/digikam.app/Contents/MacOS/applet exists, but does not produce any output. It just starts digikam. 

It looks like the .pkg installer version doesn't include that executable, just the applet version which is silent. 

io:digiKam afritz$ pwd
/opt/digikam/Applications/digiKam
io:digiKam afritz$ find ./
./
.//digikam.app
.//digikam.app/Contents
.//digikam.app/Contents/Info.plist
.//digikam.app/Contents/MacOS
.//digikam.app/Contents/MacOS/applet
.//digikam.app/Contents/PkgInfo
.//digikam.app/Contents/Resources
.//digikam.app/Contents/Resources/applet.icns
.//digikam.app/Contents/Resources/applet.rsrc
.//digikam.app/Contents/Resources/Scripts
.//digikam.app/Contents/Resources/Scripts/main.scpt
.//showfoto.app
.//showfoto.app/Contents
.//showfoto.app/Contents/Info.plist
.//showfoto.app/Contents/MacOS
.//showfoto.app/Contents/MacOS/applet
.//showfoto.app/Contents/PkgInfo
.//showfoto.app/Contents/Resources
.//showfoto.app/Contents/Resources/applet.icns
.//showfoto.app/Contents/Resources/applet.rsrc
.//showfoto.app/Contents/Resources/Scripts
.//showfoto.app/Contents/Resources/Scripts/main.scpt
Comment 11 caulier.gilles 2017-03-01 16:30:55 UTC
My trace come from installer...

Look well the path :

/opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam

Gilles Caulier
Comment 12 Andrew 2017-03-01 16:33:17 UTC
This works: 

/opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam 

Log coming in a minute. 

Log coming in a second. However, 5.5.0 stars right (after about 10 starts, it has always started in under 2 minutes which is acceptable). 


io:digikam afritz$ pwd
/opt/digikam
io:digikam afritz$ .//Applications/KF5/digikam.app/Contents/MacOS/digikam
AudioResampler::Register(..., FFmpeg)
Singleton 0x7f808545bdc0 created...
AudioResampler::Register(..., Libav)
AudioOutputBackend::Register(..., AudioToolbox)
Singleton 0x7f808545bed0 created...
AudioOutputBackend::Register(..., OpenAL)
VideoDecoder::Register(..., CUDA)
Singleton 0x7f808545bfe0 created...
VideoDecoder::Register(..., VideoToolbox)
VideoRenderer::Register(..., OpenGLWindow)
Singleton 0x7f808545c440 created...
SubtitleProcessor::Register(..., LibASS)
Singleton 0x7f808545c4f0 created...
SubtitleProcessor::Register(..., FFmpeg)
AudioDecoder::Register(..., FFmpeg)
Singleton 0x7f808545c7a0 created...
AudioEncoder::Register(..., FFmpeg)
Singleton 0x7f808545c820 created...
ImageConverter::Register(..., FFmpeg)
Singleton 0x7f808545c8d0 created...
MediaIO::Register(..., QIODevice)
Singleton 0x7f808545cae0 created...
MediaIO::Register(..., QFile)
AudioOutputBackend::Register(..., null)
VideoDecoder::Register(..., FFmpeg)
VideoEncoder::Register(..., FFmpeg)
Singleton 0x7f808545cc80 created...
registerRenderers...........
VideoRenderer::Register(..., OpenGLWidget)
VideoRenderer::Register(..., QGLWidget2)
VideoRenderer::Register(..., Widget)
VideoRenderer::Register(..., GraphicsItem)
digikam.widgets: Breeze icons ressource file found
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type:                     "QMYSQL"
   DB Core Name:             "digikam_main"
   DB Thumbs Name:           "digikam_thumb"
   DB Face Name:             "digikam_face"
   Connect Options:          ""
   Host Name:                "127.0.0.1"
   Host port:                3306
   Internal Server:          false
   Internal Server Path:     ""
   Internal Server Serv Cmd: ""
   Internal Server Init Cmd: ""
   Username:                 "digikam"
   Password:                 "XXXXXXXX"

digikam.dbengine: Loading SQL code from config file "/opt/digikam//Applications/KF5/digikam.app/Contents/Resources//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  "/"  uuid  "volumeid:?path=/Users/afritz/Master Portfolio"
digikam.database: Creating new Location  "/"  uuid  "networkshareid:?mountpath=/Volumes/Home Directory/Documents/SWork/Master Portfolio"
digikam.database: Creating new Location  "/"  uuid  "networkshareid:?mountpath=/Volumes/Home Directory/Desktop/Syndicate"
digikam.database: Creating new Location  "/"  uuid  "volumeid:?path=/Users/afritz/Desktop/Syndicate"
digikam.database: Creating new Location  "/"  uuid  "networkshareid:?mountpath=/Volumes/Misc External Drive/CommercialWork"
digikam.database: Creating new Location  "/"  uuid  "volumeid:?path=/Users/afritz/Desktop/AzulOx Working Commercial"
digikam.database: Creating new Location  "/"  uuid  "networkshareid:?mountpath=/Volumes/Home Directory/Documents/SWork/Photography/Image Licenses"
digikam.database: Creating new Location  "/"  uuid  "volumeid:?path=/Users/afritz/Desktop/Video Projects"
digikam.database: Creating new Location  "/"  uuid  "volumeid:?path=/Volumes/AulOxSSD4"
digikam.database: Creating new Location  "/"  uuid  "networkshareid:?mountpath=/Volumes/Josh's Archive/JoshArchive"
digikam.database: location for  "/Users/afritz/Master Portfolio"  is available  true
digikam.database: location for  "/Volumes/Home Directory/Documents/SWork/Master Portfolio"  is available  true
digikam.database: location for  "/Volumes/Home Directory/Desktop/Syndicate"  is available  true
digikam.database: location for  "/Users/afritz/Desktop/Syndicate"  is available  true
digikam.database: location for  "/Volumes/Misc External Drive/CommercialWork"  is available  false
digikam.database: location for  "/Users/afritz/Desktop/AzulOx Working Commercial"  is available  true
digikam.database: location for  "/Volumes/Home Directory/Documents/SWork/Photography/Image Licenses"  is available  true
digikam.database: location for  "/Users/afritz/Desktop/Video Projects"  is available  true
digikam.database: location for  "/Volumes/AulOxSSD4"  is available  true
digikam.database: location for  "/Volumes/Josh's Archive/JoshArchive"  is available  true
KMemoryInfo: Platform identified :  "Unknown"
KMemoryInfo: TotalRam:  -1
digikam.general: Allowing a cache size of 60 MB
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  0
digikam.thumbsdb: Thumbs database: have a structure version  "3"
digikam.general: Thumbnails database ready for use
digikam.general: Switch to widget style:  "Fusion"
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
digikam.dimg: ("/System/Library/ColorSync/Profiles", "/Library/ColorSync/Profiles", "/Users/afritz/Library/ColorSync/Profiles")
digikam.dimg: The original Adobe RGB (1998) profile has been found at "/System/Library/ColorSync/Profiles/AdobeRGB1998.icc"
digikam.general: Camera XML data:  "/Users/afritz/Library/Application Support/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"
AudioOutputBackend::id("AudioToolbox")
digikam.general: AudioOutput backends: ("AudioToolbox", "OpenAL", "null")
digikam.general: Stacked View Mode :  0
digikam.geoiface: "setting backend marble"
digikam.general: "browse_album"
digikam.general: "browse_tag"
digikam.general: "browse_labels"
digikam.general: "browse_date"
digikam.general: "browse_timeline"
digikam.general: "browse_search"
digikam.general: "browse_fuzzysearch"
digikam.general: "browse_gpssearch"
digikam.general: "browse_people"
digikam.widgets: Paths to color scheme :  ("/opt/digikam//Applications/KF5/digikam.app/Contents/Resources//digikam/colorschemes")
digikam.widgets: ""  ::  ""
digikam.widgets: "SunsetColor"  ::  "/opt/digikam//Applications/KF5/digikam.app/Contents/Resources//digikam/colorschemes/sunsetcolor.colors"
QFSFileEngine::open: No file name specified
digikam.dimg: Root lens database dir:  "/opt/digikam//Applications/KF5/digikam.app/Contents/Resources//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
digikam.general: add :  "Facebook 2000px"
digikam.general: add :  "Full Res"
digikam.general: add :  "Blog Post 2000px"
QFSFileEngine::open: No file name specified
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Added root album called:  "Local Master Portfolio"
digikam.general: Added root album called:  "Titan Master Portfolio"
digikam.general: Added root album called:  "Titan Syndicate"
digikam.general: Added root album called:  "Local Syndicate"
digikam.general: Added root album called:  "Temp - AzulOx Commercial Work fom Josh"
digikam.general: Added root album called:  "AzulOx Working Commercial"
digikam.general: Added root album called:  "Image Licenses"
digikam.general: Added root album called:  "Video Projects"
digikam.general: Added root album called:  "AulOxSSD4"
digikam.general: Added root album called:  "Josh's Archive"

... This is where it sits for a while. Josh's Archive is mounted and is a large (~500gb) archive. After a wait, it moves on with a few more things (4 or 5 seconds tops) then the main window pops up.
Comment 13 Andrew 2017-03-01 16:36:06 UTC
5.5.0 seems to fix the problem. 

Do you want to just mark this as solved or would you like me to go back and try starting it at the CLI in 5.4.0 to try and find the cause?
Comment 14 caulier.gilles 2017-03-01 21:41:15 UTC
No need to check 5.4.0 in this case. 5.5.0 fix it, it's perfect. A lots of changes have changed with database interface that can explain the dysfunction.

Gilles Caulier