microsoft / wslg

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

Cannot open display (westen.log says X11 server crashes too fast?) #550

Open FurtherV opened 2 years ago

FurtherV commented 2 years ago

Environment

Windows build number: Version 10.0.22000.282
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.26

Steps to reproduce

  1. Install WSL (I ran "wsl --install" and also enabled Hyper Visor in Additional Features)
  2. Install Ubuntu 20.04
  3. Run apt update and apt upgrade
  4. Install GIMP and / or x11-apps
  5. Run GIMP or xcalc or xeyes or xclock
  6. Result: Can not open display with a x11 server crashes too fast message in westen.log

Note: I have repeated those steps probably 3 times now already on my laptop, including uninstalling WSL completely and reinstalling it again. The issue stays.

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

Actual behavior

hualex commented 2 years ago

Same issue happened on my laptop. A silly question from my side. According to your instruction, I should be able to access wslg log. Following is a screenshot from my laptop, I cant find Wslg folder. I hope there is a solution to solve it. image

hideyukn88 commented 2 years ago

@FurtherV, thanks for reporting the issue, do you see any dump files at /mnt/wslg/dumps?

@hualex, your issue seems different, if there is no wslg folder, that indicates our system-distro is failing to start. please file report using Feedback Hub from Windows side, and when it asks repro, please type "wsl --system" and that should error and our Feedback Hub will capture the necessary logging for diagnostics.

FurtherV commented 2 years ago

@hideyukn88 No, the folder /mnt/wslg/dumps is empty.

hideyukn88 commented 2 years ago

@FurtherV, sorry for late response, if you are still experiencing this issue, would you please share /mnt/wslg/stderr.log? thanks!