Bug 490753

Summary: KWin crashes on external monitor unplug
Product: [Plasma] plasmashell Reporter: Intergalactic Narwhal <marton2+kde>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: cwo.kde
Priority: NOR Keywords: drkonqi
Version: 6.1.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Intergalactic Narwhal 2024-07-24 12:05:33 UTC
Application: plasmashell (6.1.3)

Qt Version: 6.7.2
Frameworks Version: 6.4.0
Operating System: Linux 6.9.9-200.fc40.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 40 (Forty)"
DrKonqi: 6.1.3 [CoredumpBackend]

-- Information about the crash:
KDE is constantly crashing when unplugging an external HDMI display over USB-C. I'm using Fedora 40 with Wayland, this started when I updated to Plasma 6.1.3.
Another symptom of this is that when the display is turned off due to inactivity, after turning it on (moving the mouse etc.), the external monitor locks to a 640x480 resolution and can only be fixed by unplugging and replugging it.
It doesn't matter if it's turned off or not, it still crashes KDE.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  QtWaylandClient::QWaylandWindow::waylandScreen (this=this@entry=0x561c62ccc100) at /usr/src/debug/qt6-qtwayland-6.7.2-2.fc40.x86_64/src/client/qwaylandwindow.cpp:956
#6  0x00007fbe5c6deb9b in QtWaylandClient::QWaylandWindow::devicePixelRatio (this=0x561c62ccc100) at /usr/src/debug/qt6-qtwayland-6.7.2-2.fc40.x86_64/src/client/qwaylandwindow.cpp:1519
#7  QtWaylandClient::QWaylandWindow::scale (this=this@entry=0x561c62ccc100) at /usr/src/debug/qt6-qtwayland-6.7.2-2.fc40.x86_64/src/client/qwaylandwindow.cpp:1516
#8  0x00007fbe46cddfdb in QtWaylandClient::QWaylandEglWindow::updateSurface (this=0x561c62ccc100, create=true) at /usr/src/debug/qt6-qtwayland-6.7.2-2.fc40.x86_64/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:70
#9  0x00007fbe46cde973 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x7fbd9c0022e0, surface=<optimized out>) at /usr/src/debug/qt6-qtwayland-6.7.2-2.fc40.x86_64/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:318


Reported using DrKonqi
Comment 1 Intergalactic Narwhal 2024-07-24 12:05:34 UTC
Created attachment 171954 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 cwo 2024-07-24 16:55:28 UTC
Thank you for the bug report! This issue has already been filed and was determined to be an upstream bug in Qt; please see that bug report for updates on a fix.

*** This bug has been marked as a duplicate of bug 489180 ***