microsoft / wslg

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

can't start graphical apps due to Xwayland crash in Intel GPU driver #317

Open mjonsson1986 opened 3 years ago

mjonsson1986 commented 3 years ago

Environment


Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
10.0.21390
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
10
Your WSLg version: [Open 'Apps and Features' and check the version of 'Windows Subsystem for Linux GUI app support', e.g: 
1.0.22

# Steps to reproduce
1 launch e.g debian
install e.g firefox
and try to launch it
it dont work
"unable to init server"
<!--
Collect WSL logs if needed by following these instructions: https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#8-detailed-logs  
-->

**WSL logs**: 

* Attach WSLg logs from  `/mnt/wslg`

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

* `puseaudio.log`
* `weston.log`
* `versions.txt`

#  Expected behavior
firefox should launch
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->

# Actual behavior
it wont run
<!-- What's actually happening? -->
unable to init server 
[versions.txt](https://github.com/microsoft/wslg/files/6688099/versions.txt)
[weston.log](https://github.com/microsoft/wslg/files/6688100/weston.log)
mjonsson1986 commented 3 years ago

oops my dist are debian 10

hideyukn88 commented 3 years ago

@mjonsson1986, thank for reporting the issue. I have tried Debian 10 from Store and launch firefox, it's working fine. Would you please share /mnt/wslg/weston.log? thanks!

mjonsson1986 commented 3 years ago

the file are actually in the report. https://github.com/microsoft/wslg/files/6688100/weston.log weston.log

hideyukn88 commented 3 years ago

@mjonsson1986, thanks, it looks in your case, Xwayland is crashing, we haven't seen this anywhere-else. So in order to track further, we will need to collect core dumps of Xwayland. Just recently core dump is enabled and will be saved at /mnt/wslg/dumps, but it's not yet in 1.0.22. Would you please update to 1.0.24 and sends us one of dumps? thanks!

[17:59:20.627] Spawned Xwayland server, pid 49 [17:59:21.912] xserver crashing too fast: 134

mjonsson1986 commented 3 years ago

core.zip here..

https://github.com/microsoft/wslg/files/6706414/core.zip

hideyukn88 commented 3 years ago

@mjonsson1986, thanks for core dump. it looks the crash is originated from Intel GPU driver, can you try again with GPU disabled? thanks!

mjonsson1986 commented 3 years ago

yes how?

Den 25 juni 2021 19:00:45 skrev Hideyuki Nagase @.***>:

@mjonsson1986, thanks for core dump. it looks the crash is originated from Intel GPU driver, can you try again with GPU disabled? thanks!

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/microsoft/wslg/issues/317#issuecomment-868703934

hideyukn88 commented 3 years ago

@mjonsson1986, please refer https://github.com/microsoft/wslg/wiki/WSLg-Configuration-Options-for-Debugging. You will need to create .wslgconfig at specified path at Wiki with below contents. Please also make sure same env value is exported in your user-distro, too (below only controls system-distro). thanks!

[system-distro-env] LIBGL_ALWAYS_SOFTWARE=1

jorgemartinezgomez commented 2 years ago

Same problem here. X11 applications crash (gedit and others do work) because the Intel drivers don't work.

With the solution:

[system-distro-env] LIBGL_ALWAYS_SOFTWARE=1

It works perfectly again.

After investigating and executing "dxdialog" in Windows, I have verified that having the latest windows 11 drivers installed, the driver model is WDDM 2.5 instead of WDDM 3.0 that the drivers are supposed to install, and I suspect that is why the applications do not work X11.

Can I be correct? How can I install or activate WDDM 3.0? It is a celeron J4125 and the downloaded drivers are the ones indicated on the official wslg page.

mgood7123 commented 5 months ago

Same problem here. X11 applications crash (gedit and others do work) because the Intel drivers don't work.

With the solution:

[system-distro-env] LIBGL_ALWAYS_SOFTWARE=1

It works perfectly again.

After investigating and executing "dxdialog" in Windows, I have verified that having the latest windows 11 drivers installed, the driver model is WDDM 2.5 instead of WDDM 3.0 that the drivers are supposed to install, and I suspect that is why the applications do not work X11.

Can I be correct? How can I install or activate WDDM 3.0? It is a celeron J4125 and the downloaded drivers are the ones indicated on the official wslg page.

this doesnt work for me, i put it in /etc/wsl.conf and wsl --shutdown ; wsl and wayland still crashes