wslg: Unable to start GUI application with "CreateWndow(): rdp_peer is not initalized"
I tried on two computers. One computer works perfectly (Dell XPS12), but another one doesn’t (ASUS Zephyrus G14).
Environment
Host OS: Microsoft Windows [Version 10.0.21364.1000] Guest OS: Ubuntu 20.04, 21.04 PC: ASUS Zephyrus G14 (Ryzen + GeForce RTX 2060)
shibukawa@LAPTOP-MM4JT0DC:/mnt/c/Users/yoshi$ echo $DISPLAY
:0
shibukawa@LAPTOP-MM4JT0DC:/mnt/c/Users/yoshi$ l -la /tmp/.X11-unix
lrwxrwxrwx 1 root root 19 Apr 29 09:00 /tmp/.X11-unix -> /mnt/wslg/.X11-unix/
shibukawa@LAPTOP-MM4JT0DC:/mnt/c/Users/yoshi$ ls -la /tmp/.X11-unix/
total 0
drwxrwxrwx 2 root root 60 Apr 29 09:00 .
drwxrwxrwt 5 root root 180 Apr 29 09:00 ..
srwxrwxrwx 1 shibukawa users 0 Apr 29 09:00 X0
Steps to reproduce
- Clean WSL environments: wsl --unregister Ubuntu
- Install Ubuntu: wsl --install -d Ubuntu
- Create user/password at first booting
- Run: sudo apt update && sudo apt dist-upgrade
- Run: sudo apt install x11-apps
- Run: xeyes or xedit
WSL logs:
weston.log versions.txt pulseaudio.log
Expected behavior
Application icon appears on task bar and application window appears on desktop.
Actual behavior
Do nothing (no icon on taskbar, xeyes command stuck on bash)
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16 (5 by maintainers)
@shibukawa , I looked at the feedback from you, and there are errors logged from Hyper-V socket layer and this is preventing mstsc from connecting to WSLg, thus mstsc terminated immediately and WSLg relaunching it, this repeats.
@kyaru92 , would you please file report using Feedback Hub, too ? more reports might help us to get more clues on this, thanks!