libva icon indicating copy to clipboard operation
libva copied to clipboard

Ubuntu 20.04 libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed

Open newcanopies opened this issue 4 years ago • 10 comments

running Ubuntu 20.04 on WSL2 Windows 10 19041 x64

electron

libva info: Open new log file 1.211836.thd-0x00007dc8 for the thread 0x00007dc8
libva info: LIBVA_TRACE is on, save log into 1.211836.thd-0x00007dc8
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed

vainfo --display x11

libva info: Open new log file 1.160057.thd-0x000015cf for the thread 0x000015cf
libva info: LIBVA_TRACE is on, save log into 1.160057.thd-0x000015cf
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
vaInitialize failed with error code 18 (invalid parameter),exit

newcanopies avatar Apr 06 '21 16:04 newcanopies

suppose there are no KMD(i915) support on WSL2

XinfengZhang avatar Jun 16 '21 14:06 XinfengZhang

suppose there are no KMD(i915) support on WSL2

@XinfengZhang of the available below, you suggest to use i915 for WSL2?

/usr/lib/x86_64-linux-gnu/dri$ ll

total 332648
drwxr-xr-x   2 root root     4096 Jan 20 00:26 ./
drwxr-xr-x 111 root root   237568 Jun 28 17:46 ../
-rw-r--r--   5 root root 14697248 Dec 18  2020 i915_dri.so
-rw-r--r--   5 root root 14697248 Dec 18  2020 i965_dri.so
-rw-r--r--   1 root root  8098968 Feb  6  2020 i965_drv_video.so
-rw-r--r--   1 root root  7369800 Apr  9  2020 iHD_drv_video.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 iris_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 kms_swrast_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 nouveau_dri.so
-rw-r--r--   3 root root  9759104 Dec 18  2020 nouveau_drv_video.so
-rw-r--r--   5 root root 14697248 Dec 18  2020 nouveau_vieux_dri.so
-rw-r--r--   5 root root 14697248 Dec 18  2020 r200_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 r300_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 r600_dri.so
-rw-r--r--   3 root root  9759104 Dec 18  2020 r600_drv_video.so
-rw-r--r--   5 root root 14697248 Dec 18  2020 radeon_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 radeonsi_dri.so
-rw-r--r--   3 root root  9759104 Dec 18  2020 radeonsi_drv_video.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 swrast_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 virtio_gpu_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 vmwgfx_dri.so
-rw-r--r--  10 root root 22209536 Dec 18  2020 zink_dri.so

newcanopies avatar Jun 30 '21 16:06 newcanopies

no, I means the kernel support, i915.ko . WSL2 has a linux kernel, but suppose it does not include all subsystem. so , you could not find a device node in /dev/dri . libva& media driver is basing on i915, without it, command could not be conveyed to hw.

XinfengZhang avatar Jul 06 '21 07:07 XinfengZhang

The program "electron" is running, despite error.

ERROR: ~/bin2/electron-quick-start$ npx electron . libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed [4854:1021/100945.968682:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

EXIST?: iHD_drv_video.so --> YES /usr/lib/x86_64-linux-gnu/dri$ ls ... iHD_drv_video.so ...

COMPUTER:

sb_release -a:
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Kernel: Linux 5.11.0-38-generic
Architecture: x86-64
cat /proc/version
Linux version 5.11.0-38-generic (buildd@lgw01-amd64-041) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021
java -version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

RobbiXYZ avatar Oct 21 '21 08:10 RobbiXYZ

{ "name": "my-electron-app", "author": "arefin", "email": "email", "license": "MIT", "version": "0.0.1", "private": true, "main": "main.ts", "type": "module", // remove this property from package.json file.

sultanularefin avatar Jan 31 '22 07:01 sultanularefin

WSL2 is different with WSL, from my understanding, WSL2 will not use linux drm subsystem directly. it will to though dx runtime instead of linux i915. could we close it?

XinfengZhang avatar Feb 10 '22 09:02 XinfengZhang

I have the same error message when starting ferdi on Ubuntu 21.10.

$ ferdi

libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[17756:0217/081315.099394:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

$ vainfo --display x11

vainfo output:
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.10.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD

StephanBe avatar Feb 17 '22 07:02 StephanBe

Can reproduce running io.vikunja.Vikunja on MX Linux 21.3: libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed

RaptaG avatar Jul 13 '23 10:07 RaptaG

I have the same error message when starting on Ubuntu 20.04.3 LTS Linux version 5.15.0-83-generic

intel@intel:~$ sudo vainfo Trying display: wayland error: XDG_RUNTIME_DIR not set in the environment. Trying display: drm libva info: VA-API version 1.11.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_11 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.11 (libva 2.22.0.pre1) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.1.3 () vainfo: Supported profile and entrypoints VAProfileNone : VAEntrypointVideoProc VAProfileNone : VAEntrypointStats VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointFEI VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264High : VAEntrypointFEI VAProfileH264High : VAEntrypointEncSliceLP VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointFEI VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointFEI VAProfileHEVCMain : VAEntrypointEncSliceLP VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointEncSliceLP VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile1 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileVP9Profile3 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointEncSlice VAProfileHEVCMain422_10 : VAEntrypointVLD VAProfileHEVCMain422_10 : VAEntrypointEncSlice VAProfileHEVCMain422_12 : VAEntrypointVLD VAProfileHEVCMain422_12 : VAEntrypointEncSlice VAProfileHEVCMain444 : VAEntrypointVLD VAProfileHEVCMain444 : VAEntrypointEncSliceLP VAProfileHEVCMain444_10 : VAEntrypointVLD VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP VAProfileHEVCMain444_12 : VAEntrypointVLD VAProfileHEVCSccMain : VAEntrypointVLD VAProfileHEVCSccMain : VAEntrypointEncSliceLP VAProfileHEVCSccMain10 : VAEntrypointVLD VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP VAProfileHEVCSccMain444 : VAEntrypointVLD VAProfileHEVCSccMain444 : VAEntrypointEncSliceLP VAProfileAV1Profile0 : VAEntrypointVLD VAProfileHEVCSccMain444_10 : VAEntrypointVLD VAProfileHEVCSccMain444_10 : VAEntrypointEncSliceLP

  intel@intel:~$ ls -al /usr/lib/x86_64-linux-gnu/dri/

total 651508 drwxr-xr-x 2 root root 4096 7月 28 2022 . drwxr-xr-x 88 root root 69632 3月 20 10:32 .. -rw-r--r-- 1 root root 26655984 3月 9 2022 d3d12_dri.so -rw-r--r-- 1 root root 17389400 3月 9 2022 i830_dri.so -rw-r--r-- 1 root root 17389400 3月 9 2022 i915_dri.so -rw-r--r-- 1 root root 17389400 3月 9 2022 i965_dri.so -rw-r--r-- 1 root root 8098968 2月 6 2020 i965_drv_video.so -rwxr-xr-x 1 root root 223873800 7月 28 2022 iHD_drv_video.so -rw-r--r-- 1 root root 26655984 3月 9 2022 iris_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 kms_swrast_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 nouveau_dri.so -rw-r--r-- 1 root root 12502304 3月 9 2022 nouveau_drv_video.so -rw-r--r-- 1 root root 17389400 3月 9 2022 nouveau_vieux_dri.so -rw-r--r-- 1 root root 17389400 3月 9 2022 r200_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 r300_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 r600_dri.so -rw-r--r-- 1 root root 12502304 3月 9 2022 r600_drv_video.so -rw-r--r-- 1 root root 17389400 3月 9 2022 radeon_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 radeonsi_dri.so -rw-r--r-- 1 root root 12502304 3月 9 2022 radeonsi_drv_video.so -rw-r--r-- 1 root root 26655984 3月 9 2022 swrast_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 virtio_gpu_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 vmwgfx_dri.so -rw-r--r-- 1 root root 26655984 3月 9 2022 zink_dri.so

ffmpeg -vaapi_device /dev/dri/renderD128 -i 1.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -f null -

[AVHWDeviceContext @ 0x5628fd614840] libva: dlopen of /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so failed: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so: undefined symbol: _ZN6GmmLib16GmmClientContext25CreateCustomResInfoObjectEP32GMM_RESCREATE_CUSTOM_PARAMS__REC [AVHWDeviceContext @ 0x5628fd614840] Failed to initialise VAAPI connection: -1 (unknown libva error). Device creation failed: -5. Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error Error parsing global options: Input/output error

intel@intel:~$ ls -al /dev/dri/ total 0 drwxr-xr-x 3 root root 100 3月 17 02:00 . drwxr-xr-x 19 root root 4300 3月 20 14:36 .. drwxr-xr-x 2 root root 80 3月 17 02:00 by-path crw-rw----+ 1 root video 226, 0 3月 19 19:24 card0 crwxrwxrwx+ 1 root render 226, 128 3月 19 19:24 renderD128

ixingqiao avatar Mar 20 '24 09:03 ixingqiao

Architecture: x86_64 Model name: Intel(R) Celeron(R) 6305E @ 1.80GHz

ixingqiao avatar Mar 20 '24 09:03 ixingqiao