Bug 496784 - Client crash in QWindowSystemInterface::handleScreenRemoved
Summary: Client crash in QWindowSystemInterface::handleScreenRemoved
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.2.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-28 12:16 UTC by FK
Modified: 2024-11-28 17:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
konsole backtrace (6.50 KB, text/plain)
2024-11-28 12:16 UTC, FK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FK 2024-11-28 12:16:33 UTC
Created attachment 176184 [details]
konsole backtrace

SUMMARY
Maybe the connector of my non-MST display got loose, thus kwin switched to the previously turned off display (first in a MST chain), upon discovering the display again, it switched the configuration back and I find crash notifications for kwrite and konsole.

In the journal I see:
Nov 28 12:30:26 <> kwalletd6[1836]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
and lots of firefox warnings:
Couldn't map window 0x7a02a7ff27a0 as subsurface because its parent is not mapped.
then
Nov 28 12:31:48 <> kwin_wayland_wrapper[1976]: XWAYLAND: mode -1x-1 is not available
Nov 28 12:31:48 <> kwin_wayland_wrapper[1976]: XWAYLAND: mode -1x-1 is not available
Nov 28 12:31:48 <> kwin_wayland_wrapper[1976]: XWAYLAND: mode -1x-1 is not available
Nov 28 12:31:48 <> kwin_wayland_wrapper[1976]: XWAYLAND: mode -1x-1 is not available



STEPS TO REPRODUCE
1. have screens appear/disappear
2. crash if lucky

OBSERVED RESULT
konsole and kwrite crash

EXPECTED RESULT
they don't

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
Memory: 46.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics


ADDITIONAL INFORMATION
Comment 1 David Edmundson 2024-11-28 17:08:10 UTC
Clients crashing is not a kwin bug, but a Qt bug.

QWindowSystemInterface::handleScreenRemoved is the relevant part, we can track it in Qt