Bug 446729

Summary: Crashes with error: The Wayland connection broken. Did the Wayland compositor die?
Product: [Applications] digikam Reporter: MailManM
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: crash CC: caulier.gilles, metzpinguin, neckardt
Priority: NOR    
Version: 7.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description MailManM 2021-12-09 13:14:06 UTC
SUMMARY
The application crashes usually when moving files.
Sorry I hope issue can be addressed even without me recompiling the application for backtrace.

STEPS TO REPRODUCE
1. Import album from USB onto hard disk.

OR

1. Move several images to Trash.

SOFTWARE/OS VERSIONS
Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.1.0) on "wayland"
OS: Arch Linux [linux version 5.15.6-arch2-1]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX

Im using SWAY, which means wayland compositor wlroots.

ADDITIONAL INFORMATION
Probably related to https://bugs.kde.org/show_bug.cgi?id=392376 and https://bugreports.qt.io/browse/QTBUG-66997
That would suggest the fix could be as easy as doing file manipulation in nonGUI thread, but I didn't look at the code, so take it with huge grain of salt. I don't want to send you looking at the wrong place.
Comment 1 caulier.gilles 2021-12-09 13:30:41 UTC
Can you try with the last 7.4.0 pre-release AppImage bundle to see if problem still reproducible ?

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

Gilles Caulier
Comment 2 Maik Qualmann 2021-12-09 18:50:10 UTC
What type of database are you using (SQLite or MySQL)?

Maik
Comment 3 Nicholas Eckardt 2022-02-18 02:31:13 UTC
I'm also experiencing this bug. I initially used digikam 7.1.0 using SQLite. 

I attempted to run digiKam-7.5.0-x86-64.appimage, however I encountered https://bugs.kde.org/show_bug.cgi?id=427906

My OS is Debian 11, I'm also using sway.
Comment 4 caulier.gilles 2023-04-19 14:39:00 UTC
Hi all,

digiKam 8.0.0 is out. Problem still reproducible ?

Best regards
Gilles Caulier
Comment 5 caulier.gilles 2023-06-01 16:13:23 UTC
Git commit 44160177c2661a24437eea683f58d3abca7b5d72 by Gilles Caulier.
Committed on 01/06/2023 at 16:11.
Pushed by cgilles into branch 'master'.

add Wayland protocols modules in AppImage bundle.
Compile KF5::KGuiAddOns module with Wayland support.
Related: bug 446153, bug 446511

M  +1    -0    project/bundles/3rdparty/CMakeLists.txt
M  +1    -1    project/bundles/3rdparty/ext_kf5_frameworks/CMakeLists.txt
A  +28   -0    project/bundles/3rdparty/ext_waylandprotocols/CMakeLists.txt
M  +3    -1    project/bundles/appimage/02-build-extralibs.sh

https://invent.kde.org/graphics/digikam/-/commit/44160177c2661a24437eea683f58d3abca7b5d72
Comment 6 caulier.gilles 2023-10-11 05:59:39 UTC
@MailManM@email.cz,

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

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

Thanks in advance

Gilles Caulier
Comment 7 Maik Qualmann 2024-01-07 09:31:09 UTC
Git commit 581acb950c8e10a607571853694141a3bd40cdbe by Maik Qualmann.
Committed on 07/01/2024 at 10:26.
Pushed by mqualmann into branch 'master'.

add digiKam setting to force use of software OpenGL rendering
Related: bug 479455, bug 476092, bug 468980, bug 472918, bug 446511

M  +5    -4    core/app/main/main.cpp
M  +15   -0    core/showfoto/main/main.cpp
M  +2    -0    core/utilities/setup/misc/systemsettings.cpp
M  +1    -0    core/utilities/setup/misc/systemsettings.h
M  +5    -0    core/utilities/setup/misc/systemsettingswidget.cpp

https://invent.kde.org/graphics/digikam/-/commit/581acb950c8e10a607571853694141a3bd40cdbe
Comment 8 caulier.gilles 2024-03-28 07:05:34 UTC
@MailManM@email.cz,

digiKam 8.3.0 stable version is released and available at usual place :

https://www.digikam.org/download/

Can you reproduce the dysfunction on your computer ?

Thanks in advance

Gilles Caulier