Locietta / xanmod-kernel-WSL2

Xanmod kernel for WSL2, built by clang with ThinLTO enabled. Build & Release are automated by Github Action.
GNU General Public License v2.0
88 stars 20 forks source link

wslg stopped working after recent changes. #91

Open taalojarvi opened 9 hours ago

taalojarvi commented 9 hours ago

Hi @Locietta

Recent updates to the kernel have broken wslg support. Opening gedit on my instance leads to the terminal hanging. I've collated journalctl logs for the same which points to xWayland crashing.

Issue does not persist in the microsoft-standard kernel.

Locietta commented 8 hours ago

gedit works for me though, what distro are you currently on?

taalojarvi commented 8 hours ago

gedit works for me though, what distro are you currently on?

Ubuntu 24.10

This issues occurs when systemd is enabled in /etc/wsl.conf. Disabling systemd fixes the issue. This isn't the case however in the stock kernel.

4-FLOSS-Free-Libre-Open-Source-Software commented 8 hours ago

A systemd related change was here:

Do you use custom Kernel CMD line kernelCommandLine ?

I've collated journalctl logs for the same which points to xWayland crashing

.

debugConsole=true boolean false Boolean to turn on an output console Window that shows the contents of dmesg upon start of a WSL 2 distro instance

taalojarvi commented 7 hours ago

A systemd related change was here:

* Commit [9bcd70d](https://github.com/Locietta/xanmod-kernel-WSL2/commit/9bcd70d8f20bd20d30102825749e62d7d67e6c8b)

Do you use custom Kernel CMD line kernelCommandLine ?

I've collated journalctl logs for the same which points to xWayland crashing

I'm building the kernel with the change reverted. Will post an update if it fixes the issue

taalojarvi commented 6 hours ago

Reverting 9bcd70d8f20bd20d30102825749e62d7d67e6c8b seems to have resolved the issue.

Andarwinux commented 5 hours ago

I can't reproduce the problem unless I use wslg from a headless environment like ssh, but it happens with the official kernel too.