Bug 511738

Summary: Gnome session crash when interacting with digiKam.
Product: [Applications] digikam Reporter: Warren Werner <0815jo>
Component: Bundle-FlatPakAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.8.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:

Description Warren Werner 2025-11-06 22:28:17 UTC
SUMMARY


STEPS TO REPRODUCE
1. Start Face detection
2. While it is running, do something else (like matching unrecognized faces)
3. Keep doing stuff until it crashes

OBSERVED RESULT


EXPECTED RESULT
The entire Gnome session stops and I am thrown back to the graphic login.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04 Gnome 46.4
KDE Plasma Version: 
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3

ADDITIONAL INFORMATION
Flatpak
KDE Flatpak runtime (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.8.0-86-generic

I tried to run with flatpak run --command=sh --devel org.kde.digikam
but since the session crashed, I could not  do $ (gdb) bt full after the crash. Please give me advice how to get a backtrace despite of being kicked out of the session.
Comment 1 Warren Werner 2025-11-06 22:34:29 UTC
This is the console output: 
kf.i18n: KCatalog being used without a Q*Application instance. Some translations won't work
digikam.dimg: ICM Wayland: cannot dial with the colord service: "org.freedesktop.DBus.Error.ServiceUnknown"
digikam.general: DK_PLUGIN_PATH env.variable detected. We will use it to load plugin...
digikam.geocore: DK_PLUGIN_PATH env.variable detected. We will use it to load Geolocation plugin...
digikam.geocore: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.0.3 GPL version 2 or later
digikam.geocore: DK_PLUGIN_PATH env.variable detected. We will use it to load Geolocation plugin...
digikam.geocore: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
digikam.geocore: DK_PLUGIN_PATH env.variable detected. We will use it to load Geolocation plugin...
digikam.geocore: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
digikam.dimg: ICM Wayland: cannot dial with the colord service: "org.freedesktop.DBus.Error.ServiceUnknown"
digikam.geocore: DK_PLUGIN_PATH env.variable detected. We will use it to load Geolocation plugin...
digikam.geocore: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
digikam.geocore: DK_PLUGIN_PATH env.variable detected. We will use it to load Geolocation plugin...
digikam.geocore: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
digikam.geocore: DK_PLUGIN_PATH env.variable detected. We will use it to load Geolocation plugin...
digikam.geocore: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
digikam.database: Broken history: Same file referred by different entries. Refusing to add a loop.
kf.notifications: No event config could be found for event id "FacesEngine (MaintenanceTool)" under notifyrc file for app "digikam"
kf.notifications: No event config could be found for event id "FacesEngine (MaintenanceTool)" under notifyrc file for app "digikam"
kf.notifications: No event config could be found for event id "FacesEngine (MaintenanceTool)" under notifyrc file for app "digikam"
kf.notifications: No event config could be found for event id "FacesEngine (MaintenanceTool)" under notifyrc file for app "digikam"
kf.notifications: No event config could be found for event id "FacesEngine (MaintenanceTool)" under notifyrc file for app "digikam"
Gdk-Message: 23:32:10.304: Error reading events from display: Datenübergabe unterbrochen (broken pipe)
Comment 2 caulier.gilles 2025-11-07 00:19:48 UTC
This has nothing to do with face engine. the Flatpak configuration about application access rights is a mess. Please look the warning at :

https://www.digikam.org/download/binary/#linux-sandbox 

The doc about the permissions : https://docs.flatpak.org/en/latest/sandbox-permissions.html

Report also the problem as UPSTREAM bug to : https://github.com/flathub/org.kde.digikam/issues

Alternative : uses the AppImage bundle that we provide : https://www.digikam.org/download/
Comment 3 Warren Werner 2025-11-07 08:08:23 UTC
Thanks. I filed a bug report to flathup: https://github.com/flathub/org.kde.digikam/issues/265