Bug 460531

Summary: Many Qt apps crash on GNOME Wayland (Fedora 36 Silverblue), I think after updating the KDE Platform and related components
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Eduardo Medina <edu.rm.85>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: crash CC: 9d8xcssx, aacid, jgrulich, paveloom
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The info I could get from the bug: a video, three screenshots and a TXT file
Video of the Audacious crash

Description Eduardo Medina 2022-10-16 11:52:17 UTC
Created attachment 152889 [details]
The info I could get from the bug: a video, three screenshots and a TXT file

SUMMARY
Hi, since a week ago (more or less) there almost all the Qt apps I use in Fedora Silverblue (all of them in Flatpak format) are crashing when I use them on GNOME Wayland session. Only Krita, KGet, OBS Studio and Telegram (the latest is broken, but not by the KDE Platform) seem to keep stable. By other hand, Kdenlive, Audacious, Peazip and qBittorrent show instability issues.

I can reproduce the bug opening Kdenlive first and Krita later and after, closing Krita, you can see that Kdenlive crashes. I can get the same result with Peazip and qBittorrent. Sometimes the crashes occur randomly. In apps like Kdenlive and qBittorrent, if you try to close the "About" menu, you can crash the apps. This is a message I get after closing the "About" window of Kdenlive:

org.kde.kf5.kwindowsystem.kwayland: This compositor does not support the Shadow interface

I think that the root of the problem are 5.15-21.08 and 5.15-22.08 version of the KDE Platform and related components like org.kde.KStyle.Adwaita, org.kde.PlatformTheme.QGnomePlatform and org.kde.WaylandDecoration.QGnomePlatform-decoration, but I'm not sure.

STEPS TO REPRODUCE
1. (Example) Open Kdenlive first and after Krita on the Wayland session of GNOME
2. Close Krita

OBSERVED RESULT
You can see that Krita drags Kdenlive until to crash it.

EXPECTED RESULT
Software stability.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma (Flatpak):  KDE Platform 5.15-21.08 and 5.15-22.08 (I think) with related components like org.kde.KStyle.Adwaita, org.kde.PlatformTheme.QGnomePlatform and org.kde.WaylandDecoration.QGnomePlatform-decoration
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.15 (it seems)

ADDITIONAL INFORMATION
Comment 1 Pavel Sobolev 2022-10-17 13:28:02 UTC
Created attachment 152938 [details]
Video of the Audacious crash

I can confirm this bug. Here's a video of what it looks like. I am pretty sure that crashes happen when a user points the cursor at any of the title bar buttons when a window of the application is focused. Note, though, that I didn't press any of them before the crash on the video.
Comment 2 Aleix Pol 2022-10-17 14:05:40 UTC
Is there a chance we can get a backtrace there? It's hard to understand what's happening without.
Comment 3 badshah 2022-10-17 15:27:37 UTC
can confirm. Fedora Silverblue 37. Faced the issue with KeepasssXC and Qbittorrent flatpak. So, I went to downgrade qbittorrent. But same issue again. But Qbittorrent Appimage on wayland doesn't have the issue. 
Also, switched to xorg. Flapak isn't affected in xorg.
Comment 4 Jan Grulich 2022-10-17 16:13:51 UTC
This was a bug in QGnomePlatform that needed rebuild for ABI change in QtWayland. See https://github.com/flathub/org.kde.WaylandDecoration.QGnomePlatform-decoration/issues/5.
Comment 5 Aleix Pol 2022-10-17 16:18:41 UTC
Seems to be addressed, thanks Jan!