microsoft / wslg

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

There is a small chance of a display error when launching gui applications. #1182

Open wzhengsen opened 5 months ago

wzhengsen commented 5 months ago

Windows build number:

Win32NT 10.0.22631.0 Microsoft Windows NT 10.0.22631.0

Your Distribution version:

22.04

Your WSL versions:

WSL 版本: 2.0.14.0 内核版本: 5.15.133.1-1 WSLg 版本: 1.0.59 MSRDC 版本: 1.2.4677 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows 版本: 10.0.22631.3007

Steps to reproduce:

动画

WSL logs:

stderr.log weston.log pulseaudio.log

WSL dumps:

No response

Expected behavior:

No response

Actual behavior:

When I launch the gui app directly by clicking on the Text Editor icon on the desktop for the first time after completely shutting down wsl (wsl --shutdown), then there will be a relatively small probability (about 20%?) that the gui app will be launched. result in a display error.

MFHuniovi commented 4 months ago

Any news on this error? It happens all the time and I want to use the gui for the rviz and gazebo programs.

arei-o commented 4 months ago

Also looking for a resolution here.

arei-o commented 4 months ago

Found this workaround here: https://github.com/microsoft/wslg/issues/1148#issuecomment-1829126708

MFHuniovi commented 4 months ago

Found this workaround here: #1148 (comment) That didn't work for me.

I read this comment https://github.com/microsoft/wslg/issues/1195#issuecomment-1942085368 so I updated my wsl to the latest pre-release version but it didn't work for me (now I don't know how to recover an old version of wsl). This is my screen now image Everything works except gazebo