-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glitches in GUI applications #1148
Comments
Addition with some videos: Sometimes it works: all_good.mp4Sometimes it does not work: all_bad.mp4 |
Downgrading to 2.0.4 seems to be an option: |
Amazing @vielhuber, that sounds promsing. good detective work! How would one go about with downgrading wsl? Did you succeed? Is the glitching gone for you? |
I tried:
Then it worked until a restart. Identified that after boot I manually once always need to run I can't downgrade at the moment and am waiting for an official fix (see #1130). |
Will wait for an official fix then also. Untl then I will run my wsl gui applications over https://mobaxterm.mobatek.net/ . Give it a try, it's cool! |
The exact issue here. @arvydasg could you try the downgrading suggestion? |
Surprisingly the issue does not repeat anymore. Will try it if it happens again. |
Same issue here. Windows 11 with following WSL info
I did an update in Intel Drivers update and Windows Update simultaneously so not sure what broke it. However, I tried the following: -In .wslgconfig I added
-Restarted wsl. Worked. Maybe other people try this and post their feedback. |
¡Worked for me! |
Worked For Me! Thanks! |
Same issue unfortunatelly with latest installation in wsl 2 (Ubuntu) And it's still not fixed.. |
I had a similar problem. I installed Kali in WSL then I installed x11-apps just for a simple test.
|
Well that didn't helped me... Probably it's an bug in the code since I'm not the only person who have these issues so I hope that WSLg developers will look into this case and at least try to fix it from their side. |
This does not work for me after pc restart. |
It is .wslgconfig |
Thanks it worked on windows 11 pro 22H2 with Ubuntu. |
FYI I had to put the .wslgconfig file in C:\ProgramData\Microsoft\WSL. The WSL folder didn't exist so I had to create it manually. |
So I was having this problem as well, nothing above worked so, identifying the problem in wslg, I disabled it by adding in C:\Users\youruser\ .wslconfig Then I used MobaXterm as X server, exported its display destination in the $DISPLAY variable and all solved. |
Same problem. It is intermittent. I have updated NVIDIA and Intel drivers, but that had no effect. The problem still arises, seemingly at random. |
Same problem. After windows launch stopping wsl and restarting it helps for the day |
When I installed xfce4, I encountered this issue. There was no problem before this. |
The same happened to me today. Used |
I just ran into this as well on a fresh install of WSL2.
Running on a Vega 56 GPU, and didn't experience it on the older version of WSL2 I had installed previously. Updating the AMD drivers didn't resolve it. Following the suggestion in the thread to add the What are the implications of setting the |
Well, GPU acceleration in WSLg has been a bit questionable. You can read this: However, there are apps that may expect the GPU acceleration to be on so in case something crashes, you may have to turn it on. From my side, since I do mostly development in WSLg, having it on or off, doesn't bother me. I had it on for a couple of apps that were 'nice-to-use/have', but since this bug, I turned it off. I may turn it on if they fix the bug, but leaving it off won't hurt my daily programming life in WSLg. |
Unlike seemingly everyone else here ... I don't have this issue when wsl starts up. But if I shut wsl down and restart it only then do I start seeing the issue, until I reboot my computer. I figure I must be doing something wrong when I shut it down and restart it. |
Have same issue
|
WSL version 2.0.9.0: glitches occur. |
WSL version 2.1.1.0 seems to work ! |
Coming back to say I am encountering this again. Specs:
EDIT: Updating to pre-release |
Following on from my earlier post, having seen several mentions of newer versions of WSL, I updated around a week ago to the prerelease using |
This is interesting how you solved your issues with
My WSL version
I did it with
I found out about this option at microsoft/WSL#8931 I never had the glitch ever again. |
thank you, this worked! |
Sometimes it also requires killing "wslservice.exe" from Task Manager. |
Thank you! This worked for me as well, when I updated to: |
What worked for me: 'sudo apt install dbus-x11' Not sure why it is not installed in WSL2 when an x11/GUI app is installed, but installing it fixed all my GUI apps, including ones that wouldn't open. |
@TheNavyBear, did that fix a specific GUI app or all GUI apps? |
I think this is the solution to my problem but I am too dumb to understand what I need to do : ( I don't know what it means to add things or how to open wslgconfig, any help on what I need to type? |
I was developing my Game engine and decided to use WSL (Debian) to test my engine. It opened but when the window frame would not update it was cause the lining issues, many people see above. but doing a |
That fixed the glitch artifacts in my GUI apps, it fixed issues where preferences couldn't be set in GNOME apps, and it fixed two apps that wouldn't even open. This was the case on all 3 of my Debian WSL2 systems. |
@kdavisee What you have to do is to go to your windows user folder and create the file.
|
Thanks, this worked |
Can someone here explain the difference between restarting the computer, a full Windows reboot, and |
worked. a big thank for you. |
creating the .wslgconfig worked. looking forward to the next release with the fix. |
You can update to latest wsl where the issue is fixed (2.1.5). Just run in powershell as admin
|
I guess this issue can be closed, as we now have a stable version fixing it ( |
I confirmed with the following version combination GUI apps work, without the .wslgconfig file. I'm ok you close this issue.
|
Nah. Still seeing glitches..
I did add to .wslgconfig
But this seems just to make it work before the Chromium loads the tab, maybe just lucky and didn't notice before. Then I can see the tab, but when it has loaded, all broken. I need to launch the Chromium itself with Lenovo X1 Carbon Gen13, so Intel integrated graphics. No NVIDIA to update. Intel would seem to have later drivers to download manually but nothing offers them automatically. So don't know what problems I would get there from not using OEM drivers. And the |
GitHubDesktop_9UkKKiXMhw.mp4Is this the same issue? |
@nikosandreou thanks for linking to your issue, your hint on downgrading the Intel Graphics drivers was very useful! Since my laptop has an NVIDIA dGPU I simply used |
Windows build number:
10.0.22631.0
Your Distribution version:
22.04
Your WSL versions:
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.2715
Steps to reproduce:
WSL logs:
stderr.log
weston.log
pulseaudio.log
WSL dumps:
No response
Expected behavior:
WSL should run gui applications without the glitches.
Actual behavior:
I had wsl working just fine until yesterday! Everything I am about to eplain about was working fine yesterday.
Yesterday I have installed another ubuntu version on my wsl, alongside fully working wsl version(was testing out different emacs versions). So I had 2x ubuntu versions + the default docker wsl's.
This strange gui glitch started to happen when I launch emacs gui application. If I launch it in the terminal - all is good.

emacs gui with glitches:
emacs over terminal:

When I move the emacs gui screen - the glitch dissapears. When I stop moving it - it reappears.
I thought okay I can not work like this, I need to start fresh. I then unregistered both ubuntu distros and went to "add remove programs" to uninstall those ubuntu versions.
I installed ubuntu from terminal by wls --install ubuntu or wsl --install or from ms store, restarts...- same problem.
I then disabled WSL feature. Restarts... installed wsl again, did wsl --set-default-version 2 - same problem.
I then tried to install another GUI application - nautilus and VLC - same probelm with those:


I then thought thanks god its not related with emacs, its a gui bug in general with all linux applications over wsl. Nothing similar happens on my windows apps.
That helped me to narrow the problem down. Insead of googling "emacs gui glitches in wsl", I started to google for "wsl gui glitches".
I then found out about wslg and that it is responsible for launching gui applications over wsl.
I then installed mobaxterm since I guess it does not use wslg, but uses xserver. I then tried to launch emacs with it:
x server off - emacs launched in terminal mode:
x server on - emacs launched in gui mode:
Finally emacs has no glitches!!!
I dont really want to reset my windows to make wsl not glitch anymore, can you help me find a way what to update/remove/reinstall to make these glitches go away?
Thank you!
p.s. this is everything I have installed right now that I know regarding wsl, hope that helps:
The text was updated successfully, but these errors were encountered: