microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.21k stars 305 forks source link

GUI apps freeze and never launch on new windows 11 install #505

Open AceHack opened 3 years ago

AceHack commented 3 years ago

Environment


Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows 11 Version 10.0.22000.258

Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
Ubuntu 20.04

Your WSLg version: [Open 'Apps and Features' and check the version of 'Windows Subsystem for Linux GUI app support', e.g: 0.2.3.13]
Windows Store Version
PS C:\> wsl --version
WSL version: 0.47.1.0
Kernel version: 5.10.60.1
WSLg version: 1.0.29
Windows version: 10.0.22000.258
PS C:\> wsl --status
Default Distribution: Ubuntu
Default Version: 2
WSL version: 0.47.1.0
Kernel version: 5.10.60.1
WSLg version: 1.0.29
Windows version: 10.0.22000.258

Steps to reproduce

Install windows 11, install wsl, install ubuntu, try to run graphic app

WSL logs:

You can access the wslg logs using explorer at: \\wsl$\<Distro-Name>\mnt\wslg (e.g.: \\wsl$\Ubuntu-20.04\mnt\wslg)

Expected behavior

GUI apps

Actual behavior

GUI apps freeze

Also, NVIDIA deep learning ./BlackScholes is fine with GPU acceleration If I try to run sudo pip install tensorflow-directml it freezes just like a GUI app and it will never install nvidia-smi also works fine

ls /tmp/.X11-unix
X0
AceHack commented 3 years ago

I uploaded via feedback hub too like the instructions say

AceHack commented 3 years ago

If it's any help, I also see tons of Wayland connections in my RDP, which might help with figuring out exactly where the problem is occurring.

Just like in this bug https://github.com/microsoft/wslg/issues/506

Swicegood commented 3 years ago

I seem to have the exact same problem. Did you ever make any progress on this? I left a feedback hub, but not a GitHub issue.

AceHack commented 3 years ago

I did not make any progress, it's sad, such an awesome feature, I want to play with it SO BAD!!

spronovo commented 3 years ago

Thanks @AceHack for providing logs, sorry you're having trouble with this.

This is pretty odd. It looks like XWayland might have hung after Weston started it, but i'm not sure why. The last line in your log is Xwayland being spawn, it should be followed by another line when the window manager initializes, but that never happened. Could you run the following commands after launching a GUI application.

ls -la /tmp/.X11-unix
ls -la /mnt/wslg/.X11-unix

Also, from an elevated Windows command prompt, can you run wsl --system. This will get you into the system distro where WSLg servers are running. run ps -aux and share the output.

West7780 commented 2 years ago

I'm getting a similar issue intermittently