Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wslg stopped working after recent changes. #91

Open
taalojarvi opened this issue Nov 22, 2024 · 11 comments
Open

wslg stopped working after recent changes. #91

taalojarvi opened this issue Nov 22, 2024 · 11 comments
Labels
INFO-NEEDED need more investigation

Comments

@taalojarvi
Copy link
Contributor

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 Locietta added the BUG Something isn't working label Nov 22, 2024
@Locietta
Copy link
Owner

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

@Locietta Locietta added INFO-NEEDED need more investigation and removed BUG Something isn't working labels Nov 22, 2024
@taalojarvi
Copy link
Contributor Author

taalojarvi commented Nov 22, 2024

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
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

Reverting 9bcd70d seems to have resolved the issue.

@Andarwinux
Copy link
Contributor

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

@taalojarvi taalojarvi changed the title wslg stoppeed working after recent changes. wslg stopped working after recent changes. Nov 22, 2024
@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

Not reproducible in 6.11.9-locietta-WSL2-xanmod1 neither 6.6.62-locietta-WSL2-xanmod1.1

@taalojarvi
Copy link
Contributor Author

taalojarvi commented Nov 24, 2024

Strange. Issue is still reproducible on my side. Please check if systemd is enabled is wsl.conf. Issue is not reproducible if systemd is disabled.

I checked again on build - 6.11.10-locietta-WSL2-xanmod with systemd enabled. Still doesn't work on my side.

I reverted 9bcd70d and built this image - systemd is still enabled, GUI apps work perfectly fine.

I'm testing this on Ubuntu oracular 24.10 x86_64 by launching the 'gedit' and 'meld' app.

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

systemd enabled Ubuntu 24.04 noble

@Andarwinux
Copy link
Contributor

What is your wsl version? (wsl --version)

@taalojarvi
Copy link
Contributor Author

What is your wsl version? (wsl --version)

WSL version: 2.4.4.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.2454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INFO-NEEDED need more investigation
Projects
None yet
Development

No branches or pull requests

4 participants