You are not logged in.

#1 2024-09-20 08:08:22

faileon
Member
Registered: 2024-09-20
Posts: 7

[SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

Hello everyone,
after recent updates one of my commonly used applications mongodb-compass stopped working and throws the following error:

[58919:0920/094826.811360:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003009
[58919:0920/094826.811526:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[58919:0920/094826.811616:ERROR:native_pixmap_egl_binding.cc(109)] Unable to initialize binding from pixmap
[58919:0920/094826.811714:ERROR:ozone_image_backing.cc(365)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[58919:0920/094826.811785:ERROR:shared_image_manager.cc(229)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[58919:0920/094826.812035:ERROR:gpu_service_impl.cc(1124)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[58767:0920/094826.819887:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=8704
libva error: /usr/lib/dri/nvidia_drv_video.so init failed

It is the only app that does not work and I am somewhat clueless who to blame (nvidia, hyprland,myself,...?). Would anyone please be so kind and help me diagnose?

I am running:
nvidia-dkms 560.35.03-2
hyprland 0.43.0-1
kernel Linux 6.10.10-arch1-1
extra/libva-nvidia-driver 0.0.12-1

Last edited by faileon (2024-09-26 14:43:03)

Offline

#2 2024-09-25 03:25:32

Aiser
Member
Registered: 2024-07-09
Posts: 1

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

NVIDIA seems to have dropped EGL as a backend, I'm not sure if your question is related to that. Perhaps you could try setting the environment variable `NVD_BACKEND=direct`.

Offline

#3 2024-09-25 07:46:29

faileon
Member
Registered: 2024-09-20
Posts: 7

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

Thanks for the tip mate. I am actually using this env variable, but it does not resolve the issue sad

Offline

#4 2024-09-25 08:02:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

eglinfo -B
vainfo

https://aur.archlinux.org/packages/mongodb-compass wraps a binary compiled for debian, that could be an issue.
Otherwise, do you need libva-nvidia-driver at all?

If there's actually an EGL issue, see https://wiki.archlinux.org/title/NVIDIA … oftware_GL

Offline

#5 2024-09-25 10:58:16

faileon
Member
Registered: 2024-09-20
Posts: 7

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

seth wrote:
eglinfo -B
vainfo

https://aur.archlinux.org/packages/mongodb-compass wraps a binary compiled for debian, that could be an issue.
Otherwise, do you need libva-nvidia-driver at all?

If there's actually an EGL issue, see https://wiki.archlinux.org/title/NVIDIA … oftware_GL

I believe I installed  libva-nvidia-driver as per https://github.com/elFarto/nvidia-vaapi-driver to get nvidia video decoding in Firefox.

eglinfo -B

GBM platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 560.35.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 560.35.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 560.35.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 560.35.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 560.35.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) UHD Graphics 770 (ADL-S GT1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.2.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) UHD Graphics 770 (ADL-S GT1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.2.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) UHD Graphics 770 (ADL-S GT1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #3:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.2.3-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.2.3-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

vainfo

Trying display: wayland
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_12         :	VAEntrypointVLD

Offline

#6 2024-09-25 15:03:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

Why are you not simply running the basic stuff on the intel chip?
https://wiki.archlinux.org/title/Hardwa … ing_VA-API
Assuming you've https://archlinux.org/packages/?name=intel-media-driver installed, can you

LIBVA_DRIVER_NAME=iHD mongodb-compass

?

Offline

#7 2024-09-25 18:14:10

faileon
Member
Registered: 2024-09-20
Posts: 7

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

seth wrote:

Why are you not simply running the basic stuff on the intel chip?
https://wiki.archlinux.org/title/Hardwa … ing_VA-API
Assuming you've https://archlinux.org/packages/?name=intel-media-driver installed, can you

LIBVA_DRIVER_NAME=iHD mongodb-compass

?

Hmm this is weird, I have tried running it with the integrated intel gpu as you suggested with

LIBVA_DRIVER_NAME=iHD mongodb-compass

I made sure the intel-media-driver is installed, but I get similar errors, except of course now its no longer nvidia_drv_video failing:

[5027:0925/201145.056380:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[5027:0925/201145.056409:ERROR:select_file_dialog_linux_portal.cc(290)] Failed to read portal version property
[5066:0925/201145.322535:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003009
[5066:0925/201145.322577:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[5066:0925/201145.322721:ERROR:native_pixmap_egl_binding.cc(109)] Unable to initialize binding from pixmap
[5066:0925/201145.322904:ERROR:ozone_image_backing.cc(365)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5066:0925/201145.323031:ERROR:shared_image_manager.cc(229)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5066:0925/201145.323110:ERROR:gpu_service_impl.cc(1124)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5027:0925/201145.325572:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=8704
[5137:0925/201145.473521:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003009
[5137:0925/201145.473717:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[5137:0925/201145.473818:ERROR:native_pixmap_egl_binding.cc(109)] Unable to initialize binding from pixmap
[5137:0925/201145.473937:ERROR:ozone_image_backing.cc(365)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5137:0925/201145.474037:ERROR:shared_image_manager.cc(229)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5137:0925/201145.474374:ERROR:gpu_service_impl.cc(1124)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5027:0925/201145.482245:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=8704
[5184:0925/201145.652043:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003009
[5184:0925/201145.652161:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[5184:0925/201145.652209:ERROR:native_pixmap_egl_binding.cc(109)] Unable to initialize binding from pixmap
[5184:0925/201145.652275:ERROR:ozone_image_backing.cc(365)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5184:0925/201145.652485:ERROR:shared_image_manager.cc(229)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5184:0925/201145.652912:ERROR:gpu_service_impl.cc(1124)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5027:0925/201145.657353:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=8704

Perhaps the culprit is the FileChooser?

EDIT:
I fixed the FileChooser error by installing and configuring xdg-desktop-portal-gtk. The EGL errors remains with both nvidia and iHD.
If I attempt to run with disabling gpu entirely

mongodb-compass --disable-gpu   

i get no errors, but also the app wont start :]

Last edited by faileon (2024-09-25 19:04:40)

Offline

#8 2024-09-25 19:57:57

faileon
Member
Registered: 2024-09-20
Posts: 7

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

I am going a bit insane. I just managed to run it exactly *once* with drun via wofi - aka the way I alwas ran the app.

However now I am unable to start it again after closing it. No processes are hanging, I killed everything mongo and electron related... Is my computer possessed? Wth is going on?

Screenshot from the one run so we know I am not high:

Last edited by faileon (2024-09-26 07:08:45)

Offline

#9 2024-09-25 20:55:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

mongodb-compass --disable-gpu   
i get no errors, but also the app wont start :]

So that's probably a red-herring, but I'd keep trying this way to be sure.

I just managed to run it exactly *once* with drun via wofi
However now I am unable to start it again after closing it.

There're also no error messages whatsoever?
Wild guess:

hostnamectl

Other than that, can you start it in a non-hyprland session (sway/weston or openbox/icewm/i3/anyotherx11wm)?

Is my computer possessed?

No, that's next month.

Please replace the oversized image w/ a link, it'll prove your mental status just as good wink

Offline

#10 2024-09-26 07:55:10

faileon
Member
Registered: 2024-09-20
Posts: 7

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

There're also no error messages whatsoever?

Not that I can see. I checked system logs and the app logs, but I couldn't see anything relevant. But perhaps I am looking at the wrong place.

Wild guess:

hostnamectl

Operating System: Arch Linux                        
          Kernel: Linux 6.10.10-arch1-1
    Architecture: x86-64
 Hardware Vendor: Micro-Star International Co., Ltd.
  Hardware Model: MS-7D32
Firmware Version: 1.10
   Firmware Date: Fri 2021-12-17
    Firmware Age: 2y 9month 1w 2d      

Other than that, can you start it in a non-hyprland session (sway/weston or openbox/icewm/i3/anyotherx11wm)?

Well here we go, with sway it has no problems starting every time - so at least we found the culprit, Hyprland :].

Please replace the oversized image w/ a link, it'll prove your mental status just as good wink

Oops, sorry about that, done.

Last edited by faileon (2024-09-26 07:56:23)

Offline

#11 2024-09-26 13:34:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

we found the culprit, Hyprland :]

Start by comparing "printenv" on sway and hyprland.
Do you get the same problem w/ a fresh user and unconfigured hyprland (ie. don't copy your existing config to the new user)?

Offline

#12 2024-09-26 14:23:30

faileon
Member
Registered: 2024-09-20
Posts: 7

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

seth wrote:

we found the culprit, Hyprland :]

Start by comparing "printenv" on sway and hyprland.
Do you get the same problem w/ a fresh user and unconfigured hyprland (ie. don't copy your existing config to the new user)?

Fresh user on hyprland has no issues running the app.

Compared the env, disabled bunch of them and found the problematic one:

env = ELECTRON_OZONE_PLATFORM_HINT,auto

So unsetting the env and then running the app works:

unset ELECTRON_OZONE_PLATFORM_HINT    
mongodb-compass

Basically, mongodb-compass wont run under wayland, doing this will run it in xwayland, but at least it works :]

Thank you very much Seth for helping me troubleshoot, I owe you a beer

Last edited by faileon (2024-09-26 14:42:45)

Offline

#13 2024-09-26 14:32:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] libva error: /usr/lib/dri/nvidia_drv_video.so init failed

You can dedicate me your next pint.

In the meantime and please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB