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

libva error: i965_drv_video.so init failed #375

Open
pawlakm opened this issue Feb 23, 2020 · 25 comments
Open

libva error: i965_drv_video.so init failed #375

pawlakm opened this issue Feb 23, 2020 · 25 comments

Comments

@pawlakm
Copy link

pawlakm commented Feb 23, 2020

Hi,

I hope that I'm asking this question at the right place. If not please tell me where I should ask it. If you need any more information, please tell me.

I'm facing a systematic segfault when launching Kodi du to libva:

libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
Segmentation fault (core dumped)

The problem appeared when I rebooted my laptop after a sudo apt upgrade that installed a new kernel yesterday and upgraded a bunch of packages.

Here is the result of the vainfo command.

~> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

As such I guess that it is not a problem with Kodi (everything was working fine until yesterday.)

The driver exists:

~> la /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so 
-rw-r--r-- 1 root root 7.8M mar 20  2018 /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so

The result of uname -a is the following:

Linux vagrantlinux 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Here is the list of VA-related packages that are installed (:

gstreamer1.0-vaapi/bionic-updates,now 1.14.5-0ubuntu1~ubuntu18.04.1 amd64 [installed]
i965-va-driver/bionic,now 2.1.0-0ubuntu1 amd64 [installed,automatic]
libva-drm2/bionic,now 2.1.0-3 amd64 [installed,automatic]
libva-wayland2/bionic,now 2.1.0-3 amd64 [installed,automatic]
libva-x11-2/bionic,now 2.1.0-3 amd64 [installed,automatic]
libva2/bionic,now 2.1.0-3 amd64 [installed,automatic]
vainfo/bionic,now 2.1.0+ds1-1 amd64 [installed]

here is the result of lspci

:~> lspci
00:02.0 VGA compatible controller: Intel Corporation Device 9b41 (rev 02)

Here is the list of packages that were installed / upgraded when I did the sudo apt upgrade and after what the problem appeared:

Install: libxmlb1:amd64 (0.1.8-1~ubuntu18.04.1, automatic), linux-image-5.3.0-40-generic:amd64 (5.3.0-40.32~18.04.1, automatic), linux-modules-extra-5.3.0-40-generic:amd64 (5.3.0-40.32~18.04.1, automatic), linux-headers-5.3.0-40-generic:amd64 (5.3.0-40.32~18.04.1, automatic), fwupd-signed:amd64 (1.10~ubuntu18.04.3+1.2.10-1ubuntu2~ubuntu18.04.3, automatic), linux-headers-5.3.0-40:amd64 (5.3.0-40.32~18.04.1, automatic), linux-modules-5.3.0-40-generic:amd64 (5.3.0-40.32~18.04.1, automatic)
Upgrade: fdisk:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), bluez:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), gnome-control-center-data:amd64 (1:3.28.2-0ubuntu0.18.04.5, 1:3.28.2-0ubuntu0.18.04.6), libcomerr2:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), e2fsprogs-l10n:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), libcom-err2:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), language-pack-gnome-fr:amd64 (1:18.04+20190718, 1:18.04+20200123), libwayland-egl1:amd64 (1.16.0-1ubuntu1.1~18.04.1, 1.16.0-1ubuntu1.1~18.04.3), uuid-runtime:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libfdisk1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), gnome-control-center:amd64 (1:3.28.2-0ubuntu0.18.04.5, 1:3.28.2-0ubuntu0.18.04.6), python-samba:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2, 2.1.27~101-g0780600+dfsg-3ubuntu2.1), linux-libc-dev:amd64 (4.15.0-74.84, 4.15.0-88.88), xserver-common:amd64 (2:1.19.6-1ubuntu4.3, 2:1.19.6-1ubuntu4.4), libxml2-utils:amd64 (2.9.4+dfsg1-6.1ubuntu1.2, 2.9.4+dfsg1-6.1ubuntu1.3), openjdk-8-jdk:amd64 (8u232-b09-0ubuntu1~18.04.1, 8u242-b08-0ubuntu3~18.04), openjdk-8-jre:amd64 (8u232-b09-0ubuntu1~18.04.1, 8u242-b08-0ubuntu3~18.04), qt5-gtk-platformtheme:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), bluez-cups:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), libllvm9:amd64 (1:9~+rc1-1~exp1~oibaf~b, 1:9-2~ubuntu18.04.2), libegl1-mesa-dev:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libegl-mesa0:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libgnutls-openssl27:amd64 (3.5.18-1ubuntu1.2, 3.5.18-1ubuntu1.3), libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), xserver-xorg-core-hwe-18.04:amd64 (2:1.20.4-1ubuntu3~18.04.1, 2:1.20.5+git20191008-0ubuntu1~18.04.1), libsystemd0:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), libglapi-mesa:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), mesa-common-dev:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libmount1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), tcpdump:amd64 (4.9.2-3, 4.9.3-0ubuntu0.18.04.1), samba:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), samba-dsdb-modules:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), libcephfs2:amd64 (12.2.12-0ubuntu0.18.04.3, 12.2.12-0ubuntu0.18.04.4), python3-aptdaemon.gtk3widgets:amd64 (1.1.1+bzr982-0ubuntu19.1, 1.1.1+bzr982-0ubuntu19.2), libbsd0:amd64 (0.8.7-1, 0.8.7-1ubuntu0.1), e2fsprogs:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), python3-reportlab-accel:amd64 (3.4.0-3build1, 3.4.0-3ubuntu0.1), linux-headers-generic-hwe-18.04:amd64 (5.0.0.37.95, 5.3.0.40.97), xserver-xorg-legacy-hwe-18.04:amd64 (2:1.20.4-1ubuntu3~18.04.1, 2:1.20.5+git20191008-0ubuntu1~18.04.1), sudo:amd64 (1.8.21p2-3ubuntu1.1, 1.8.21p2-3ubuntu1.2), libqt5dbus5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), ubuntu-standard:amd64 (1.417.3, 1.417.4), python3-pil:amd64 (5.1.0-1, 5.1.0-1ubuntu0.2), xserver-xorg-video-radeon-hwe-18.04:amd64 (1:19.0.1-0ubuntu1~18.04.1, 1:19.0.1-1ubuntu1~18.04.1), util-linux:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), python-apt-common:amd64 (1.6.4, 1.6.5ubuntu0.2), libxatracker2:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libqt5widgets5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), udev:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), libegl1-mesa:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2, 2.1.27~101-g0780600+dfsg-3ubuntu2.1), language-pack-fr:amd64 (1:18.04+20190718, 1:18.04+20200123), e2fslibs:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), xserver-xorg-video-ati-hwe-18.04:amd64 (1:19.0.1-0ubuntu1~18.04.1, 1:19.0.1-1ubuntu1~18.04.1), fwupdate:amd64 (12-3bionic2, 12-7~ubuntu18.04.3), openjdk-11-jre-headless:amd64 (11.0.5+10-0ubuntu1.1~18.04, 11.0.6+10-1ubuntu1~18.04.1), libudev1:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), libqt5xml5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), libgbm1:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), python3-renderpm:amd64 (3.4.0-3build1, 3.4.0-3ubuntu0.1), libss2:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), mount:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), openjdk-8-jdk-headless:amd64 (8u232-b09-0ubuntu1~18.04.1, 8u242-b08-0ubuntu3~18.04), libwayland-client0:amd64 (1.16.0-1ubuntu1.1~18.04.1, 1.16.0-1ubuntu1.1~18.04.3), samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), xserver-xephyr:amd64 (2:1.19.6-1ubuntu4.3, 2:1.19.6-1ubuntu4.4), libext2fs2:amd64 (1.44.1-1ubuntu1.2, 1.44.1-1ubuntu1.3), ubuntu-minimal:amd64 (1.417.3, 1.417.4), libwayland-bin:amd64 (1.16.0-1ubuntu1.1~18.04.1, 1.16.0-1ubuntu1.1~18.04.3), libblkid1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libexif12:amd64 (0.6.21-4, 0.6.21-4ubuntu0.1), libqt5gui5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), libwayland-dev:amd64 (1.16.0-1ubuntu1.1~18.04.1, 1.16.0-1ubuntu1.1~18.04.3), python3-distupgrade:amd64 (1:18.04.36, 1:18.04.37), libsasl2-modules:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2, 2.1.27~101-g0780600+dfsg-3ubuntu2.1), gir1.2-snapd-1:amd64 (1.49-0ubuntu0.18.04.0, 1.49-0ubuntu0.18.04.1), ubuntu-release-upgrader-core:amd64 (1:18.04.36, 1:18.04.37), python3-apport:amd64 (2.20.9-0ubuntu7.9, 2.20.9-0ubuntu7.11), libnss-myhostname:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), dmidecode:amd64 (3.1-1, 3.1-1ubuntu0.1), openjdk-11-jdk:amd64 (11.0.5+10-0ubuntu1.1~18.04, 11.0.6+10-1ubuntu1~18.04.1), samba-common:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), systemd-sysv:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), firefox-locale-en:amd64 (72.0.1+build1-0ubuntu0.18.04.1, 73.0+build3-0ubuntu0.18.04.1), firefox-locale-fr:amd64 (72.0.1+build1-0ubuntu0.18.04.1, 73.0+build3-0ubuntu0.18.04.1), libuuid1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), openjdk-11-jre:amd64 (11.0.5+10-0ubuntu1.1~18.04, 11.0.6+10-1ubuntu1~18.04.1), libwayland-egl1-mesa:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), linux-image-generic-hwe-18.04:amd64 (5.0.0.37.95, 5.3.0.40.97), libpam-systemd:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), xwayland:amd64 (2:1.19.6-1ubuntu4.3, 2:1.19.6-1ubuntu4.4), samba-vfs-modules:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), linux-signed-generic-hwe-18.04:amd64 (5.0.0.37.95, 5.3.0.40.97), systemd:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), libwebkit2gtk-4.0-37:amd64 (2.26.2-0ubuntu0.18.04.1, 2.26.4-0ubuntu0.18.04.1), libsmartcols1:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libqt5core5a:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), xserver-xorg-video-amdgpu-hwe-18.04:amd64 (19.0.1-1~18.04.1, 19.0.1-1ubuntu1~18.04.1), rfkill:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), linux-generic-hwe-18.04:amd64 (5.0.0.37.95, 5.3.0.40.97), uuid-dev:amd64 (2.31.1-0.4ubuntu3.4, 2.31.1-0.4ubuntu3.5), libgl1-mesa-dri:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), libfwupd2:amd64 (1.0.9-0ubuntu2, 1.2.10-1ubuntu2~ubuntu18.04.3), samba-common-bin:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.14, 2:4.7.6+dfsg~ubuntu-0ubuntu2.15), aptdaemon-data:amd64 (1.1.1+bzr982-0ubuntu19.1, 1.1.1+bzr982-0ubuntu19.2), python-libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.2, 2.9.4+dfsg1-6.1ubuntu1.3), libmysqlclient20:amd64 (5.7.28-0ubuntu0.18.04.4, 5.7.29-0ubuntu0.18.04.1), libnss-systemd:amd64 (237-3ubuntu10.33, 237-3ubuntu10.39), bsdutils:amd64 (1:2.31.1-0.4ubuntu3.4, 1:2.31.1-0.4ubuntu3.5), bluez-obexd:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), openjdk-8-jre-headless:amd64 (8u232-b09-0ubuntu1~18.04.1, 8u242-b08-0ubuntu3~18.04), libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), gnome-control-center-faces:amd64 (1:3.28.2-0ubuntu0.18.04.5, 1:3.28.2-0ubuntu0.18.04.6), libgl1-mesa-glx:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), python3-aptdaemon:amd64 (1.1.1+bzr982-0ubuntu19.1, 1.1.1+bzr982-0ubuntu19.2), ubuntu-release-upgrader-gtk:amd64 (1:18.04.36, 1:18.04.37), libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.2, 2.9.4+dfsg1-6.1ubuntu1.3), fwupd:amd64 (1.0.9-0ubuntu2, 1.2.10-1ubuntu2~ubuntu18.04.3), gir1.2-webkit2-4.0:amd64 (2.26.2-0ubuntu0.18.04.1, 2.26.4-0ubuntu0.18.04.1), libgnutls30:amd64 (3.5.18-1ubuntu1.2, 3.5.18-1ubuntu1.3), firefox:amd64 (72.0.1+build1-0ubuntu0.18.04.1, 73.0+build3-0ubuntu0.18.04.1), libsnapd-glib1:amd64 (1.49-0ubuntu0.18.04.0, 1.49-0ubuntu0.18.04.1), mesa-vdpau-drivers:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), aptdaemon:amd64 (1.1.1+bzr982-0ubuntu19.1, 1.1.1+bzr982-0ubuntu19.2), xvfb:amd64 (2:1.19.6-1ubuntu4.3, 2:1.19.6-1ubuntu4.4), libqt5network5:amd64 (5.9.5+dfsg-0ubuntu2.4, 5.9.5+dfsg-0ubuntu2.5), libbluetooth3:amd64 (5.48-0ubuntu3.2, 5.48-0ubuntu3.3), fwupdate-signed:amd64 (1.19bionic2+12-3bionic2, 12-7~ubuntu18.04.3), python3-reportlab:amd64 (3.4.0-3build1, 3.4.0-3ubuntu0.1), libexiv2-14:amd64 (0.25-3.1ubuntu0.18.04.4, 0.25-3.1ubuntu0.18.04.5), libjavascriptcoregtk-4.0-18:amd64 (2.26.2-0ubuntu0.18.04.1, 2.26.4-0ubuntu0.18.04.1), openjdk-11-jdk-headless:amd64 (11.0.5+10-0ubuntu1.1~18.04, 11.0.6+10-1ubuntu1~18.04.1), python3-problem-report:amd64 (2.20.9-0ubuntu7.9, 2.20.9-0ubuntu7.11), librados2:amd64 (12.2.12-0ubuntu0.18.04.3, 12.2.12-0ubuntu0.18.04.4), python-pil:amd64 (5.1.0-1, 5.1.0-1ubuntu0.2), libwayland-server0:amd64 (1.16.0-1ubuntu1.1~18.04.1, 1.16.0-1ubuntu1.1~18.04.3), python3-apt:amd64 (1.6.4, 1.6.5ubuntu0.2), gir1.2-javascriptcoregtk-4.0:amd64 (2.26.2-0ubuntu0.18.04.1, 2.26.4-0ubuntu0.18.04.1), base-files:amd64 (10.1ubuntu2.7, 10.1ubuntu2.8), libglx-mesa0:amd64 (19.2~git1908120730.0f3768~oibaf~b, 19.2.8-0ubuntu0~18.04.2), libwayland-cursor0:amd64 (1.16.0-1ubuntu1.1~18.04.1, 1.16.0-1ubuntu1.1~18.04.3)

What I tried:

  • boot with the previous kernel, but it does not fix the problem
  • reinstall i965-va-driver package, again no success
  • force a redownload and reinstall of all packages, but it changed nothing.
  • search the internet for similar issues, I only found old topics, no "solution" appeared to be working
  • upgraded the bios of the laptop, but it chaged nothing.

Last but not least, the graphic card is an intel UHD 620.

I have no clue what to try now. Any help would be greatly appreciated.

Best regards

@XinfengZhang
Copy link
Contributor

how about use root , not sure whether your account is in video group, whether you have the permission to access /dev/dri/rendD128 ...

@pawlakm
Copy link
Author

pawlakm commented Feb 24, 2020

Hello, I get the same result when running vainfo as root, and current user is in video group.

@ceyusa
Copy link
Contributor

ceyusa commented Feb 24, 2020

perhaps running $ strace vainfo might give a hint of the problem.

@pawlakm
Copy link
Author

pawlakm commented Feb 24, 2020

Here is the result of strace vainfo
vainfo.strace.out
Hope it helps

@ceyusa
Copy link
Contributor

ceyusa commented Feb 24, 2020

It reads card0 and all that at low level. But when the driver's internal symbols table is populated, it fails. In i965 driver, the population fails when the card is not recognized by the driver. This can be because you card is newer than driver, or the driver is butchered by the distribution. Anyway, this have to be checked with your distribution.

@pawlakm
Copy link
Author

pawlakm commented Feb 24, 2020

Thank you for your answer. I contacted them. Best regards.

@andyxhliu94
Copy link

Hi, I encountered a similar problem when try using Gstreamer VAAPI plugins on Ubuntu to hardware decode the video stream. When I run vainfo for i965 driver it failed. Here is the error:

mjzh@mjzh:~$ vainfo
libva info: VA-API version 1.6.0
libva info: va_getDriverName() returns -1
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Initially, the default driver name is iHD, and I have changed the driver name to i965, and driver path to /usr/lib/x86_64-linux-gnu/dri as follows (The reason why I use iHD rather than i965 is that I think iHD is not officially supported before gstreamer-vaapi 1.18, currently I am using gstreamer-vaapi 1.16):

export LIBVA_DRIVER_NAME=i965 export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri

However, I can successfully run vainfo for i965 driver in root, as shown below (although it showed a error: error: can't connect to X server!)

root@mjzh:/home/mjzh# vainfo
X11 connection rejected because of wrong authentication.
error: can't connect to X server!
libva info: VA-API version 1.6.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broxton - 2.1.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD

here is the result of gst-inspect-1.0 vaapi:

mjzh@mjzh:~$ gst-inspect-1.0 vaapi
Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /opt/intel/openvino_2020.3.194/data_processing/gstreamer/lib/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Binary package           gstreamer-vaapi
  Origin URL               http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

  vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
  vaapih264enc: VA-API H264 encoder
  vaapijpegenc: VA-API JPEG encoder
  vaapih265enc: VA-API H265 encoder
  vaapisink: VA-API sink
  vaapidecodebin: VA-API Decode Bin
  vaapipostproc: VA-API video postprocessing
  vaapih265dec: VA-API H265 decoder
  vaapivp9dec: VA-API VP9 decoder
  vaapivp8dec: VA-API VP8 decoder
  vaapivc1dec: VA-API VC1 decoder
  vaapih264dec: VA-API H264 decoder
  vaapimpeg2dec: VA-API MPEG2 decoder
  vaapijpegdec: VA-API JPEG decoder

  14 features:
  +-- 14 elements

here is the result of lshw -c video:

mjzh@mjzh:~$ sudo lshw -c video
[sudo] password for mjzh: 
  *-display                 
       description: VGA compatible controller
       product: Celeron N3350/Pentium N4200/Atom E3900 Series Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0a
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:134 memory:90000000-90ffffff memory:80000000-8fffffff ioport:f000(size=64) memory:c0000-dffff

here is the result of lspci | grep VGA:

mjzh@mjzh:~$ sudo lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Integrated Graphics Controller (rev 0a)

here is the available device by running ls /dev/dri:

mjzh@mjzh:~$ ls /dev/dri
by-path  card0  renderD128

here is the available video drivers by running ls /usr/lib/x86_64-linux-gnu/dri | grep drv_video.so:

mjzh@mjzh:~$ ls /usr/lib/x86_64-linux-gnu/dri | grep drv_video.so
i965_drv_video.so
nouveau_drv_video.so
nvidia_drv_video.so
r600_drv_video.so
radeonsi_drv_video.so
s3g_drv_video.so
vdpau_drv_video.so

here is the result of strace vainfo:

strace_vainfo_output.txt

here is the environment:

CPU: Intel N4200
IGPU: Intel Graphics 505
Ubuntu: Ubuntu 18.04 

@nxt007
Copy link

nxt007 commented Nov 18, 2020

Hello there!
Succeeded in running vainfo without sudo.

olvia@olvia-bm:~$ ls -la /dev/dri/
total 0
drwxr-xr-x   3 root root        100 Nov 18 13:06 .
drwxr-xr-x  22 root root       4720 Nov 18 13:06 ..
drwxr-xr-x   2 root root         80 Nov 18 13:06 by-path
crw-rw----+  1 root video  226,   0 Nov 18 13:06 card0
crw-rw----+  1 root render 226, 128 Nov 18 13:06 renderD128

Note that renderD128 is actually under render, not video group.
So adding current user to render group actually worked for me.
sudo usermod -a -G render $USER

Edit1: Tested on Ubuntu 20.04

@dvrogozh
Copy link
Contributor

Note that renderD128 is actually under render, not video group.

This depends on OS. Recent ubuntu versions (20.04 for sure) have it under render group. But prev. ubuntu versions (I don't exactly remember when this change happened, either on 19.04 or 19.10), had it under video group. I think CentOS 7 has it as video. Not sure about CentOS 8.

So, it's better to always check unless you run Ubuntu 20.04.

@cobordism
Copy link

@pawlakm Did you ever find a working solution?
I am experiencing the same crash when starting kodi.


$ kodi
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
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_6
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
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_6
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
Segmentation fault (core dumped)

@callegar
Copy link

google-chrome-beta gives the same warning without crashing on ubuntu 20.04.

@newcanopies
Copy link

newcanopies commented Apr 6, 2021

Hello there!
Succeeded in running vainfo without sudo.

olvia@olvia-bm:~$ ls -la /dev/dri/
total 0
drwxr-xr-x   3 root root        100 Nov 18 13:06 .
drwxr-xr-x  22 root root       4720 Nov 18 13:06 ..
drwxr-xr-x   2 root root         80 Nov 18 13:06 by-path
crw-rw----+  1 root video  226,   0 Nov 18 13:06 card0
crw-rw----+  1 root render 226, 128 Nov 18 13:06 renderD128

Note that renderD128 is actually under render, not video group.
So adding current user to render group actually worked for me.
sudo usermod -a -G render $USER

Edit1: Tested on Ubuntu 20.04

hi @nxt007 are you running native Ubuntu 20.04 or WSL2?

On WSL2 there is not dri under /dev:

$ cd dev && ls

` total 4 drwxr-xr-x 8 root root 2800 Mar 26 00:37 ./ drwxr-xr-x 19 root root 4096 Mar 26 00:37 ../ crw-r--r-- 1 root root 10, 235 Mar 26 00:37 autofs drwxr-xr-x 2 root root 40 Mar 26 00:37 block/ drwxr-xr-x 2 root root 120 Mar 26 00:37 bsg/ crw------- 1 root root 10, 234 Mar 26 00:37 btrfs-control crw------- 1 root root 5, 1 Mar 26 00:37 console crw------- 1 root root 10, 62 Mar 26 00:37 cpu_dma_latency crw------- 1 root root 10, 203 Mar 26 00:37 cuse lrwxrwxrwx 1 root root 13 Mar 26 00:37 fd -> /proc/self/fd/ crw-rw-rw- 1 root root 1, 7 Mar 26 00:37 full crw-rw-rw- 1 root root 10, 229 Mar 26 00:37 fuse crw-r--r-- 1 root root 1, 11 Mar 26 00:37 kmsg crw------- 1 root root 10, 237 Mar 26 00:37 loop-control brw------- 1 root root 7, 0 Mar 26 00:37 loop0 brw------- 1 root root 7, 1 Mar 26 00:37 loop1 brw------- 1 root root 7, 2 Mar 26 00:37 loop2 brw------- 1 root root 7, 3 Mar 26 00:37 loop3 brw------- 1 root root 7, 4 Mar 26 00:37 loop4 brw------- 1 root root 7, 5 Mar 26 00:37 loop5 brw------- 1 root root 7, 6 Mar 26 00:37 loop6 brw------- 1 root root 7, 7 Mar 26 00:37 loop7 drwxr-xr-x 2 root root 60 Mar 26 00:37 mapper/ crw------- 1 root root 1, 1 Mar 26 00:37 mem drwxr-xr-x 2 root root 60 Mar 26 00:37 net/ crw-rw-rw- 1 root root 1, 3 Mar 26 00:37 null crw------- 1 root root 10, 144 Mar 26 00:37 nvram crw------- 1 root root 108, 0 Mar 26 00:37 ppp crw-rw-rw- 1 root root 5, 2 Apr 6 23:04 ptmx drwxr-xr-x 2 root root 0 Mar 26 00:37 pts/ brw------- 1 root root 1, 0 Mar 26 00:37 ram0 brw------- 1 root root 1, 1 Mar 26 00:37 ram1 brw------- 1 root root 1, 10 Mar 26 00:37 ram10 brw------- 1 root root 1, 11 Mar 26 00:37 ram11 brw------- 1 root root 1, 12 Mar 26 00:37 ram12 brw------- 1 root root 1, 13 Mar 26 00:37 ram13 brw------- 1 root root 1, 14 Mar 26 00:37 ram14 brw------- 1 root root 1, 15 Mar 26 00:37 ram15 brw------- 1 root root 1, 2 Mar 26 00:37 ram2 brw------- 1 root root 1, 3 Mar 26 00:37 ram3 brw------- 1 root root 1, 4 Mar 26 00:37 ram4 brw------- 1 root root 1, 5 Mar 26 00:37 ram5 brw------- 1 root root 1, 6 Mar 26 00:37 ram6 brw------- 1 root root 1, 7 Mar 26 00:37 ram7 brw------- 1 root root 1, 8 Mar 26 00:37 ram8 brw------- 1 root root 1, 9 Mar 26 00:37 ram9 crw-rw-rw- 1 root root 1, 8 Mar 26 00:37 random crw------- 1 root root 251, 0 Mar 26 00:37 rtc0 brw------- 1 root root 8, 0 Mar 26 00:37 sda brw------- 1 root root 8, 16 Mar 26 00:37 sdb brw------- 1 root root 8, 32 Mar 26 00:37 sdc brw------- 1 root root 8, 48 Mar 26 00:37 sdd crw------- 1 root root 21, 0 Mar 26 00:37 sg0 crw------- 1 root root 21, 1 Mar 26 00:37 sg1 crw------- 1 root root 21, 2 Mar 26 00:37 sg2 crw------- 1 root root 21, 3 Mar 26 00:37 sg3 lrwxrwxrwx 1 root root 8 Mar 26 00:37 shm -> /run/shm/ lrwxrwxrwx 1 root root 15 Mar 26 00:37 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 root root 15 Mar 26 00:37 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 root root 15 Mar 26 00:37 stdout -> /proc/self/fd/1 crw-rw-rw- 1 root root 5, 0 Apr 6 22:55 tty crw------- 1 root root 4, 0 Mar 26 00:37 tty0 crw------- 1 root root 4, 1 Mar 26 00:37 tty1 crw------- 1 root root 4, 10 Mar 26 00:37 tty10 crw------- 1 root root 4, 11 Mar 26 00:37 tty11 crw------- 1 root root 4, 12 Mar 26 00:37 tty12 crw------- 1 root root 4, 13 Mar 26 00:37 tty13 crw------- 1 root root 4, 14 Mar 26 00:37 tty14 crw------- 1 root root 4, 15 Mar 26 00:37 tty15 crw------- 1 root root 4, 16 Mar 26 00:37 tty16 crw------- 1 root root 4, 17 Mar 26 00:37 tty17 crw------- 1 root root 4, 18 Mar 26 00:37 tty18 crw------- 1 root root 4, 19 Mar 26 00:37 tty19 crw------- 1 root root 4, 2 Mar 26 00:37 tty2 crw------- 1 root root 4, 20 Mar 26 00:37 tty20 crw------- 1 root root 4, 21 Mar 26 00:37 tty21 crw------- 1 root root 4, 22 Mar 26 00:37 tty22 crw------- 1 root root 4, 23 Mar 26 00:37 tty23 crw------- 1 root root 4, 24 Mar 26 00:37 tty24 crw------- 1 root root 4, 25 Mar 26 00:37 tty25 crw------- 1 root root 4, 26 Mar 26 00:37 tty26 crw------- 1 root root 4, 27 Mar 26 00:37 tty27 crw------- 1 root root 4, 28 Mar 26 00:37 tty28 crw------- 1 root root 4, 29 Mar 26 00:37 tty29 crw------- 1 root root 4, 3 Mar 26 00:37 tty3 crw------- 1 root root 4, 30 Mar 26 00:37 tty30 crw------- 1 root root 4, 31 Mar 26 00:37 tty31 crw------- 1 root root 4, 32 Mar 26 00:37 tty32 crw------- 1 root root 4, 33 Mar 26 00:37 tty33 crw------- 1 root root 4, 34 Mar 26 00:37 tty34 crw------- 1 root root 4, 35 Mar 26 00:37 tty35 crw------- 1 root root 4, 36 Mar 26 00:37 tty36 crw------- 1 root root 4, 37 Mar 26 00:37 tty37 crw------- 1 root root 4, 38 Mar 26 00:37 tty38 crw------- 1 root root 4, 39 Mar 26 00:37 tty39 crw------- 1 root root 4, 4 Mar 26 00:37 tty4 crw------- 1 root root 4, 40 Mar 26 00:37 tty40 crw------- 1 root root 4, 41 Mar 26 00:37 tty41 crw------- 1 root root 4, 42 Mar 26 00:37 tty42 crw------- 1 root root 4, 43 Mar 26 00:37 tty43 crw------- 1 root root 4, 44 Mar 26 00:37 tty44 crw------- 1 root root 4, 45 Mar 26 00:37 tty45 crw------- 1 root root 4, 46 Mar 26 00:37 tty46 crw------- 1 root root 4, 47 Mar 26 00:37 tty47 crw------- 1 root root 4, 48 Mar 26 00:37 tty48 crw------- 1 root root 4, 49 Mar 26 00:37 tty49 crw------- 1 root root 4, 5 Mar 26 00:37 tty5 crw------- 1 root root 4, 50 Mar 26 00:37 tty50 crw------- 1 root root 4, 51 Mar 26 00:37 tty51 crw------- 1 root root 4, 52 Mar 26 00:37 tty52 crw------- 1 root root 4, 53 Mar 26 00:37 tty53 crw------- 1 root root 4, 54 Mar 26 00:37 tty54 crw------- 1 root root 4, 55 Mar 26 00:37 tty55 crw------- 1 root root 4, 56 Mar 26 00:37 tty56 crw------- 1 root root 4, 57 Mar 26 00:37 tty57 crw------- 1 root root 4, 58 Mar 26 00:37 tty58 crw------- 1 root root 4, 59 Mar 26 00:37 tty59 crw------- 1 root root 4, 6 Mar 26 00:37 tty6 crw------- 1 root root 4, 60 Mar 26 00:37 tty60 crw------- 1 root root 4, 61 Mar 26 00:37 tty61 crw------- 1 root root 4, 62 Mar 26 00:37 tty62 crw------- 1 root root 4, 63 Mar 26 00:37 tty63 crw------- 1 root root 4, 7 Mar 26 00:37 tty7 crw------- 1 root root 4, 8 Mar 26 00:37 tty8 crw------- 1 root root 4, 9 Mar 26 00:37 tty9 crw------- 1 root root 4, 64 Mar 26 00:37 ttyS0 crw------- 1 root root 4, 65 Mar 26 00:37 ttyS1 crw------- 1 root root 4, 66 Mar 26 00:37 ttyS2 crw------- 1 root root 4, 67 Mar 26 00:37 ttyS3 crw-rw-rw- 1 root root 1, 9 Mar 26 00:37 urandom crw------- 1 root root 7, 0 Mar 26 00:37 vcs crw------- 1 root root 7, 1 Mar 26 00:37 vcs1 crw------- 1 root root 7, 128 Mar 26 00:37 vcsa crw------- 1 root root 7, 129 Mar 26 00:37 vcsa1 crw------- 1 root root 7, 64 Mar 26 00:37 vcsu crw------- 1 root root 7, 65 Mar 26 00:37 vcsu1 drwxr-xr-x 2 root root 60 Mar 26 00:37 vfio/ crw------- 1 root root 10, 238 Mar 26 00:37 vhost-net crw------- 1 root root 10, 63 Mar 26 00:37 vsock crw-rw-rw- 1 root root 1, 5 Mar 26 00:37 zero `

same libva init fail with either i965 or iHD

$ vainfo --display x11

libva info: Open new log file .210804.thd-0x0000407c for the thread 0x0000407c
libva info: LIBVA_TRACE is on, save log into .210804.thd-0x0000407c
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

@mizhozan
Copy link

mizhozan commented Apr 9, 2021

On Archlinux, I also have same error but chromium (and brave) works despite the error without crash:

chromium
libva error: /usr/lib/dri/i965_drv_video.so init failed
[22235:22235:0409/151716.208659:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

however my vainfo doesn't fail:

vainfo --display x11
vainfo: VA-API version: 1.11 (libva 2.11.1)
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
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP

The user is added to render group as well and here is further detail:

> ll /dev/dri/
total 0
drwxr-xr-x  2 root root         80 Apr  9 14:29 by-path/
crw-rw----+ 1 root video  226,   0 Apr  9 14:29 card0
crw-rw-rw-  1 root render 226, 128 Apr  9 14:29 renderD128

and the content of /usr/lib/dri:

ll /usr/lib/dri/
total 334M
-rwxr-xr-x  5 root root  14M Mar 27 15:16 i915_dri.so*
-rwxr-xr-x  5 root root  14M Mar 27 15:16 i965_dri.so*
-rwxr-xr-x  1 root root 7.8M Jun  2  2020 i965_drv_video.so*
-rwxr-xr-x  1 root root  35M Apr  5 05:10 iHD_drv_video.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 iris_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 kms_swrast_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 nouveau_dri.so*
-rwxr-xr-x  5 root root  14M Mar 27 15:16 nouveau_vieux_dri.so*
-rwxr-xr-x  5 root root  14M Mar 27 15:16 r200_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 r300_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 r600_dri.so*
-rwxr-xr-x  5 root root  14M Mar 27 15:16 radeon_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 radeonsi_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 swrast_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 virtio_gpu_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 vmwgfx_dri.so*
-rwxr-xr-x 10 root root  23M Mar 27 15:16 zink_dri.so*

@XinfengZhang
Copy link
Contributor

@pawlakm , I just checked your deviceID, 0x9b41 is not in https://github.com/intel/intel-vaapi-driver/blob/master/src/i965_pciids.h

@XinfengZhang
Copy link
Contributor

@newcanopies , if there are no /dri folder under /dev. vainfo could not find the device node, and open it.

@MurzNN
Copy link

MurzNN commented Apr 16, 2022

I've got the same problem on Ubuntu 22.04 with Expandrive app:

$ expandrive 
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /tmp/.org.chromium.Chromium.VphvQV: failed to map segment from shared object
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/opt/ExpanDrive/resources/app.asar/node_modules/keytar/lib/keytar.js:1:14)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed

But an interesting thing is that most of other apps (including Electron based), and even Chromium itself - works well.

Here is the output of vainfo:

$ vainfo --display x11
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()

$ ls /dev/dri
by-path  card0  renderD128

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)

@paulathomas
Copy link

I also have this issue while trying to run unityhub on ubuntu 22.04

@macmillen
Copy link

I also have this issue while trying to run unityhub on ubuntu 22.04

@evelikov
Copy link
Contributor

AFAICT there are dozen or reasons why the driver fails, so it's likely that "this issue" is actually multiple unrelated ones.

Regardless, if you see foobar_video_drv.so init failed errors, when reporting that to the respective "foobar" driver would be the right step forward.

@genodeftest
Copy link

Regardless, if you see foobar_video_drv.so init failed errors, when reporting that to the respective "foobar" driver would be the right step forward.

Where would the i965 driver reside? Is that in the Linux kernel?

@XinfengZhang
Copy link
Contributor

I've got the same problem on Ubuntu 22.04 with Expandrive app:

$ expandrive 
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /tmp/.org.chromium.Chromium.VphvQV: failed to map segment from shared object
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/opt/ExpanDrive/resources/app.asar/node_modules/keytar/lib/keytar.js:1:14)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed

But an interesting thing is that most of other apps (including Electron based), and even Chromium itself - works well.

Here is the output of vainfo:

$ vainfo --display x11
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()

$ ls /dev/dri
by-path  card0  renderD128

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)

please install iHD driver https://github.com/intel/media-driver, or sudo apt-get install intel-media-driver-non-free package

@XinfengZhang
Copy link
Contributor

from ICL+, you should use iHD driver instead of i965

@evelikov
Copy link
Contributor

Usually your distro packaging can tell the homepage for each file - for Arch pacman -Qi $(pacman -Qqo /path/to/file) | grep URL).

The i965 driver lives here - https://github.com/intel/intel-vaapi-driver
The iHD one - https://github.com/intel/media-driver

@spyrou008
Copy link

Thank you all for the comment. I have a Dell XPS 13, on Manjaro.
and I was experiencing this error. (the i965 driver is installed and used by default)
I fixed it , by running these commands:

pamac install intel-media-driver
export LIBVA_DRIVER_NAME="iHD"

Cheers

@cuikho210
Copy link

Thank you all for the comment. I have a Dell XPS 13, on Manjaro. and I was experiencing this error. (the i965 driver is installed and used by default) I fixed it , by running these commands:

pamac install intel-media-driver
export LIBVA_DRIVER_NAME="iHD"

Cheers

Thank you. My error libva error: /usr/lib/dri/i965_drv_video.so init failed when running electron app fixed after running sudo pamac install intel-media-driver

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