Skip to content
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

X11 applications with opengl blank window with GPU enabled #334

Open
intellild opened this issue Jun 28, 2021 · 15 comments
Open

X11 applications with opengl blank window with GPU enabled #334

intellild opened this issue Jun 28, 2021 · 15 comments
Labels
bug Something isn't working GPU

Comments

@intellild
Copy link

Environment

Windows build number: 10.0.22000.0
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.24

Steps to reproduce

glxgears

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

show gears

Actual behavior

image

@intellild intellild added the bug Something isn't working label Jun 28, 2021
@intellild intellild changed the title X11 applications blank window X11 applications with opengl blank window Jun 28, 2021
@onomatopellan
Copy link
Contributor

onomatopellan commented Jun 28, 2021

What GPU and what Windows driver version are you running?

What's the output for glxinfo -B ?

Does GALLIUM_DRIVER=llvmpipe glxgears work?

@intellild
Copy link
Author

llvmpipe works fine

here is the output of glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (Intel(R) UHD Graphics) (0xffffffff)
    Version: 21.1.3
    Accelerated: yes
    Video memory: 8179MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (Intel(R) UHD Graphics)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.1.3 - kisak-mesa PPA
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 21.1.3 - kisak-mesa PPA
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.1.3 - kisak-mesa PPA
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

@intellild
Copy link
Author

Where can I get the latest driver ? I noticed that the Intel driver in the readme link is more than one year old

@onomatopellan
Copy link
Contributor

intel so far has just released these https://downloadcenter.intel.com/download/29526
They need to release Windows 11 preview drivers yet.

So far Nvidia is the only manufacturer that truly cared about WSL2 support, often releasing drivers especially for CUDA support.

@intellild
Copy link
Author

updated to latest Intel driver, the problem still exists

@spronovo
Copy link
Collaborator

Hi @intellild, could you run dxdiag.exe (windows+r -> dxdiag.exe) on Windows, click on Save All Information... and attach the file here so we can see exactly which driver are you using.

@intellild
Copy link
Author

DxDiag.txt
@spronovo

@valinet
Copy link

valinet commented Jul 12, 2021

I have the same issue, unfortunately. Using Intel UHD Graphics 630. Can I run wsl on the dedicated NVIDIA GPU (I have a laptop with hybrid graphics)? Also, I am on Windows 11 as well, is that the problem? When will this finally be available with a proper retail Windows version? I have been waiting for this for a long time, similar to how disk mounting is available in WSL2 since at least one year ago but it till hasn't shipped with a stable Windows version yet...

@hideyukn88 hideyukn88 added the GPU label Aug 26, 2021
@hideyukn88 hideyukn88 changed the title X11 applications with opengl blank window X11 applications with opengl blank window with GPU enabled Aug 26, 2021
@hez2010
Copy link

hez2010 commented Oct 23, 2021

Same issue here with the latest Intel driver. And this also happens to Wayland applications.

@scottwillmoore
Copy link

scottwillmoore commented Dec 13, 2021

I have the same issue with an Intel i5-8250U (Intel UHD Graphics 620). I believe the bug is most likely due to the driver released by Intel, but this information may be of use to the WSLg team. My understanding is that a WDDM 3.0 driver is required. I updated to the latest Intel DCH driver which is a WWDM 3.0 driver, however now I also see a blank, blank viewport for OpenGL applications.

Windows build: Windows 11, 10.0.22000.348
Linux distribution: Ubuntu 20.04, 2021-12-07
WSLg version: 1.0.26
Intel DCH driver: 30.0.101.1069

dxdiag.txt
stderr.log
versions.txt
weston.log

glxinfo -B

inxi -F

I have also tried the beta Intel DCH driver, but this also did not appear to fix the issue.

Intel beta DCH driver: 30.0.101.1121

I sent a bug report to Intel, however someone at Microsoft may have a more direct contact.

EDIT: Happy to provide any more information required.

@westonNexben
Copy link

#455 (comment)

@scottwillmoore
Copy link

I did recieve an update from Intel, with fairly unsatisfactory answer:

This has been checked by our Engineers and their findings are as follows: There are a lot of dependencies, not just the graphics that can cause the blank screen that the customer has encountered. Since the issue is with the WSLg, it would be best if the customer contacts Microsoft about the issue.

We understand that this is not the resolution that you are looking for however, it would be best to contact Microsoft Support.

Not sure on the best way to proceed. Would you have any suggestions or ideas @spronovo to help find the root cause.

@Zopolis4
Copy link

Having the same issue, my wsl is up-to-date as of this morning, happy to provide any other info if it will help.

@Zopolis4
Copy link

setting LIBGL_ALWAYS_SOFTWARE to 1 fixes it, although then I'm not running with hw accel

@plantago
Copy link

On some laptops, e.g. Lenovo T15g, when an external monitor is connected the NVIDIA adapter is activated.
You have to assign nvidia to the environment variable MESA_D3D12_DEFAULT_ADAPTER_NAME to force OpenGL to use the nvidia graphics card. See GPU selection in WSLg.

export MESA_D3D12_DEFAULT_ADAPTER_NAME=nvidia
glxgears

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GPU
Projects
None yet
Development

No branches or pull requests

10 participants