libva fails to load intel driver on 18.04 : undefined symbol: wl_drm_interface

Bug #1866356 reported by rougebuntu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
intel-vaapi-driver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 18.04.04

VA-API fails to load, leading to hardware acceleration not working in chromium
This causes applications using the engine to become extremely laggy and utilise 90% + CPU.

This is a VERY common use case for ubuntu users and needs to be patched as a priority IMO

Appears to have been inherited from Disco and is the same bug or similar as here:
https://bugs.launchpad.net/ubuntu/+source/intel-vaapi-driver/+bug/1813131

Current driver:
i965-va-driver/bionic,now 2.1.0-0ubuntu1 amd64 [installed]

Bugfix candidate: (about to try compiling from source)
https://launchpad.net/ubuntu/+source/intel-vaapi-driver/2.3.0-0ubuntu2

Further issue report here:
https://github.com/intel/intel-vaapi-driver/issues/419

output from 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
error: failed to resolve wl_drm_interface(): /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: wl_drm_interface
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

apt install i965-va-driver

i965-va-driver is already the newest version (2.1.0-0ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.

apt search i965-va-driver:

i965-va-driver/bionic,now 2.1.0-0ubuntu1 amd64 [installed]
  VAAPI driver for Intel G45 & HD Graphics family

i965-va-driver-shaders/bionic 2.1.0-1 amd64
  VAAPI driver for Intel G45 & HD Graphics family

Revision history for this message
rougebuntu (rougebuntu) wrote :

Just tried build:
https://launchpad.net/ubuntu/+source/intel-vaapi-driver/2.3.0-0ubuntu2

had to install dependencies of:
sudo apt-get install libva-dev

Appears to be the same issue present in current vaapi driver.

See traceback from ninja -C build/ install

ninja -C build/ install
ninja: Entering directory `build/'
[0/1] Installing files.
Installing src/i965_drv_video.so to /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
Traceback (most recent call last):
  File "/usr/bin/meson", line 26, in <module>
    sys.exit(main())
  File "/usr/bin/meson", line 23, in main
    return mesonmain.run(sys.argv[1:], launcher)
  File "/usr/share/meson/mesonbuild/mesonmain.py", line 318, in run
    sys.exit(run_script_command(args[1:]))
  File "/usr/share/meson/mesonbuild/mesonmain.py", line 274, in run_script_command
    return cmdfunc(cmdargs)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 393, in run
    do_install(datafilename)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 212, in do_install
    install_targets(d)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 334, in install_targets
    do_copyfile(fname, outname)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 125, in do_copyfile
    os.unlink(to_file)
PermissionError: [Errno 13] Permission denied: '/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so'
FAILED: meson-install
/usr/bin/python3 /usr/bin/meson --internal install /home/rougex250/Downloads/vaapi/intel-vaapi-driver-2.3.0/build/meson-private/install.dat
ninja: build stopped: subcommand failed.

I'm going to try a later version, perhaps 2.4.0

Revision history for this message
rougebuntu (rougebuntu) wrote :

for some reason i thought i had used sudo. Evidently not.

see: PermissionError: [Errno 13] Permission denied: '/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so'

Anyway 2.3.0 did install successfully, but vainfo shows no change

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

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

Changed in intel-vaapi-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
Michel-Ekimia (michel.ekimia) wrote :

What Intel hardware do you have ? Comet lake ?

Because I could not reproduce on :

- Haswell
- Skylake

But could on Comet lake

summary: - libva fails to load [Ubuntu18.04.4 LTS ] - error: failed to resolve
- wl_drm_interface(): /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0:
- undefined symbol: wl_drm_interface 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
+ libva fails to load intel driver on 18.04 with Comet lake
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: libva fails to load intel driver on 18.04 with Comet lake

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1813131, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

summary: - libva fails to load intel driver on 18.04 with Comet lake
+ libva fails to load intel driver on 18.04 : undefined symbol:
+ wl_drm_interface
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.