Bug 484643

Summary: Regression: drm lease release crashes xwayland server
Product: [Plasma] kwin Reporter: babblebones <babblebones>
Component: platform-x11-nestedAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: jared, xaver.hugl
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: xwayland coredump

Description babblebones 2024-03-28 07:05:51 UTC
Created attachment 167878 [details]
xwayland coredump

SUMMARY
Stopping monado service on a KDE 6 plasma desktop crashes xwayland when the drm lease is released on a wired headset.

This may also occur with steamvr but I have not tested that yet.

STEPS TO REPRODUCE
1. Start monado with a wired HMD connected to PC and some xwayland apps open
2. Stop monado
3. xwayland will crash

OBSERVED RESULT
xwayland crash

EXPECTED RESULT
xwayland should survive a drm lease releasing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.2
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Appears to have regressed from plasma 5, my Gentoo box still on 5 does not produce this behavior
Coredump included below
Comment 1 babblebones 2024-03-30 23:34:08 UTC
I have narrowed this down further
Qt5 application windows open seem to instigate this crash.

Steam and Corectrl being two.

If you stop the service while a qt5 application is open xwayland will crash.
Comment 2 libjared 2024-04-02 03:05:47 UTC
This is very likely related to a ticket being tracked in xwayland.
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1619
Comment 3 Zamundaaa 2024-04-02 16:03:29 UTC
Definitely sounds like it. If it turns out not to be the same though, please make a separate issue for Xwayland - its crashes have to be fixed in its code base.