Bug 443187

Summary: [systemd] KWin sometimes does not exit on logout properly on wayland
Product: [Plasma] kwin Reporter: Samuel Reddy <samuelsumukhreddy>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: KingTChoka, lee295012, nate
Priority: NOR    
Version First Reported In: 5.22.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KWin doesn't crash

Description Samuel Reddy 2021-10-01 07:16:00 UTC
SUMMARY:
KWin will sometimes not exit when logging out when using systemd startup, you have to hit ctrl+alt+delete in order to exit out of kwin, but when you log back in, it takes a long time to start and there is only a black screen with a cursor.

STEPS TO REPRODUCE
1. Logout of Plasma a few times
2. On one of the logouts, kwin does not exit

OBSERVED RESULT:
KWin does not logout properly, because I can still launch krunner
And when logging back in, plasmashell doesn't start properly

EXPECTED RESULT:
Plasma logs out properly and logs back in properly

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx
Memory: 5.7 GiB of RAM
Graphics Processor: AMD Radeon™ Vega 8 Graphics

ADDITIONAL INFORMATION:
none
Comment 1 Vlad Zahorodnii 2021-10-04 12:12:57 UTC
Can you check whether kwin crashes? That can be done by attaching a debugger to kwin or checking coredumps.
Comment 2 Samuel Reddy 2021-10-04 21:44:47 UTC
Created attachment 142155 [details]
KWin doesn't crash

I ran 'echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
sudo gdb -pid $(pidof kwin_wayland) -batch -ex "set logging file kwin_wayland.gdb" -ex "set logging on" -ex "continue" -ex "thread apply all backtrace" -ex "quit"' and logged out of Plasma and got the bug, but there was no backtrace in the file. So KWin is not crashing.
Comment 3 Vlad Zahorodnii 2021-10-05 06:15:56 UTC
Hmm, this might be a ksmserver issue.
Comment 4 Samuel Reddy 2021-10-16 08:18:07 UTC
This bug seems to be fixed in plasma 5.23.
Comment 5 Nate Graham 2021-10-17 22:17:54 UTC
*** Bug 443814 has been marked as a duplicate of this bug. ***