https://bugs.kde.org/show_bug.cgi?id=452435
Bug ID: 452435 Summary: [Wayland] SDL Applications crash with error "wl_registry@2: error 0: invalid global wp_drm_lease_device_v1 (50)" when external display is unplugged Product: kwin Version: 5.24.4 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: platform-drm Assignee: kwin-bugs-n...@kde.org Reporter: k...@vesperllama.anonaddy.com Target Milestone: --- Created attachment 148068 --> https://bugs.kde.org/attachment.cgi?id=148068&action=edit Bactrace for XWayland SUMMARY When I open SDL Xwayland applications like Steam, they crash with the following error "Fatal IO error 22 (Invalid argument) on X server :1." and wayland-session.log show the following error too "wl_registry@2: error 0: invalid global wp_drm_lease_device_v1 (50)". After this happens all other Xwayland apps also stop working but they work fine before this. This issue also happens randomly while using the PC even if I don't run an SDL app but it is always reproducible when opening Steam or other SDL app. I am on a laptop and when I connect an external monitor then these apps work fine but they don't work when external monitor is unplugged. STEPS TO REPRODUCE 1. Run an SDL application like Steam in Plasma Wayland session while external monitor is unplugged. OBSERVED RESULT It crashes and the log shows the above errors. EXPECTED RESULT The application should work properly. SOFTWARE/OS VERSIONS Linux: 5.17.1-zen KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION iGPU: AMD Renoir Vega 8 dGPU: AMD RX6600M Mesa: 22.0.1 Wayland: 1.20.0 XWayland: 22.1.1 -- You are receiving this mail because: You are watching all bug changes.