Bug 455206 - Digikam hangs on execution on MacOS and doesn't open.
Summary: Digikam hangs on execution on MacOS and doesn't open.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 7.5.0
Platform: macOS (DMG) macOS
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-13 09:27 UTC by Sumit Madan
Modified: 2023-04-24 08:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Madan 2022-06-13 09:27:57 UTC
Digikam hangs on execution.

STEPS TO REPRODUCE
1. Execute /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam

LOGS:
###
(base) [11:23:31] user@Mac: ~ > /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam
digikam.widgets: Breeze icons resource file found
digikam.widgets: Breeze-dark icons resource file found
digikam.general: Qt standard translations removed: 0
digikam.general: Qt standard translations path: "/Applications/digiKam.org/digikam.app/Contents/Resources/translations"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qt"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtbase"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qt_help"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtdeclarative"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtquickcontrols"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtquickcontrols2"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtmultimedia"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtwebengine"
digikam.general: Loaded Qt standard translations "en_GB" from catalog "qtxmlpatterns"
digikam.general: Loaded Qt ECM translations "en" from catalog "kcoreaddons5_qt"
digikam.general: Loaded Qt ECM translations "en" from catalog "kwidgetsaddons5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kauth5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kbookmarks5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kcodecs5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kcompletion5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kconfig5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kcoreaddons5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kdbusaddons5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kde5_xml_mimetypes"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kglobalaccel5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kitemviews5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kwidgetsaddons5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "kwindowsystem5_qt"
digikam.general: Loaded Qt ECM translations "en_GB" from catalog "solid5_qt"
digikam.general: Switch to widget style:  "Fusion"
digikam.general: AlbumWatch is disabled
digikam.general: Database Parameters:
   Type:                      "QSQLITE"
   DB Core Name:              "/Users/user/Pictures/test/digikam4.db"
   DB Thumbs Name:            "/Users/user/Pictures/test/thumbnails-digikam.db"
   DB Face Name:              "/Users/user/Pictures/test/recognition.db"
   DB Similarity Name:        "/Users/user/Pictures/test/similarity.db"
   Connect Options:           ""
   Host Name:                 ""
   Host port:                 -1
   Internal Server:           false
   Internal Server Path:      ""
   Internal Server Admin Cmd: ""
   Internal Server Serv Cmd:  ""
   Internal Server Init Cmd:  ""
   Username:                  ""
   Password:                  ""

digikam.dbengine: Loading SQL code from config file "/Applications/digiKam.org/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  15
digikam.coredb: Core database: makeUpdates  15  to  15
digikam.database: Creating new Location  "/Users/user/Pictures/test"  uuid  "volumeid:?uuid=d61b5fe0-19d8-4909-a97f-5391134b92bc"
digikam.database: location for  "/Users/user/Pictures/test"  is available  true
digikam.general: KMemoryInfo: Platform identified :  "Unknown"
digikam.general: 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.similaritydb: SimilarityDb SelectSimilaritySetting val ret =  0
digikam.similaritydb: SimilarityDb SelectSimilaritySetting val ret =  0
digikam.similaritydb: Similarity database: have a structure version  "1"
digikam.similaritydb: Similarity database ready for use
digikam.database: Complete scan (file scanning deferred) took: 2 msecs.
###


SOFTWARE/OS VERSIONS
macOS: Monterey 12.4
Comment 1 Maik Qualmann 2022-06-13 09:50:52 UTC
No plugins are loaded and the message about the color profile path does not appear either. I think you haven't given digiKam all necessary permissions/rights under MacOS.

Maik
Comment 2 caulier.gilles 2022-06-13 11:03:33 UTC
Sumit,

Also please try the 7.7.0 pre-release MacOS installer available here :

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

Gilles Caulier
Comment 3 Sumit Madan 2022-06-13 12:43:32 UTC
(In reply to Maik Qualmann from comment #1)
> No plugins are loaded and the message about the color profile path does not
> appear either. I think you haven't given digiKam all necessary
> permissions/rights under MacOS.
> 
> Maik

Digikam is installed by the administrator but I'm executing it as a non-admin user. 

I tried to open digikam with the safe mode, and voilà, I could open it perfectly.

The only problem now I have is to find out what exactly is blocking digikam in the normal mode. I also have an anti-virus that comes with some "on access protection" but I couldn't find any hints in the logs whether it's blocking the app or not. But I have the feeling that it is causing these issues as in the safe mode anti-virus was not active. However, in the past digikam was working as needed, also with the same ant-virus.
Comment 4 Sumit Madan 2022-06-13 12:46:29 UTC
(In reply to caulier.gilles from comment #2)
> Sumit,
> 
> Also please try the 7.7.0 pre-release MacOS installer available here :
> 
> https://files.kde.org/digikam/
> 
> Gilles Caulier

Thanks Gilles, I think I need to inform my Administrator to update the app but also to check whether the anti-virus is causing this issue. 

Sumit
Comment 5 caulier.gilles 2022-06-13 12:51:09 UTC
Note : there is no virus as whole digiKam is cross compiled under Linux. There is no Windows computer here...
Comment 6 caulier.gilles 2023-01-08 14:30:18 UTC
I updated the list of macOS rights for the application in the document. Can you check if you have similar settings on your computer ?

https://docs.digikam.org/en/getting_started/installation.html#application-rights

Best

Gilles Caulier
Comment 7 caulier.gilles 2023-04-19 05:53:45 UTC
@Sumit Madan,

Did you seen my previous comment ?

digiKam 8.0.0 is released. This file still valid ?

Gilles Caulier
Comment 8 Sumit Madan 2023-04-24 07:23:46 UTC
(In reply to caulier.gilles from comment #7)
> @Sumit Madan,
> 
> Did you seen my previous comment ?
> 
> digiKam 8.0.0 is released. This file still valid ?
> 
> Gilles Caulier

Sorry for the late reply.

I pinned down the problem to the selection of the database. At that time, when I reported the issue, digikam was not working with SQLite database, even though the binary (sqlite3) was working properly. I've installed sqlite3 via homebrew. It might be that digikam uses it's own libraries to access SQLite. After switching to "MySQL Internal" database, digikam was working nicely.

Today I've tested digikam 7.7.0 again with both databases. No issues at all, even with SQLIte (version 3.41.2).

I currently cannot install 8.0.0 as I don't have root access on my Mac. I'll ask my IT to install it.

The issue can be closed for now. Thanks for your help, Gilles!