Solved Kodi, vaapi, crash

Hi.
multimedia/kodi stopped starting at some point. It crashes on startup:
Code:
[12:16] vg (/home) kodi
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
Crash report available at /home/kodi_crashlog-20220827_121614.log
[12:16] vg (/home)

Code:
[12:16] vg (/home) vainfo
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
[12:19] vg (/home)
Why is that?
 
amw@t430 ~> pkg search libva-vdpau-driver 1
libva-vdpau-driver-0.7.4_10 VDPAU-based backend for VAAPI
amw@t430 ~> sudo pkg install libva-vdpau-driver-0.7.4_10
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
amw@t430 ~> kodi
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
Crash report available at /home/amw/kodi_crashlog-20220827_123732.log
amw@t430 ~>

BTW, I only use the Integrated Graphics on my Thinkpad t430.
 
After removing some packages, Kodi starts again...

amw@t430 ~> pkg search vdpau
libva-vdpau-driver-0.7.4_10 VDPAU-based backend for VAAPI
libvdpau-1.5 VDPAU wrapper and tracing library
libvdpau-va-gl-0.4.2_5 VDPAU driver with OpenGL/VAAPI backend
mesa-gallium-vdpau-21.3.8 Mesa Gallium VDPAU drivers
vdpauinfo-1.5 Tool to query VDPAU capabilities
amw@t430 ~> sudo pkg remove libvdpau-va-gl-0.4.2_5
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
libvdpau-va-gl: 0.4.2_5

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling libvdpau-va-gl-0.4.2_5...
[1/1] Deleting files for libvdpau-va-gl-0.4.2_5: 100%
amw@t430 ~> sudo pkg remove mesa-gallium-vdpau-21.3.8
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
mesa-gallium-vdpau: 21.3.8

Number of packages to be removed: 1

The operation will free 11 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling mesa-gallium-vdpau-21.3.8...
[1/1] Deleting files for mesa-gallium-vdpau-21.3.8: 100%
amw@t430 ~> kodi
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
Failed to open VDPAU backend Shared object "libvdpau_va_gl.so" not found, required by "kodi.bin"
^C
amw@t430 ~>

amw@t430 ~> sudo pkg install libva-vdpau-driver-0.7.4_10
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
libva-vdpau-driver: 0.7.4_10

Installed packages to be REINSTALLED:
clucene-2.3.3.4_20

Number of packages to be installed: 1
Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/2] Installing libva-vdpau-driver-0.7.4_10...
[1/2] Extracting libva-vdpau-driver-0.7.4_10: 100%
[2/2] Reinstalling clucene-2.3.3.4_20...
[2/2] Extracting clucene-2.3.3.4_20: 100%
amw@t430 ~> kodi
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
Failed to open VDPAU backend Shared object "libvdpau_va_gl.so" not found, required by "kodi.bin"
amw@t430 ~> kodi

But I am not using the NVIDIA gpu.
 
Yes... GeForce GT 610
I always had only multimedia/libvdpau and multimedia/libva installed and, until recently, everything worked fine. It crashed after updating packages:
Aug 9 21:04:00 vg@BSD pkg[1008]: pkg upgraded: 1.18.3 -> 1.18.4
Aug 9 23:08:05 vg@BSD pkg[1062]: xorg-server-1.20.14,1 deinstalled
Aug 9 23:08:06 vg@BSD pkg[1062]: libxcvt-0.1.2_1 installed
Aug 9 23:08:06 vg@BSD pkg[1062]: double-conversion upgraded: 3.2.0 -> 3.2.1
Aug 9 23:08:07 vg@BSD pkg[1062]: py39-cssselect-1.1.0 installed
Aug 9 23:08:07 vg@BSD pkg[1062]: svt-av1 upgraded: 1.1.0 -> 1.2.0
Aug 9 23:08:08 vg@BSD pkg[1062]: vulkan-loader upgraded: 1.3.223 -> 1.3.224
Aug 9 23:08:09 vg@BSD pkg[1062]: xorg-server-21.1.4,1 installed
Aug 9 23:08:09 vg@BSD pkg[1062]: micro upgraded: 2.0.10_3 -> 2.0.10_4
Aug 9 23:08:10 vg@BSD pkg[1062]: vulkan-headers upgraded: 1.3.223 -> 1.3.224
Aug 9 23:08:10 vg@BSD pkg[1062]: xf86-video-vesa upgraded: 2.5.0 -> 2.5.0_1
Aug 9 23:08:20 vg@BSD pkg[1062]: openjdk8 upgraded: 8.332.09.1_1 -> 8.342.07.1
Aug 9 23:08:20 vg@BSD pkg[1062]: neofetch upgraded: 7.1.0 -> 7.1.0_1
Aug 9 23:08:20 vg@BSD pkg[1062]: xf86-input-libinput upgraded: 1.2.0 -> 1.2.0_1
Aug 9 23:08:22 vg@BSD pkg[1062]: ffmpeg upgraded: 4.4.2_5,1 -> 4.4.2_6,1
Aug 9 23:08:32 vg@BSD pkg[1062]: inkscape upgraded: 1.2.1 -> 1.2.1_1
Aug 9 23:08:46 vg@BSD pkg[1062]: wine-devel upgraded: 7.13,1 -> 7.14,1
Aug 9 23:09:03 vg@BSD pkg[1062]: openjdk11 upgraded: 11.0.15+10.1 -> 11.0.16+8.1
Aug 9 23:09:03 vg@BSD pkg[1062]: nspr upgraded: 4.34 -> 4.34.1
I don't know which package had what effect.
After installing multimedia/libvdpau-va-gl:
Code:
[19:18] vg (/home) kodi
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
Crash report available at /home/kodi_crashlog-20220827_191904.log
After installing multimedia/libva-vdpau-driver:
Code:
[19:19] vg (/home) kodi
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
Crash report available at /home/kodi_crashlog-20220827_191938.log
 
It's funny... I reinstalled, uninstalled and installed Kodi and its dependencies, but I didn't even think about the driver.
It works. Thank you!
 
After updating Kodi to v.20, now when starting this problem
Code:
% kodi
libva info: VA-API version 1.17.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Crash report available at /home/kodi_crashlog-20230215_202404.log
Reinstalled all the necessary and unnecessary. Doesn't work. Is this solvable?
 
If anyone is interested... So it turns out that the new version of Kodi has something wrong with GL/GLX and NVIDIA compatibility (Discussion).
This command solves it:
Code:
%  env LD_PRELOAD=/usr/local/lib/libGL-NVIDIA.so kodi
Kodi starts up and works.
 
Back
Top