Bug 502003 - digiKam exits abruptly when attempting to open help
Summary: digiKam exits abruptly when attempting to open help
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-AppImage (other bugs)
Version First Reported In: 8.6.0
Platform: Solus Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-26 01:08 UTC by Anthony Cook
Modified: 2025-03-27 01:18 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Cook 2025-03-26 01:08:08 UTC
SUMMARY

STEPS TO REPRODUCE
1. Start digiKam-8.6.0-Qt6-x86-64.appimage
2. In the setup wizard, click the "Help" button

OBSERVED RESULT

A black window briefly appears and the application "crashes".

According to GDB this is not technically a crash, but an erroneous exit:

MESA-LOADER: failed to open nouveau: ././/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: ././/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: ././/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: ././/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
[Inferior 1 (process 11469) exited with code 01]

EXPECTED RESULT

Help should be displayed.

SOFTWARE/OS VERSIONS
Linux Distro: Solus
Linux Kernel: 6.12.19-315.current #1 SMP PREEMPT_DYNAMIC 2025-03-14 x86_64 GNU/Linux
GlibC: version: 2.41
QT: 6 (according to appimage)

ADDITIONAL INFORMATION

I also tested it with the official Solus package and the same issue occurred. 

I just tested on Debian and is also exits erroneously there, although in GDB there are no messages printed when it terminates, just the process exit line itself.

So this is a cross-distro issue with the package in general.
Comment 1 caulier.gilles 2025-03-26 03:33:49 UTC
*** This bug has been marked as a duplicate of bug 501026 ***
Comment 2 caulier.gilles 2025-03-26 04:06:14 UTC
Git commit e702fa0a55eec712bfd4b3e047b3c7384aee152e by Gilles Caulier.
Committed on 26/03/2025 at 04:00.
Pushed by cgilles into branch 'master'.

disable WebGL support in QtWebEngine instances
Related: bug 501026

M  +3    -0    core/dplugins/generic/webservices/inaturalist/inatbrowserdlg.cpp
M  +2    -0    core/dplugins/generic/webservices/twitter/twittertalker.cpp
M  +2    -0    core/dplugins/generic/webservices/unified/wizard/wsauthenticationpage.cpp
M  +4    -9    core/libs/dialogs/webbrowserdlg.cpp
M  +0    -1    core/libs/dialogs/webbrowserdlg.h
M  +4    -0    core/libs/dplugins/webservices/webwidget_qwebengine.cpp

https://invent.kde.org/graphics/digikam/-/commit/e702fa0a55eec712bfd4b3e047b3c7384aee152e
Comment 3 caulier.gilles 2025-03-26 04:08:22 UTC
Please test if crash still reproducible with my last commit included in the next pre-release 8.7.0 AppImage bundle built today afternoon (Paris time)
Comment 4 Anthony Cook 2025-03-26 04:16:15 UTC
I tested with Downloads/digiKam-8.7.0-20250325T190104-Qt6-x86-64.appimage and the behaviour has not changed. Is that the right build?
Comment 5 caulier.gilles 2025-03-26 04:17:42 UTC
No, the next build will be done in a few hours... Please wait...
Comment 6 Maik Qualmann 2025-03-26 06:53:59 UTC
I don't think disabling WebGL will help. This seems to be a problem with the Nouveau driver.
The other problem is the same one we had with the Geolocation Editor. It can still be reproduced by calling the help in the setup.
The dialog is launched with exec(), QWebEngine apparently tries to open an OpenGL window via the parent, which closes the dialog (it didn't crash). If show() is used to open it, the dialog closes briefly and reappears.
A nullptr for the web browser dialog is not an option; it then appears behind the current dialog. I'm still working on a good solution.

Maik
Comment 7 Anthony Cook 2025-03-26 07:04:58 UTC
Incidentally, I am not using Nouveau.

I do happen to be using the NVidia official drivers on the Solus machine, and I am able to use modern WebGL and Vulkan applications on it.

The Debian test I did was in QEMU, definitely no NVidia involved.
Comment 8 caulier.gilles 2025-03-26 15:47:34 UTC
Anthony,

The prerelease AppImage built at this morning must include my last fixes. This changes something for you ?

Best

Gilles Caulier
Comment 9 Maik Qualmann 2025-03-26 20:28:36 UTC
Git commit f48cde0bf808f38ddfdcc8f701194ab3b3711630 by Maik Qualmann.
Committed on 26/03/2025 at 20:27.
Pushed by mqualmann into branch 'master'.

fix opening Help via QWebEngine from setup dialog
FIXED-IN: 8.7.0

M  +1    -1    NEWS
M  +0    -1    core/dplugins/generic/import/dscanner/scandialog.cpp
M  +101  -7    core/utilities/setup/setup.cpp

https://invent.kde.org/graphics/digikam/-/commit/f48cde0bf808f38ddfdcc8f701194ab3b3711630
Comment 10 Maik Qualmann 2025-03-26 20:45:56 UTC
Git commit b86a91ec13b3e251ae945ac909a3c4980866ca5b by Maik Qualmann.
Committed on 26/03/2025 at 20:44.
Pushed by mqualmann into branch 'master'.

avoid duplicate code in Setup

M  +11   -102  core/utilities/setup/setup.cpp
M  +1    -0    core/utilities/setup/setup.h

https://invent.kde.org/graphics/digikam/-/commit/b86a91ec13b3e251ae945ac909a3c4980866ca5b
Comment 11 Maik Qualmann 2025-03-26 21:22:18 UTC
Git commit bb15ebbb8263c103e686e47a734d1789a9b023dc by Maik Qualmann.
Committed on 26/03/2025 at 21:21.
Pushed by mqualmann into branch 'master'.

fix online help in the first run dialog

M  +16   -2    core/app/main/main.cpp

https://invent.kde.org/graphics/digikam/-/commit/bb15ebbb8263c103e686e47a734d1789a9b023dc
Comment 12 Anthony Cook 2025-03-26 22:20:58 UTC
Tested with digiKam-8.7.0-20250326T190054-Qt6-x86-64.appimage, no change in behaviour. Still crashes, same gdb messages.
Comment 13 caulier.gilles 2025-03-27 01:18:48 UTC
wait the bundle updated today morning where last fix from Maik will be integrated