libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed

Bug #1966571 reported by shemgp
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
intel-media-driver (Ubuntu)
Fix Released
High
Unassigned
intel-media-driver-non-free (Ubuntu)
Fix Released
High
Unassigned
mesa (Ubuntu)
Invalid
High
Unassigned

Bug Description

I noticed that it upgraded mesa to 22.x and now video acceleration is not working due to:

❯ vainfo
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 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 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
~/Desktop
❯ inxi -G
Graphics:
  Device-1: Intel driver: i915 v: kernel
  Device-2: Generalplus GENERAL WEBCAM type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 3840x2160~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics P630 (CML GT2)
    v: 4.6 Mesa 22.0.0

I tried rebuilding the i965-va-driver, and it's still the same.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mesa-vdpau-drivers 22.0.0-0ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Mar 27 10:37:41 2022
DistUpgraded: 2022-01-18 23:59:55,390 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
DistroCodename: jammy
DistroVariant: ubuntu
DkmsStatus:
 rtl88x2bu/5.8.7.1, 5.15.0-18-generic, x86_64: installed
 rtl88x2bu/5.8.7.1, 5.15.0-22-generic, x86_64: installed
 rtl88x2bu/5.8.7.1, 5.15.0-23-generic, x86_64: installed
 rtl88x2bu/5.8.7.1, 5.17.0-xanmod1, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation Device [8086:9bc6] (rev 05) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
InstallationDate: Installed on 2021-10-05 (172 days ago)
InstallationMedia: Ubuntu-Server 21.10 "Impish Indri" - Beta amd64 (20211004)
MachineType: ASUS System Product Name
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_PH.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-23-generic root=UUID=018d5b69-accd-451b-a6f7-2027f791ea0e ro quiet splash vt.handoff=7
SourcePackage: mesa
UpgradeStatus: Upgraded to jammy on 2022-01-18 (67 days ago)
dmi.bios.date: 07/08/2021
dmi.bios.release: 23.1
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2301
dmi.board.asset.tag: Default string
dmi.board.name: Pro WS W480-ACE
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2301:bd07/08/2021:br23.1:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnProWSW480-ACE:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: ASUS
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.0-0ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2build3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
shemgp (shemgp) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mesa (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathieu Pillard (diox) wrote :

Not sure if this is filed under the right package (is this a driver/kernel issue ?), but I can reproduce with Intel TigerLake-LP GT2 hardware - it used to work from Ubuntu 20.04 to 21.10, and fails with 22.04 alpha, even from the Live 20220326 ISO.

vainfo shows the same thing as original post:
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 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 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

Revision history for this message
Mathieu Pillard (diox) wrote :

From https://github.com/intel/media-driver/issues/1366 it looks like a regression with intel-media-va-driver 22.x

tags: added: rls-jj-incoming
Changed in mesa (Ubuntu):
importance: Undecided → High
Changed in intel-media-driver (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in intel-media-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
Lennart Weller (lhw) wrote :

Author of the upstream report here.
The fedora users mentioned that there seems to be an issue with the ABI of the gmmlib and/or that a recompile of the package fixed their issue. And I can confirm the solution.
I recompiled both intel-media-driver and intel-gmmlib and the issue resolved itself.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Lennart, thanks for the information, I uploaded a rebuild now, it's a bit disturbing that it is needed though

Changed in mesa (Ubuntu):
status: Confirmed → Invalid
Changed in intel-media-driver (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Joe Barnett (thejoe) wrote :

seeing the same behavior with the -non-free version too, does it need a separate rebuild?

Changed in intel-media-driver-non-free (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package intel-media-driver-non-free - 22.2.1+ds1-1build1

---------------
intel-media-driver-non-free (22.2.1+ds1-1build1) jammy; urgency=medium

  * Rebuild with the current libva version (lp: #1966571)

 -- Sebastien Bacher <email address hidden> Wed, 30 Mar 2022 11:16:29 +0200

Changed in intel-media-driver-non-free (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package intel-media-driver - 22.2.1+dfsg1-1build1

---------------
intel-media-driver (22.2.1+dfsg1-1build1) jammy; urgency=medium

  * Rebuild with the current libva version (lp: #1966571)

 -- Sebastien Bacher <email address hidden> Tue, 29 Mar 2022 16:47:39 +0200

Changed in intel-media-driver (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Tim Richardson (tim-richardson) wrote :

Ubuntu 22.04.
I still have this problem
intel-media-va-driver 22.3.0

tigerlake laptop

$ apt-cache show intel-media-va-driver
Package: intel-media-va-driver
Architecture: amd64
Version: 22.3.0+dfsg1-1

tim@ochre:~$ vainfo
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 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 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
tim@ochre:~$

Revision history for this message
Mathieu Pillard (diox) wrote :

Same here with tigerlake on 22.04 freshly updated, with both `intel-media-va-driver` and `intel-media-va-driver-non-free`. Rebuilding `intel-media-va-driver` locally and installing that works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.