Bug 489310

Summary: Digikam fails to start, freezes
Product: [Applications] digikam Reporter: Justin <justinrporter>
Component: Setup-ConfigFilesAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 8.3.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: digikam_systemrc

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