Bug 454099 - KWin crash in KWin::Workspace::clientArea when monitor wakes up from sleep
Summary: KWin crash in KWin::Workspace::clientArea when monitor wakes up from sleep
Status: RESOLVED DUPLICATE of bug 448102
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.24.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-20 17:22 UTC by burneddi
Modified: 2022-05-23 16:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Stack trace produced by following these instructions: https://community.kde.org/KWin/Debugging#TL.3BDR_for_bug_reporters (21.28 KB, text/plain)
2022-05-20 17:22 UTC, burneddi
Details
journal output at the time of the crash (74.51 KB, text/x-log)
2022-05-20 17:24 UTC, burneddi
Details
Screenshot of display arrangment within systemsettings (11.00 KB, image/png)
2022-05-20 17:29 UTC, burneddi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description burneddi 2022-05-20 17:22:58 UTC
Created attachment 149030 [details]
Stack trace produced by following these instructions: https://community.kde.org/KWin/Debugging#TL.3BDR_for_bug_reporters

SUMMARY
KWin often crashes when monitors wake up from sleep. GDB stacktrace says the crash is in KWin::Workspace::clientArea:

Thread 1 "kwin_x11" received signal SIGSEGV, Segmentation fault.
KWin::Workspace::clientArea (this=0x563633dfaaf0, opt=KWin::PlacementArea, output=<optimized out>, desktop=<optimized out>) at /usr/src/debug/kwin-5.24.4-1.fc35.x86_64/src/workspace.cpp:2288
2288	        screenArea = effectiveOutput->geometry();

STEPS TO REPRODUCE
1. Lock the screen
2. Power off both monitors / let monitors go to sleep
3. Power on both monitors / wake monitors up
Repro is inconsistent. Seems to happen most consistently after a fresh reboot.

OBSERVED RESULT
System journal indicates that kwin crashed. Desktop shows various kinds of corruption: flashing or black background, occasionally missing panels.

EXPECTED RESULT
Crash doesn't happen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 35
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
If I remember correctly, this crash started happening when I bought a new monitor, changing my display arrangement to a 2560x1440 primary monitor and a portrait mode 1920x1080 monitor on the left side. The crash seems to be related to the primary monitor waking up, judging by observing journal output when waking up the monitors.
Comment 1 burneddi 2022-05-20 17:24:03 UTC
Created attachment 149031 [details]
journal output at the time of the crash
Comment 2 burneddi 2022-05-20 17:29:09 UTC
Created attachment 149032 [details]
Screenshot of display arrangment within systemsettings

Kernel version is 5.17.7-200.fc35.x86_64

I think it might have something to do with my display arrangment. I'm attaching a screenshot to demonstrate it.
Comment 3 Nate Graham 2022-05-23 16:28:02 UTC

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