Bug 429087

Summary: Entire session crashes closing all running apps if kwin_wayland crashes
Product: [Plasma] kwin Reporter: smit <smit17xp>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED LATER    
Severity: crash CC: bugseforuns, herzenschein, hsantanna, kde, nate, postix, s.kde, smit17xp, uhhadd
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.20.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description smit 2020-11-14 11:20:19 UTC
SUMMARY

If kwin_x11 crashes, It restarts and session is not crashed. If I manually kill it, I can just easily restart it from terminal and all my running apps are not affected which is life saver but when kwin_wayland crashes, entire session crashes which terminates all running applications.

STEPS TO REPRODUCE
1. start plasma in wayland mode
2. somehow crash kwin_wayland

OBSERVED RESULT

Entire session crashes and all running (GUI)apps are closed

EXPECTED RESULT

kwin_wayland restarts without closing any running app like kwin_x11

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Comment 1 Nate Graham 2020-11-16 19:16:15 UTC
I'm not sure if it's possible to fix this due to Wayland's inherent architecture. It sure would be nice to if it's possible though.
Comment 2 Vlad Zahorodnii 2020-11-25 09:13:52 UTC
Well, some work is being done to make apps survive wayland compositor crashes.
Comment 3 Janet Blackquill 2020-12-20 04:17:33 UTC
Can this be closed now that https://invent.kde.org/plasma/kwin/-/merge_requests/483 has landed?
Comment 4 Thiago Sueto 2020-12-20 22:04:10 UTC
(In reply to Jan Blackquill (Carson Black) from comment #3)
> Can this be closed now that
> https://invent.kde.org/plasma/kwin/-/merge_requests/483 has landed?

I'm afraid not. That fix was merged three weeks ago and I updated my git installation today: while SIGSEV applied to KWin does not crash kwin_wayland, SIGKILL still causes this issue, sending the user back to the login screen.

This occurs even when not manually triggered, for instance bug 428268 is still easily reproducible and takes the whole session with it.
Comment 5 Thiago Sueto 2020-12-20 22:08:29 UTC
Sorry, I misread, it was merged 5 days ago.

And for the testing I used killall kwin_wayland, sudo kill -SIGSEGV <pid> and sudo kill -SIGKILL <pid>.
Comment 6 David Edmundson 2020-12-20 22:49:43 UTC
This is the expected behaviour at the current point in time.
Comment 7 Nate Graham 2020-12-31 15:04:38 UTC
To clarify, we are working to improve this incrementally.