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

libEGL fatal: did not find extension DRI_Mesa version 1 when trying to run GUI apps #12581

Open
the-alex-paterson opened this issue Feb 12, 2025 · 6 comments

Comments

@the-alex-paterson
Copy link

I followed the instructions here and tried to install gnome-text-editor

When I try to run the command gnome-text-editor ~/.bashrc I'm getting this message in the terminal libEGL fatal: did not find extension DRI_Mesa version 1

I tried going through the troubleshooting page here but I'm still having issues.

At the bottom of that page are a list of commands that might be needed to help solve this.

alex@CSD012188-LW10:~$ cat /mnt/wslg/versions.txt
WSLg ( x86_64 ): 1.0.65+Branch.main.Sha.25d8697d5049e1994baa6ba542f507347b608ad4
Built at: Wed Aug 14 21:11:14 UTC 2024
Mariner: VERSION="2.0.20240609"
DirectX-Headers:
mesa:
pulseaudio: 6f045ff0dca233a939a2aba815f84d177e294122
FreeRDP: c4030980b29322a9cb2190711a5fadeeeb8b6a33
weston: f227edd681479ec3cb2290a25d84d2d3462aebfa
alex@CSD012188-LW10:~$ echo $DISPLAY
:0
alex@CSD012188-LW10:~$ ls -la /tmp/.X11-unix
total 4
drwxrwxrwx  2 root root   60 Feb 12 15:40 .
drwxrwxrwt 11 root root 4096 Feb 12 15:45 ..
srwxrwxrwx  1 alex alex    0 Feb 12 15:40 X0
alex@CSD012188-LW10:~$ ls -la /tmp/.X11-unix/
total 4
drwxrwxrwx  2 root root   60 Feb 12 15:40 .
drwxrwxrwt 11 root root 4096 Feb 12 15:45 ..
srwxrwxrwx  1 alex alex    0 Feb 12 15:40 X0

weston.log

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@elsaco
Copy link

elsaco commented Feb 12, 2025

@the-alex-paterson Mesa should know where the OpenGL driver is, however looks like it's not finding it. Try adding the LIBGL_DRIVER_PATH environment variable pointing to /usr/lib/x86_64-linux-gnu/dri

Or use for a quick test:

LIBGL_DRIVER_PATH=/usr/lib/x86_64-linux-gnu/dri gnome-text-editor

and see if it launches okay.

To get more info about your Mesa setup run glxinfo -B after adding mesa-utils package if not already installed.

@the-alex-paterson
Copy link
Author

The quick test didn't work.

This is what I see when I run glxinfo -B

alex@CSD012188-LW10:~$ glxinfo -B
name of display: :0
did not find extension DRI_Mesa version 1
did not find extension DRI_Mesa version 1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  148 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  41
  Current serial number in output stream:  42

@elsaco
Copy link

elsaco commented Feb 12, 2025

Please check /usr/lib/x86_64-linux-gnu/dri for the drivers. On WSL it should look like:

elsaco@texas:~$ ls -l /usr/lib/x86_64-linux-gnu/dri/
total 61416
lrwxrwxrwx 1 root root       14 Dec 16 02:17 crocus_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 d3d12_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 i915_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 i965_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 iris_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 kms_swrast_dri.so -> libdril_dri.so
-rw-r--r-- 1 root root   104776 Dec 16 02:17 libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 nouveau_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 nouveau_vieux_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 r200_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 r300_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 r600_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 radeon_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 radeonsi_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 swrast_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 virtio_gpu_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 vmwgfx_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 02:17 zink_dri.so -> libdril_dri.so

This is the output of glxinfo -B on my system:

elsaco@texas:~$ 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 (NVIDIA RTX A4000) (0xffffffff)
    Version: 24.2.8
    Accelerated: yes
    Video memory: 32479MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA RTX A4000)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Notice the device D3D12, that's the driver used by WSL for graphics.

@the-alex-paterson
Copy link
Author

This is what I see when I enter ls -l /usr/lib/x86_64-linux-gnu/dri/

alex@CSD012188-LW10:~$ ls -l /usr/lib/x86_64-linux-gnu/dri/
total 61416
lrwxrwxrwx 1 root root       14 Dec 16 10:17 crocus_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 d3d12_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 i915_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 i965_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 iris_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 kms_swrast_dri.so -> libdril_dri.so
-rw-r--r-- 1 root root   104776 Dec 16 10:17 libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 nouveau_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 nouveau_vieux_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 r200_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 r300_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 r600_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 Apr  8  2024 radeon_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 radeonsi_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 swrast_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 virtio_gpu_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 vmwgfx_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 Dec 16 10:17 zink_dri.so -> libdril_dri.so

@tcrasset
Copy link

Exact same error on my Ubuntu machine since today (gnome-text-editor was definitely working fine yesterday/the day before), which may show that it's not a Windows specific bug :

➜ ls /usr/lib/x86_64-linux-gnu/dri -l
total 154400
lrwxrwxrwx 1 root root       14 déc.  16 11:17 crocus_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 d3d12_dri.so -> libdril_dri.so
-rw-r--r-- 5 root root 15962232 avril 12  2024 d3d12_drv_video.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 i915_dri.so -> libdril_dri.so
-rw-r--r-- 4 root root 15693800 avril  8  2024 i965_dri.so
-rw-r--r-- 1 root root  1772232 avril 18  2024 i965_drv_video.so
-rw-r--r-- 1 root root 13589472 déc.  29  2023 iHD_drv_video.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 iris_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 kms_swrast_dri.so -> libdril_dri.so
-rw-r--r-- 1 root root   104776 déc.  16 11:17 libdril_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 nouveau_dri.so -> libdril_dri.so
-rw-r--r-- 5 root root 15962232 avril 12  2024 nouveau_drv_video.so
-rw-r--r-- 4 root root 15693800 avril  8  2024 nouveau_vieux_dri.so
-rw-r--r-- 4 root root 15693800 avril  8  2024 r200_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 r300_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 r600_dri.so -> libdril_dri.so
-rw-r--r-- 5 root root 15962232 avril 12  2024 r600_drv_video.so
-rw-r--r-- 4 root root 15693800 avril  8  2024 radeon_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 radeonsi_dri.so -> libdril_dri.so
-rw-r--r-- 5 root root 15962232 avril 12  2024 radeonsi_drv_video.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 swrast_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 virtio_gpu_dri.so -> libdril_dri.so
-rw-r--r-- 5 root root 15962232 avril 12  2024 virtio_gpu_drv_video.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 vmwgfx_dri.so -> libdril_dri.so
lrwxrwxrwx 1 root root       14 déc.  16 11:17 zink_dri.so -> libdril_dri.so
➜ glxinfo -B
name of display: :0
did not find extension DRI_IMAGE_DRIVER version 1
did not find extension DRI_Mesa version 1
failed to load driver: iris
did not find extension DRI_Mesa version 1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  46
  Current serial number in output stream:  47
➜ uname --machine --processor --kernel-name --kernel-release --kernel-version
Linux 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants