Bug 447163 - Applications abruptly killed under wayland, can't restart
Summary: Applications abruptly killed under wayland, can't restart
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.22.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-18 11:54 UTC by Reuben
Modified: 2022-01-11 22:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben 2021-12-18 11:54:59 UTC
Hard to reproduce wayland bug. Not sure where to find appropriate log.

I was using chrome/intellij on separate virtual desktops. While typing in intellij, it was abruptly terminated. When I try to restart it, I get the following (which leads me to believe that something in wayland crashed):

Start Failed
Failed to initialize graphics environment

java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
	at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:104)

When I attempt to restart chrome, I get (less usefully):

“google-chrome” terminated by signal SIGTRAP (Trace or breakpoint trap)

Other apps remained open or can be started (firefox, terminator).
Comment 1 Reuben 2021-12-18 14:27:33 UTC
This is repeatable. 

Running under lightdm this time (previously under sddm) it brought up the KDE crash handler, which showed that plasmashell had exited unexpectedly (IIRC error 1826). This had the result of crashing most of my applications; terminator was still present but wouldn't accept input. I could bring up krunner but couldn't type into it either. 

Please let me know where to find relevant logs and I can try again.

Version: 4:5.22.5-0ubuntu1
Comment 2 Reuben 2021-12-20 13:31:04 UTC
This appears to have been fixed in 5.23.4 (pending a full day's testing without it happening).

However, the version I was encountering it on is the one shipped with kubuntu 21.10, so you may want to push a patch down to 5.22 given that there are another 4 months before kubuntu users will get the fix (without using backports), given that it's a showstopper to using wayland.
Comment 3 Nate Graham 2022-01-11 22:17:22 UTC
Unfortunately 5.22 is no longer supported, so it would be up to distros to patch it. Only LTS Plasma versions continue to receive support after the next version is released.