microsoft / wslg

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

(1.0.59 pre-release) Graphic glitch with QT Installer and QT Creator (and other applications) #1128

Closed fscheuMoba closed 1 year ago

fscheuMoba commented 1 year ago

Windows build number:

10.0.22621.0

Your Distribution version:

22.04

Your WSL versions:

WSL-Version: 2.0.6.0 Kernelversion: 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.25880.1000-230602-1350.main Windows-Version: 10.0.22621.2428

Steps to reproduce:

1. Download QT online installer: wget https://d13lb3tujbc8s0.cloudfront.net/onlineinstallers/qt-unified-linux-x64-4.6.1-online.run 2. Make it executable: chmod +x qt-unified-linux-x64-4.6.1-online.run 3. Start Installer: ./qt-unified-linux-x64-4.6.1-online.run

WSL logs:

weston.log stderr.log

WSL dumps:

No response

Expected behavior:

QT Installer and QT Creator should work without graphic glitch

Actual behavior:

If I start the QT Installer it looks like this image

Same with QT Creator image

If I move the window or move the mouse over the window the glitch disappears sometimes. The same happens if I make the window fullscreen.

The glitch seems also happen with other, non QT related, apps like Tilix, Audacity and Wireshark

fscheuMoba commented 1 year ago

It seems like I fixed this by myself!

I had compiled a custom kernel (version 5.15.74.2) with CAN bus support in the past and loaded this by the .wslconfig. If I do not load this kernel, it works without graphic glitches!

So if you have the same problem, check if you have loaded an old custom kernel. You can check if a custom kernel is loaded by comparing the kernel version from wsl --version (in powershell) and uname -r (in linux wsl shell). If the version in uname -r is lower, a old custom kernel is loaded.

(I also activated the old kernel again and it continuous working without graphic glitches. I did a wsl --shutdown, maybe simply this fixed the glitch. I sadly cannot reproduce this anymore)

billyliuschill commented 1 year ago

I took https://github.com/microsoft/wslg/issues/1130#issuecomment-1813058202 his advice and just updated my nvidia drivers and fixed my issue. I then ran wsl --shutdown and rebooted wsl and everything operates fine now. No more application tearing (taring?).