Bug 489969

Summary: plasmashell crashes when adding a secondary display
Product: [Plasma] plasmashell Reporter: Ricky Cheung <rcheung844>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde.eardrum612
Priority: NOR Keywords: drkonqi
Version: 6.1.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Ricky Cheung 2024-07-09 10:40:09 UTC
Application: plasmashell (6.1.2)

Qt Version: 6.7.2
Frameworks Version: 6.3.0
Operating System: Linux 6.9.8-zen1-1-zen x86_64
Windowing System: Wayland
Distribution: Arch Linux
DrKonqi: 6.1.2 [CoredumpBackend]

-- Information about the crash:
When a secondary display is plugged into the computer (a laptop in my case), a crash handler window shows up telling me that plasmashell had crashed

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  QtWaylandClient::QWaylandWindow::waylandScreen (this=0x63d36afc6c20) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:956
#6  QtWaylandClient::QWaylandWindow::devicePixelRatio (this=0x63d36afc6c20) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylandwindow.cpp:1519
#7  0x0000789d83530f0c in QtWaylandClient::QWaylandEglWindow::updateSurface (this=0x63d36afc6c20, create=true) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:70
#8  0x0000789d83531905 in QtWaylandClient::QWaylandGLContext::makeCurrent (this=this@entry=0x789c7c002210, surface=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:318
#9  0x0000789d8a2adc28 in QOpenGLContext::makeCurrent (this=0x789c7c001f60, surface=0x63d36a68e1b0) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:664


Reported using DrKonqi
Comment 1 Ricky Cheung 2024-07-09 10:40:11 UTC
Created attachment 171496 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Kacper Koniuszy 2024-07-09 17:57:00 UTC
This is the same case as bug 489180, which was resolved upstream in Qt but the fix is probably not available in distro packages yet.

Unfortunately, even if you build Qt yourself, you might still have plasmashell crashes as there's another similar problem, see bug 489072.

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