| Summary: | kwin_wayland crashes after locking system and turning displays off | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Shastao <shastao> |
| Component: | generic-crash | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | crash | CC: | antoine.rybacki1, matter_alienable031, maud-lin, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.5.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Shastao
2025-10-25 22:17:08 UTC
I can confirm this issue (although i'm not sure it started with 6.5 (i think it was a couple of days before), it for sure became worse with it (i only had crash on wake up before)) I'm getting kwin_wayland crashes on start (i have auto login + auto lock set up) & on lock wake (sleep disabled) Worth noting, i'm on a multi monitor setup (i think it's part of the issue). Although i'm not certain they're exactly the same issue (start vs wake), i'm seeing the same behaviour, lockscreen is frozen and not even loginctl unlock-session in another tty helps unfreezing it (i'm sure i tried restarting plasmashell after unlocking the session) i seen some mention online & from previous issues i've had with it that it might be related to Night Light, from a quick testing, disabling it appears to solve crashes I can provide more logs/specs if needed I can also confirm this. Kwin crashes when the PC suspends/turns off the displays. To reproduce: Locking the screen and pressing Esc to turn off the displays, waking it flashes the lockscreen, turns black for a second and then shows the lockscreen again. After logging in, kwin tells me it crashed. I have 3 monitors, nightlight was not active. Also crashes when night light is turned off fully. Sometimes I get notifications that a display reconnects, so my guess is, the displays disconnect on wake and immediately reconnect. journalctl logs shows this: ``` Okt 26 15:17:28 Vanillarch kwin_wayland[60192]: Failed to delay sleep: Sender is not authorized to send message Okt 26 15:17:28 Vanillarch kwin_wayland[60192]: Failed to delay sleep: Sender is not authorized to send message Okt 26 15:17:28 Vanillarch kwin_wayland[60192]: Failed to delay sleep: Sender is not authorized to send message Okt 26 15:17:48 Vanillarch kwin_wayland[60192]: unknown active output Okt 26 15:17:48 Vanillarch kwin_wayland_wrapper[60192]: KCrash: Application 'kwin_wayland' crashing... crashRecursionCounter = 2 ``` Correcting myself on what i said earlier, disabling night light did not fix crashes, although it seems to have made crashes less "hard" (instead of freezing on the lockscreen, kwin_wayland crashes but restarts by itself), I'm not certain it's really what really helped, i did have a bump of libdrm from 2.4.126 to 2.4.127 which seems more likely to be the reason for the crash on wake i've seen either lines: plasmashell[1385]: KWaylandBackend: no output modes available anymore, this seems like a compositor bug & kwin_wayland[1160]: unknown active output I'm experiencing an issue related to session locking. Initially, I thought it was due to session locking itself, but I later realized that the issue only occurs when the screen is set to turn off. When I disabled screen power-off, the issue no longer appeared. Additionally, I see an "kwin_wayland[26256]: unknown active output" message in the logs. I’m not using the Night Light feature, and the system crashes intermittently. Instead of freezing on the lock screen, kwin crashes and automatically restarts. However, after unlocking the screen, the entire display session is wiped, and I get an error when attempting to open the Power Management window. STEPS TO REPRODUCE 1. Lock the session. 2. Allow the system to turn off the screen. 3. Try to unlock the session after the screen turns off. EXPECTED BEHAVIOR: * The screen should unlock without any crashes or session wipes. * The Power Management window should open without errors. ACTUAL BEHAVIOR: * The display session is wiped after unlocking the screen (all applications are closed, no tray non-default tray icons are visible, etc). * I get an error when trying to access the Power Management window. * kwin crashes with "kwin_wayland[26256]: unknown active output" log message ADDITIONAL INFORMATION: * Night Light is not enabled. * The issue seems resolved by disabling screen power-off. * The system is up to date. SYSTEM INFORMATION: * OS: CachyOS x86_64 * Kernel: Linux 6.17.5-2-cachyos * Packages: 1837 (pacman) * Shell: fish 4.1.2 * Display (HWV2402): 1920x1080 in 24", 60 Hz [External] * * Display (HWV2402): 1920x1080 in 24", 60 Hz [External] * Display (HWV2402): 1920x1080 in 24", 60 Hz [External] * DE: KDE Plasma 6.5.0 * WM: KWin (Wayland) * WM Theme: Breeze * Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3/4] * Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4] * Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4] * Cursor: breeze (24px) * Terminal: konsole 25.8.2 * CPU: AMD Ryzen 9 7950X (32) @ 5.88 GHz * GPU: AMD Radeon RX 7900 XTX [Discrete] * Memory: 62.39 GiB * Swap: 62.39 GiB *** This bug has been marked as a duplicate of bug 495702 *** |