Bug 489310 - Digikam fails to start, freezes
Summary: Digikam fails to start, freezes
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-ConfigFiles (show other bugs)
Version: 8.3.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-27 13:33 UTC by Justin
Modified: 2024-09-17 11:53 UTC (History)
2 users (show)

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


Attachments
digikam_systemrc (30 bytes, text/plain)
2024-06-27 16:29 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2024-06-27 13:33:06 UTC
SUMMARY

After working successfully for a few days, digikam fails to start entirely. When opening the program, it appears to start and then freezes immediately.

STEPS TO REPRODUCE
1. double-click "digikam.app" in /Applications, or run /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam from the terminal

OBSERVED RESULT
digikam never opens a window, the digikam icon in the system dock bounces forever and needs to be force-quitted.

EXPECTED RESULT
Digikam opens a window and can be interacted with

SOFTWARE/OS VERSIONS
macOS: 14.1.1

ADDITIONAL INFORMATION
Terminal output:
$ QT_LOGGING_RULES="digikam*=true" /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam version
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_US" from catalog "qt"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtbase"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qt_help"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtdeclarative"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtquickcontrols"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtquickcontrols2"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtmultimedia"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtwebengine"
digikam.general: Loaded Qt standard translations "en_US" 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"
[stays here apparently forever]

Presumably this is a configuration issue of some sort, but I'm not sure what to do next to debug this/restore digikam to a working state.
Comment 1 Maik Qualmann 2024-06-27 16:29:36 UTC
Created attachment 171092 [details]
digikam_systemrc

This is the typical point where the log stops when there is a problem opening a window due to openGL. Copy the "digikam_systemrc" attached here to the root where the digikamrc file is located. It should be "~/Library/Preferences/".
Test whether digiKam starts now.

Maik
Comment 2 Justin 2024-06-27 18:06:31 UTC
(In reply to Maik Qualmann from comment #1)
> Created attachment 171092 [details]
> digikam_systemrc
> 
> This is the typical point where the log stops when there is a problem
> opening a window due to openGL. Copy the "digikam_systemrc" attached here to
> the root where the digikamrc file is located. It should be
> "~/Library/Preferences/".
> Test whether digiKam starts now.
> 
> Maik

Same behavior. The digikam_systemrc file was there, containing:

[System]
disableOpenCL=true
useHighDpiPixmaps=false
useHighDpiScaling=false

which I replaced with

[System]
softwareOpenGL=true

And then I reran :
$ QT_LOGGING_RULES="digikam*=true" /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam debug

Getting the following output:
The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
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_US" from catalog "qt"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtbase"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qt_help"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtdeclarative"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtquickcontrols"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtquickcontrols2"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtmultimedia"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtwebengine"
digikam.general: Loaded Qt standard translations "en_US" 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"

It looks like there may also be something wrong with OpenGL?
Comment 3 Maik Qualmann 2024-06-27 18:18:16 UTC
Ok, then set the entry to false, because by default it is not activated.

[System]
softwareOpenGL=false

Maik
Comment 4 Justin 2024-06-28 00:33:51 UTC
With 

[System]
softwareOpenGL=false

I get similar debug output:

$ QT_LOGGING_RULES="digikam*=true" /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam debug
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_US" from catalog "qt"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtbase"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qt_help"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtdeclarative"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtquickcontrols"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtquickcontrols2"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtmultimedia"
digikam.general: Loaded Qt standard translations "en_US" from catalog "qtwebengine"
digikam.general: Loaded Qt standard translations "en_US" 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"

Now with the absence of complaints about OpenGL.
Comment 5 caulier.gilles 2024-09-17 11:53:33 UTC
@Justin

Please try the new 8.5.0 pre-release PK installer for MacOS Silicon (arm64) available here:

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

Thanks in advance

Gilles Caulier