Bug 460553

Summary: Kwin crashes in Plasma 5.26 if xdg-desktop-portal-gnome is installed and running and you attempt to screen share or use OBS
Product: [Plasma] kwin Reporter: p d <pizzadude>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 5.26.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description p d 2022-10-16 19:30:57 UTC
SUMMARY
If xdg-desktop-portal-gnome is installed and running (and it is by default on Fedora 36): Since KDE 5.26, using OBS or screen sharing causes the KDE session to crash and restart (tested in Wayland), and removing xdg-desktop-portal-gnome fixes this.

STEPS TO REPRODUCE
1. Be on Fedora 36 KDE with wayland session
2. Have xdg-desktop-portal-gnome installed and running (it is by default)
3. Try to screen share in telegram or screen record in OBS
4. Instant crash

OBSERVED RESULT

Kwin crash when sharing / recording screen

EXPECTED RESULT

There to be no crash.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 36
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.15-201.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7300U CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Comment 1 p d 2022-10-16 23:20:56 UTC
I upgraded to Fedora 37 KDE with KDE 5.26 from the kdesig copr and now it seems to crash for a different reason (when attempting to record screen in OBS on Wayland):

Oct 16 19:09:08 fedora-t580 kwin_wayland_wrapper[4491]: No provider of eglQueryDmaBufModifiersEXT found.  Requires one of:
Oct 16 19:09:08 fedora-t580 kwin_wayland_wrapper[4491]:    EGL_EXT_image_dma_buf_import_modifiers
Comment 2 p d 2022-10-17 10:29:47 UTC
due to corrupt kwinrc