Bug 463536 - Digikam 7.9 and 7.8 do not start on macOS 12.6.2
Summary: Digikam 7.9 and 7.8 do not start on macOS 12.6.2
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 7.9.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-27 22:31 UTC by xxyxxyxyx1
Modified: 2023-04-30 21:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments
macOS crash report (900.72 KB, text/plain)
2022-12-27 22:31 UTC, xxyxxyxyx1
Details
terminal debug output (3.21 KB, text/plain)
2022-12-29 20:30 UTC, xxyxxyxyx1
Details
digikam terminal output 20230122 (3.51 KB, text/plain)
2023-01-22 15:47 UTC, xxyxxyxyx1
Details
digikam terminal output 20230123 (3.61 KB, text/plain)
2023-01-23 14:24 UTC, xxyxxyxyx1
Details
digikamrc breaking (42.55 KB, text/plain)
2023-01-23 15:10 UTC, xxyxxyxyx1
Details
digikam_log20230430 (3.91 KB, text/plain)
2023-04-30 21:57 UTC, xxyxxyxyx1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xxyxxyxyx1 2022-12-27 22:31:59 UTC
Created attachment 154856 [details]
macOS crash report

SUMMARY
***
Digikam 7.9 and 7.8 cannot start on macOS 12.6.2. The loading window remains indefinitely, and macOS says the application is 'not responding.' 
***


STEPS TO REPRODUCE
1. Attempt to open digikam by any means


OBSERVED RESULT
Indefinite digikam loading window


EXPECTED RESULT
Digikam opens


SOFTWARE/OS VERSIONS
Windows: 
macOS: 12.6.2
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

I have attached the error report that is generated by macOS in the "share with apple" dialog, truncated to reach the file size limit. 
Previously, digikam was working on my system on macOS 12, but I have not used it in some months. I do not know if a minor version update to macOS or digikam occurred since digikam was working properly. 
I tried uninstalling digikam 7.9 and installing 7.8, but the problem is the same. It is not possible for me to downgrade my OS to investigate that as a cause.
Comment 1 caulier.gilles 2022-12-27 22:59:35 UTC
Here i use a Intel MacBook pro 2015 with MacOS 12.6.1 and digiKam run perfectly here. I don't yet update to last Monterey version, but i doubt that it's a problem.

Note : the PKG installer is also build on this computer...

I also versified that digiKam run on Ventura 13.1 on a macbook air M1 and all work fine using Apple Rosetta 2 translator.

Gilles Caulier
Comment 2 caulier.gilles 2022-12-27 23:00:47 UTC
Oh, i sse that your architecture is arm64: you need Rosetta 2 to run digiKam, as it compiled for Intel only for the moment.

Gilles Caulier
Comment 3 xxyxxyxyx1 2022-12-29 19:44:23 UTC
(In reply to caulier.gilles from comment #2)
> Oh, i sse that your architecture is arm64: you need Rosetta 2 to run
> digiKam, as it compiled for Intel only for the moment.
> 
> Gilles Caulier

Previously it was running fine with Rosetta 2. I do not know what could have changed that now prevents the program from starting at all.
Comment 4 Maik Qualmann 2022-12-29 20:16:18 UTC
Please create a log in the terminal, maybe we can see from the debug output why digiKam doesn't start.
Description here also for macOS:

https://www.digikam.org/contribute/

Maik
Comment 5 xxyxxyxyx1 2022-12-29 20:30:29 UTC
Created attachment 154889 [details]
terminal debug output
Comment 6 Maik Qualmann 2022-12-29 20:45:26 UTC
Ok, database initialization was done without errors. In theory, the next debug output is the search paths for the color profiles. What is the last status text in the top left of the splash screen?

Maik
Comment 7 xxyxxyxyx1 2022-12-29 21:02:59 UTC
I do not see any relevant text in the splash screen. On the top left, there is only three blue circles and no text. On the top left, there is "7.9.0".
Comment 8 Maik Qualmann 2022-12-29 21:42:19 UTC
Git commit 2c16bd8cb2b38c4044b8d6bfd49f11785eefc38a by Maik Qualmann.
Committed on 29/12/2022 at 21:41.
Pushed by mqualmann into branch 'qt5-maintenance'.

try to fix hanging splash screen on macOS

M  +3    -5    core/app/main/digikamapp.cpp

https://invent.kde.org/graphics/digikam/commit/2c16bd8cb2b38c4044b8d6bfd49f11785eefc38a
Comment 9 Maik Qualmann 2022-12-29 21:54:28 UTC
Gilles, a new digiKam-7.10.0 test bundle in the next few days would be nice.

Maik
Comment 10 caulier.gilles 2022-12-29 21:55:23 UTC
yes i will do it tomorrow morning.
Comment 11 caulier.gilles 2022-12-30 10:31:06 UTC
PKG installers for MacOS are updated online...

Gilles
Comment 12 xxyxxyxyx1 2022-12-30 23:07:26 UTC
I have tried installing this version:
digiKam-7.10.0-20221230T084822-MacOS-x86-64-debug.pkg

The behavior is not different from the released 7.9.0 version: the spashscreen displays "7.10.0" in the top right, but there is not any text in the top left. The terminal debug output is also equivalent.
Comment 13 caulier.gilles 2023-01-22 13:14:53 UTC
Hi,

I rebuild from scratch the digiKam 7.10.0 PKG with last macOS Monterrey + XCode updates. The binary compatibility is now macOS 10.15.0. So it must start on your computer. Files are available here :

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

Please test and give us a feedback

Thanks in advance

Gilles Caulier
Comment 14 caulier.gilles 2023-01-22 13:29:53 UTC
Screenshot of digiKam 7.10.0 running on macOS 12.6.2

https://i.imgur.com/VV4GNDN.png

Gilles Caulier
Comment 15 xxyxxyxyx1 2023-01-22 15:47:15 UTC
Created attachment 155504 [details]
digikam terminal output 20230122
Comment 16 xxyxxyxyx1 2023-01-22 15:48:34 UTC
Thank you for the continued help with this. 
I have installed this version:
digiKam-7.10.0-20230121T052218-MacOS-x86-64-debug.pkg

The behavior is similar. The splashscreen hangs indefinitely, and no text is displayed in the top left. The terminal error output is slightly different and I have uploaded it.
Comment 17 caulier.gilles 2023-01-22 15:58:23 UTC
Can you create a fresh test account on your computer and run digiKam from scratch with it. Just to see if the program can be initialized with nothing in collection.

Gilles Caulier
Comment 18 Maik Qualmann 2023-01-22 16:08:43 UTC
Git commit 3047438f88762a3514ab5d578d581bbb0d5b5cda by Maik Qualmann.
Committed on 22/01/2023 at 16:07.
Pushed by mqualmann into branch 'qt5-maintenance'.

this static QSplashScreen::showMessage() call is weird

M  +3    -3    core/libs/dialogs/dsplashscreen.cpp

https://invent.kde.org/graphics/digikam/commit/3047438f88762a3514ab5d578d581bbb0d5b5cda
Comment 19 Maik Qualmann 2023-01-22 16:28:28 UTC
Gilles, please create a new macOS bundle. The problem must be related to the splash screen.

Maik
Comment 20 caulier.gilles 2023-01-22 16:33:47 UTC
Well, the Q is  : why i cannot reproduce this problem ?
Comment 21 xxyxxyxyx1 2023-01-22 17:53:02 UTC
I tried opening digikam from another user account, and I immediately have the welcome setup wizard. Seems it was an issue with my particular user environment. 

The working user account is a fresh non-administrator account. My main user account, where digikam does not open, is an administrator account with a lot of installed software. Unfortunately, I am not able (organization policy) to make any additional accounts to investigate e.g. whether the admin status matters. 

If you have any suggestions of what software or customizations could be causing the problem for my main account, please let me know. Thanks.
Comment 22 caulier.gilles 2023-01-22 21:34:45 UTC
No idea. here digiKam is installed in a standard account and in admin account an there is no difference. I tried on 2 computers, on older 2015 Macbook pro intel and one Macbook Air M1.

The PKG have been recompiled today with last changes from Maik. Please try again with this version on your standard computer.

Gilles Caulier
Comment 23 xxyxxyxyx1 2023-01-23 14:24:53 UTC
Created attachment 155530 [details]
digikam terminal output 20230123

I have tried again using this version:
digiKam-7.10.0-20230122T164001-MacOS-x86-64-debug.pkg

The behavior remains the same, hang on splashscreen without text in the upper left.
Comment 24 caulier.gilles 2023-01-23 14:41:56 UTC
Did you install digiKam on the standard and default directory "/Applications" ?

Which kind of extra applications did you install on your computer ? Can you list the /Applications directory contents ?

Note : here, i have also plenty of programs installed and i never seen this kind of dysfunction under macOS.

Showfoto is also available with digiKam as a stand alone program. Look into digiKam.org application directory. Try to start it to see if dysfunction is reproducible.

Can you also try to reset the settings file of digiKam. I listed the conf files in the documentation here :

https://docs.digikam.org/en/getting_started/installation.html#configuration-files

No needs to delete files. Just backup one by one to see if you can identify the problem.

Gilles Caulier
Comment 25 caulier.gilles 2023-01-23 14:48:05 UTC
From a command line xdpyinfo can help to know which X11 extension are present. Look on start of this command report.

Gilles Caulier
Comment 26 xxyxxyxyx1 2023-01-23 15:10:36 UTC
Created attachment 155532 [details]
digikamrc breaking

It seems the problem was my digikam settings file:
/Users/redacted/Library/Preferences/digikamrc

When I move it, digikam opens the setup wizard successfully, and when I put it back, it is broken again. I have never manually interacted with this file. 

I have attached the settings file. Perhaps there is some obvious problem with it, which might be repaired without losing all settings?
Comment 27 Maik Qualmann 2023-01-23 18:52:38 UTC
Please set "Show Splash=true" to "Show Splash=false" in your digiKamrc.
I know that I'm stuck on the splash screen at the moment, but after opening the splash screen, a message is first written in the upper left corner (first stage is: Initializing...). Since it doesn't appear anymore...

Maik
Comment 28 Maik Qualmann 2023-01-23 19:00:13 UTC
I see in your digiKamrc that you macOS are also affected by the problem that due to changes to the KF5 library, the monitor device names were not resolved and only the string placeholders were saved as a result. Because of these "\s" strings, the config is no longer clean.
Delete all lines beginning with "\s", these are all just saved window sizes.

Maik
Comment 29 caulier.gilles 2023-04-09 07:43:24 UTC
MacOS 10.15 is now required to run last digiKam versions.

Gilles Caulier
Comment 30 xxyxxyxyx1 2023-04-30 21:57:58 UTC
Created attachment 158580 [details]
digikam_log20230430
Comment 31 xxyxxyxyx1 2023-04-30 21:58:40 UTC
(In reply to Maik Qualmann from comment #28)
> I see in your digiKamrc that you macOS are also affected by the problem that
> due to changes to the KF5 library, the monitor device names were not
> resolved and only the string placeholders were saved as a result. Because of
> these "\s" strings, the config is no longer clean.
> Delete all lines beginning with "\s", these are all just saved window sizes.
> 
> Maik

Hello again,
I never got this working, but I am again using the same macOS computer and would like to use digikam. 
I attempted a fresh install: I deleted /Applications/digikam.org/ and the digikam files in ~/Library/Preferences/, then installed digikam version 8.0.0. The setup dialogs proceed as expected, but when the main program should start, it immediately hangs without any GUI windows displayed. After killing the unresponsive digikam process, I start digikam a second time. No setup dialog or GUI windows are displayed, the process hangs immediately. 
I have attached the terminal output.