Bug 445629

Summary: Bugs under wayland with Fedora 35 Gnome
Product: [Applications] digikam Reporter: Mars <marsupilami450>
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: grave CC: caulier.gilles, metzpinguin, rdieter
Priority: NOR    
Version: 7.3.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:

Description Mars 2021-11-17 09:01:06 UTC
Bugs under wayland with Fedora 35 Gnome
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Use Fedora 35 with Gnome and Wayland
2. Open digiKam

OBSERVED RESULT
- Broken menu bar (the dropdown lists are wrongly placed)
- Some icons are wrong (we can't see them)
- The theme is not automatically matching the dark theme
- When entering the configuration menu, all the windows of digikam start to be unusable due to graphical artefacts

EXPECTED RESULT
It should work normally without visual bugs.

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

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-11-17 09:15:31 UTC
Can you try the 7.4.0 pre-release Linux AppImage instead official package. File is available here :

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

Gilles Caulier
Comment 2 Mars 2021-11-17 09:18:20 UTC
(In reply to caulier.gilles from comment #1)
> Can you try the 7.4.0 pre-release Linux AppImage instead official package.
> File is available here :
> 
>  https://files.kde.org/digikam/
> 
> Gilles Caulier

Thanks I will try it, is there any difference with the Fedora 7.3.0 build?
Comment 3 caulier.gilles 2021-11-17 09:34:19 UTC
7.4.0 come with 180 bugs fixed since 7.3.0 :

https://bugs.kde.org/buglist.cgi?f1=cf_versionfixedin&limit=0&list_id=1936086&o1=equals&order=bug_id&product=digikam&v1=7.4.0

A package problem can be also identified if appimage work as expected.

Gilles Caulier
Comment 4 Mars 2021-11-17 09:47:21 UTC
(In reply to caulier.gilles from comment #1)
> Can you try the 7.4.0 pre-release Linux AppImage instead official package.
> File is available here :
> 
>  https://files.kde.org/digikam/
> 
> Gilles Caulier

I am not able to run the appimage:
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib64/libxcb-dri3.so.0
digikam: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
Comment 5 caulier.gilles 2021-11-17 09:48:48 UTC
libnsl is installed on your computer ?
Comment 6 Mars 2021-11-17 10:10:19 UTC
(In reply to caulier.gilles from comment #5)
> libnsl is installed on your computer ?

I don't know, I will look at it. The test I performed was on a fresh Fedora 35 Gnome virtual machine, so I wonder it doesn't work out of the box...
Comment 7 Mars 2021-11-17 10:29:46 UTC
(In reply to Mars from comment #6)
> (In reply to caulier.gilles from comment #5)
> > libnsl is installed on your computer ?
> 
> I don't know, I will look at it. The test I performed was on a fresh Fedora
> 35 Gnome virtual machine, so I wonder it doesn't work out of the box...

Even after installing libnsl, I get this bug:
libudev.so.0 
libxcb-dri3.so.0 
-- Preloading shared libs: :/usr/lib64/libxcb-dri3.so.0
digikam: /tmp/.mount_digiKaqkiDJs/usr/lib/libcrypto.so.1.1: version `OPENSSL_1_1_1b' not found (required by /lib64/libk5crypto.so.3)
Comment 8 caulier.gilles 2021-11-17 11:27:11 UTC
And of course libcrypto is installed ?

Else, with the native package, did you have the qt wayland plugin installed ?

Here under Magia8 Linux, with Qt 5.15.2, i can see all these files :

[gilles@localhost plugins]$ pwd
/usr/lib64/qt5/plugins

[gilles@localhost plugins]$ ls wa*
wayland-decoration-client:
libbradient.so*

wayland-graphics-integration-client:
libdrm-egl-server.so*         libshm-emulation-server.so*  libxcomposite-egl.so*
libqt-plugin-wayland-egl.so*  libvulkan-server.so*         libxcomposite-glx.so*

wayland-graphics-integration-server:
libqt-wayland-compositor-drm-egl-server-buffer.so*  libqt-wayland-compositor-wayland-eglstream-controller.so*
libqt-wayland-compositor-shm-emulation-server.so*   libqt-wayland-compositor-xcomposite-egl.so*
libqt-wayland-compositor-vulkan-server.so*          libqt-wayland-compositor-xcomposite-glx.so*
libqt-wayland-compositor-wayland-egl.so*

wayland-shell-integration:
libfullscreen-shell-v1.so*  libivi-shell.so*  libwl-shell.so*  libxdg-shell.so*  libxdg-shell-v5.so*  libxdg-shell-v6.so*

And of course here, digiKam work perfectly under Wayland screen server

Gilles Caulier
Comment 9 caulier.gilles 2021-11-17 11:27:39 UTC
Note : I use Plasma desktop, not Gnome.

Gilles Caulier
Comment 10 Maik Qualmann 2021-11-17 11:43:37 UTC
The problem with the menus in the wrong place has already been fixed, depending on the Wyland / Qt version - Bug 429338.

With the icon problem, I suspect that you have not installed the Breeze icon theme, only this one has all the icons required for digiKam.

We do not read any special GNOME configuration files, GNOME should create these for Qt so that a dark theme is also immediately available in the standard settings. Otherwise you can quickly select a dark theme in digiKam under Settings-> Design. 

Maik
Comment 11 caulier.gilles 2022-01-13 12:45:58 UTC
Following comment #10 from Maik, i close this file now.