Spotify and Kodi error - libva error

Hello,
I haven’t updated my old laptop in a while. After doing so I got this error
when I launch Spotify (flatpak) and Kodi.

Spotify:

[jesuslinux@T2310 ~]$ flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client 
[jesuslinux@T2310 ~]$ Gtk-Message: 20:30:09.350: Failed to load module "xapp-gtk3-module"
Gtk-Message: 20:30:09.350: Failed to load module "xapp-gtk3-module"
Gtk-Message: 20:30:09.350: Failed to load module "canberra-gtk-module"
Gtk-Message: 20:30:09.350: Failed to load module "canberra-gtk-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/i965_drv_video.so init failed

Kodi starts and crashes immediately:

[jesuslinux@T2310 ~]$ kodi
libva error: /usr/lib/dri/i965_drv_video.so init failed
libva error: /usr/lib/dri/i965_drv_video.so init failed
terminate called after throwing an instance of 'fmt::v11::format_error'
  what():  string pointer is null
/usr/bin/kodi: line 215:  2160 Aborted                 (core dumped) ${KODI_BINARY} ${ENV_ARGS} $SAVED_ARGS
Crash report available at /home/jesuslinux/kodi_crashlog-20241206_200816.log

System info:

[jesuslinux@T2310 ~]$ inxi -zv8
System:
  Kernel: 6.6.63-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: hpet avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=bcf193ee-4a85-4d7a-af9a-2608b263d116 rw apparmor=1
    security=apparmor udev.log_priority=3
    bootsplash.bootfile=/bootsplash-themes/manjaro/bootsplash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.43 wm: xfwm4 v: 4.18.0
    with: xfce4-panel tools: light-locker vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: TOSHIBA product: Satellite L40 v: PSL48E-01T00GPT
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: TOSHIBA model: Satellite L40 v: 1.0 serial: <superuser required>
    uuid: <superuser required> BIOS: American Megatrends v: 1.50
    date: 08/21/2007
Battery:
  ID-1: BAT0 charge: 11.2 Wh (84.8%) condition: 13.2/44.0 Wh (30.0%)
    volts: 9.9 min: 11.1 model: TOSASU NS2P3SZPHIWR type: Li-ion serial: N/A
    status: not charging
Memory:
  System RAM: total: 3 GiB available: 2.9 GiB used: 1.37 GiB (47.4%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 8 GiB slots: 2 modules: 2 EC: None
    max-module-size: 4 GiB note: est.
  Device-1: SODIMM0 type: DDR2 detail: synchronous size: 1024 MiB speed: N/A
    volts: N/A width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: <filter>
  Device-2: SODIMM1 type: DDR2 detail: synchronous size: 2 GiB speed: N/A
    volts: N/A width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Pentium Dual T2310 bits: 64 type: MCP arch: Core2 Merom
    level: v1 built: 2006-09 process: Intel 65nm family: 6 model-id: 0xF (15)
    stepping: 0xD (13) microcode: 0xA4
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 2 smt: <unsupported> cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 1024 KiB desc: 1x1024 KiB
  Speed (MHz): avg: 798 min/max: 800/1467 scaling: driver: acpi-cpufreq
    governor: schedutil cores: 1: 798 2: 798 bogomips: 5854
  Flags: acpi aperfmperf apic arch_perfmon bts clflush cmov constant_tsc
    cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts est fpu fxsr ht lahf_lm lm mca
    mce mmx monitor msr mtrr nopl nx pae pat pbe pdcm pebs pge pni pse pse36
    pti rep_good sep sse sse2 ssse3 syscall tm tm2 tsc vme xtpr
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling;
    PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Mobile GM965/GL960 Integrated Graphics vendor: Toshiba
    driver: i915 v: kernel arch: Gen-4 process: Intel 65n built: 2006-07 ports:
    active: LVDS-1 empty: VGA-1 bus-ID: 00:02.0 chip-ID: 8086:2a02
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.14 compositor: xfwm4 v: 4.18.0 driver:
    X: loaded: modesetting alternate: fbdev,vesa dri: crocus gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1280x800 s-dpi: 96 s-size: 338x211mm (13.31x8.31")
    s-diag: 398mm (15.69")
  Monitor-1: LVDS-1 model: LG Philips 0xdd00 built: 2006 res: 1280x800
    hz: 60 dpi: 98 gamma: 1.2 chroma: red: x: 0.600 y: 0.349 green: x: 0.325
    y: 0.553 blue: x: 0.153 y: 0.145 white: x: 0.314 y: 0.329
    size: 331x207mm (13.03x8.15") diag: 390mm (15.4") ratio: 16:10
    modes: 1280x800
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel 82801H HD Audio vendor: Toshiba driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:284b class-ID: 0403
  API: ALSA v: k6.6.63-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 1.2.7 status: off tools: pw-cli
  Server-4: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl,pavucontrol
Network:
  Device-1: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
    vendor: Toshiba driver: 8139too v: 0.9.28 modules: 8139cp port: c800
    bus-ID: 05:07.0 chip-ID: 10ec:8139 class-ID: 0200
  IF: enp5s7 state: unknown speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8187B Wireless Adapter driver: rtl8187 type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-2:2 chip-ID: 0bda:8197
    class-ID: 0000 serial: <filter>
  IF: wlp0s26f7u2 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager,wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 111.79 GiB used: 48.12 GiB (43.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37120G
    size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 61K1 scheme: MBR
  Optical-1: /dev/sr0 vendor: ■■■■■■■■ model: DVD-RAM UJ-850S rev: 1.10
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 35.78 GiB size: 34.92 GiB (97.60%) used: 24.88 GiB (71.3%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: bcf193ee-4a85-4d7a-af9a-2608b263d116
  ID-2: /mnt/0842f047-cca4-473d-9e04-ca63ff88dca6 raw-size: 35.75 GiB
    size: 34.89 GiB (97.60%) used: 22.49 GiB (64.5%) fs: ext4 dev: /dev/sda1
    maj-min: 8:1 label: N/A uuid: 0842f047-cca4-473d-9e04-ca63ff88dca6
  ID-3: /mnt/6a948e29-789f-4b07-96f1-797aa68ce297 raw-size: 37.26 GiB
    size: 36.38 GiB (97.63%) used: 24 KiB (0.0%) fs: ext4 dev: /dev/sda3
    maj-min: 8:3 label: N/A uuid: 6a948e29-789f-4b07-96f1-797aa68ce297
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 3 GiB used: 768.9 MiB (25.0%)
    priority: -2 dev: /dev/sda4 maj-min: 8:4 label: N/A
    uuid: 12caca66-24a5-4411-ba75-caf759eb2f9b
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: full speed or root hub ports: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-2: 2-0:1 info: full speed or root hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 2-2:2 info: Realtek RTL8187B Wireless Adapter type: Network
    driver: rtl8187 interfaces: 1 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
    mode: 2.0 power: 500mA chip-ID: 0bda:8197 class-ID: 0000 serial: <filter>
  Hub-3: 3-0:1 info: full speed or root hub ports: 6 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: full speed or root hub ports: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: full speed or root hub ports: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-6: 6-0:1 info: full speed or root hub ports: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 6-1:2 info: MosArt Full-Speed Mouse type: mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 062a:6728 class-ID: 0301
  Hub-7: 7-0:1 info: full speed or root hub ports: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 60.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: 1399 pm: pacman pkgs: 1377 libs: 436 tools: pamac,yay pm: flatpak
    pkgs: 22
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://coresite.mm.fcix.net/manjaro/stable/$repo/$arch
    2: https://uvermont.mm.fcix.net/manjaro/stable/$repo/$arch
    3: https://nnenix.mm.fcix.net/manjaro/stable/$repo/$arch
    4: https://southfront.mm.fcix.net/manjaro/stable/$repo/$arch
    5: https://opencolo.mm.fcix.net/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 175
  1: cpu: 300% command: ps pid: 6202 mem: 3.38 MiB (0.1%)
  2: cpu: 22.7% command: firefox pid: 5974 mem: 249.6 MiB (8.4%)
  3: cpu: 19.7% command: firefox pid: 2269 mem: 359.9 MiB (12.1%)
  4: cpu: 3.4% command: Xorg pid: 872 mem: 47.9 MiB (1.6%)
  5: cpu: 2.4% command: [kswapd0] pid: 49 mem: 0.00 MiB (0.0%)
  Memory top: 5 of 175
  1: mem: 359.9 MiB (12.1%) command: firefox pid: 2269 cpu: 19.7%
  2: mem: 249.6 MiB (8.4%) command: firefox pid: 5974 cpu: 22.7%
  3: mem: 135.9 MiB (4.5%) command: firefox pid: 3395 cpu: 1.6%
  4: mem: 98.9 MiB (3.3%) command: firefox pid: 2394 cpu: 1.1%
  5: mem: 91.6 MiB (3.0%) command: firefox pid: 2608 cpu: 1.4%
Info:
  Processes: 175 Power: uptime: 1h 9m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 1.15 GiB services: upowerd,xfce4-power-manager
    Init: systemd v: 256 default: graphical tool: systemctl
  Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: Bash v: 5.2.37
    running-in: xfce4-terminal inxi: 3.3.36

Any help on this?
Thanks

1 Like

Hello @JesusLinux :wink:

That should install it:

pamac install libva-intel-driver intel-media-driver

Hello,

I installed the driver like you said. Rebooted and the same errors described above occur when trying run Spotify or Kodi

[jesuslinux@T2310 ~]$ flatpak run com.spotify.Client
[jesuslinux@T2310 ~]$ Gtk-Message: 14:31:32.774: Failed to load module "xapp-gtk3-module"
Gtk-Message: 14:31:32.775: Failed to load module "xapp-gtk3-module"
Gtk-Message: 14:31:32.775: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:31:32.775: Failed to load module "canberra-gtk-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/i965_drv_video.so init failed
^C
[jesuslinux@T2310 ~]$ kodi
libva error: /usr/lib/dri/iHD_drv_video.so init failed
libva error: /usr/lib/dri/i965_drv_video.so init failed
libva error: /usr/lib/dri/iHD_drv_video.so init failed
libva error: /usr/lib/dri/i965_drv_video.so init failed
terminate called after throwing an instance of 'fmt::v11::format_error'
  what():  string pointer is null
/usr/bin/kodi: line 215:  2272 Aborted                 (core dumped) ${KODI_BINARY} ${ENV_ARGS} $SAVED_ARGS
Crash report available at /home/jesuslinux/kodi_crashlog-20241207_143217.log

So your GPU doesn’t support Hardware Video Acceleration at all? Check this:

LIBVA_DRIVER_NAME=i965 vainfo
LIBVA_DRIVER_NAME=iHD vainfo

It’s an old laptop from 2007.
Both return the same output:

[jesuslinux@T2310 ~]$ LIBVA_DRIVER_NAME=i965 vainfo
bash: vainfo: command not found

[jesuslinux@T2310 ~]$ LIBVA_DRIVER_NAME=iHD vainfo
bash: vainfo: command not found

Graphics:
  Device-1: Intel Mobile GM965/GL960 Integrated Graphics vendor: Toshiba
    driver: i915 v: kernel arch: Gen-4 process: Intel 65n built: 2006-07 ports:
    active: LVDS-1 empty: VGA-1 bus-ID: 00:02.0 chip-ID: 8086:2a02
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.14 compositor: xfwm4 v: 4.18.0 driver:
    X: loaded: modesetting alternate: fbdev,vesa dri: crocus gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1280x800 s-dpi: 96 s-size: 338x211mm (13.31x8.31")
    s-diag: 398mm (15.69")
  Monitor-1: LVDS-1 model: LG Philips 0xdd00 built: 2006 res: 1280x800
    hz: 60 dpi: 98 gamma: 1.2 chroma: red: x: 0.600 y: 0.349 green: x: 0.325
    y: 0.553 blue: x: 0.153 y: 0.145 white: x: 0.314 y: 0.329
    size: 331x207mm (13.03x8.15") diag: 390mm (15.4") ratio: 16:10
    modes: 1280x800
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.

Well, then install it?

pamac install libva-utils

Ok, I installed it.
Now I get this:

[jesuslinux@T2310 ~]$ LIBVA_DRIVER_NAME=iHD vainfo
Trying display: wayland
Trying display: x11
libva error: /usr/lib/dri/iHD_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

[jesuslinux@T2310 ~]$ LIBVA_DRIVER_NAME=i965 vainfo
Trying display: wayland
Trying display: x11
libva error: /usr/lib/dri/i965_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit

Well, then you need to disable VAAPI here, since your GPU is too old. VAAPI is enabled by default nowadays.

flatpak run com.spotify.Client --disable-gpu

No idea about KODI.

I get the same result with that command:

[jesuslinux@T2310 ~]$ flatpak run com.spotify.Client --disable-gpu
[jesuslinux@T2310 ~]$ Gtk-Message: 19:15:55.891: Failed to load module "xapp-gtk3-module"
Gtk-Message: 19:15:55.891: Failed to load module "xapp-gtk3-module"
Gtk-Message: 19:15:55.891: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:15:55.891: Failed to load module "canberra-gtk-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/i965_drv_video.so init failed

Just guessing now:

flatpak run com.spotify.Client --disable-features=VaapiVideoDecoder

Didn’t work.
I tried installing other spotify versions to no avail.
Those libva errors keep popping up…

I have Zorin Lite distro on the other partition and Spotify works but Kodi does not…

Don’t know what to do…