Created attachment 147945 [details] excerpt from system logs during time of crash SUMMARY While using the wayland session X11 programs running via Xwayland(such as STM32CubeIDE and Xilinx Vivado) randomly crash with no useful information in logs. After this happens, the session continues to work without any issues but X11 programs are not displayed anymore. They do run in the background but aren't displayed. This can only be fixed by logging out and in. Unfortunately no core dumps are generated and the logs only tell that Xwayland/the X11 server has died. Unfortunately I don't have much than can be useful for identifying the cause but I would be more than happy to perform troubleshooting if anyone has any suggestions. STEPS TO REPRODUCE 1. Run any X11 program via Xwayland 2. Wait for an indeterminate/seemingly random amount of time OBSERVED RESULT Xwayland(and thus the program) crashes and afterwards all X11 programs aren't being displayed anymore until the session gets restarted EXPECTED RESULT The program continues to run without issues SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.17.1-zen1-1-zen (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION
Please report Xwayland bugs to the xserver project: https://gitlab.freedesktop.org/xorg/xserver/-/issues In order to get a usable backtrace though, what you can do is to ssh in from a different PC (or your phone) and debug Xwayland with "sudo gdb $(pidof Xwayland)". Use "c" to let it continue running and wait until it crashes. Once it crashed, "bt" will retrieve a backtrace.
(In reply to Zamundaaa from comment #1) > Please report Xwayland bugs to the xserver project: > https://gitlab.freedesktop.org/xorg/xserver/-/issues > > In order to get a usable backtrace though, what you can do is to ssh in from > a different PC (or your phone) and debug Xwayland with "sudo gdb $(pidof > Xwayland)". Use "c" to let it continue running and wait until it crashes. > Once it crashed, "bt" will retrieve a backtrace. Thanks for the suggestion, the bug occurred again while gdb was running but "bt" just returns "no stack".
Also I forgot to mention that the whole panel freezes for a while too if I try to log out via the application launcher after this occurs. The launcher freezes for a while when I click log out and eventually closes without logging out so this isn't only related to xwayland I guess.
Created attachment 148961 [details] SDDM wayland-session.log SDDM wayland-session.log
I have the same bug i think. Since around the end of December (Arch repos) i get this bug. After around 3 hours of gameplay in World of Warcraft (Wine) all xwayland applications vanish (i guess the xserver died). This happens reproducibly. Switching wine version or between dxvk/vkd3d does not solve the issue. However if i run the same setup in a Gnome session i don't encounter this bug. I have attached my own logs.
Created attachment 148962 [details] journalctl
>Thanks for the suggestion, the bug occurred again while gdb was running but "bt" just returns "no stack". That typically means it didn't crash per-se but hit an assert and closed, technically gracefully. Try adding "break exit" after attaching before typing "continue"
Isn't this the same issue as 452062 ?
(In reply to Matej Mrenica from comment #8) > Isn't this the same issue as 452062 ? That issue is about xwayland apps not launching at all if I'm not mistaken, this one's about xwayland apps randomly disappearing/crashing and xwayland apps not starting to launch after that.
Does installing xorg-xwayland-git from AUR fix this issue?
Created attachment 149165 [details] gdb log Attached gdb via ssh but xwayland just shuts down gracefully as already stated above. Adding adding a breakpoint like David described results in xwayland constantly hitting it as i start my program. From my observations i would assume that some part of plasma/kwin is shutting down the xserver. Sadly i do not have the knowledge to debug why it is doing this.
Looks to me like there's an upstream MR to fix this: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/905.
(In reply to Matej Mrenica from comment #10) > Does installing xorg-xwayland-git from AUR fix this issue? Installed from git and after a first test the crash seems to be gone.
Sadly i have to report that i encountered the bug again despite xorg-xwayland-git.