Bug 489414 - KWin crashes after disconnecting external display
Summary: KWin crashes after disconnecting external display
Status: RESOLVED DUPLICATE of bug 489072
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 6.1.1
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-29 01:00 UTC by Jonah Brüchert
Modified: 2024-07-03 00:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***