Bug 489414

Summary: KWin crashes after disconnecting external display
Product: [Plasma] kwin Reporter: Jonah BrĂ¼chert <jbb>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: davids.paskevics, nate
Priority: NOR    
Version: 6.1.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonah BrĂ¼chert 2024-06-29 01:00:34 UTC
SUMMARY
The device is configured to go to sleep once no displays are connected.
The crash happens when the device is woken back up, possibly connected to a new external display.

The bug is not always reproducible.

This crash didn't happen on my own device, I'm reporting for someone else.

The backtrace is the same as the following sentry report https://crash-reports.kde.org/organizations/kde/issues/36638/events/ee240964d5b54f0e8371a45b3dae8499/ (It's required to show the Full Stack Trace, as sentry otherwise filters the relevant parts)

Possibly Output *m_moveResizeOutput in window.h should be stored in a QPointer, as it seems to be reference counted and not guaranteed to still exist. A check for whether it is null already exists, but it wouldn't catch a dangling pointer.

I don't have a development setup for Plasma right now to verify this.

STEPS TO REPRODUCE
1. have laptop go to sleep automatically
2. Disconnect laptop from docking station
3. Wake up laptop connected to other display

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Comment 1 Nate Graham 2024-07-03 00:17:01 UTC

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