Massive python update broke Kodi

Hi all,

The update I did today somehow broke Kodi, it refuses to start.
There were a great amount of Python updates so this may have been the reason why.

When I start kodi from a terminal I get this:

$ kodi
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!
Failed to open VDPAU backend libvdpau_radeonsi.so: cannot open shared object file: No such file or directory
Can't load /etc/samba/smb.conf - run testparm to debug it
Can't load /etc/samba/smb.conf - run testparm to debug it
Can't load /etc/samba/smb.conf - run testparm to debug it
/usr/bin/kodi: line 186:  1398 Segmentation fault      (core dumped) ${KODI_BINARY} $SAVED_ARGS

Been searching in the old interwebs and all I could find was that I may have to install libvdpau-va-gl instead of using libvdpau, since this is needed for Nvidia based gpu’s.
I did so but this didn’t work.

2021-12-13_14-13

Anything I could do, or reinstall Kodi?

$ inxi -Fxxxxz
System:    Kernel: 5.15.7-arch1-1 x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: Xfce 4.16.0
           tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.30.0
           Distro: EndeavourOS base: Arch Linux
Machine:   Type: Laptop System: Dell product: Inspiron 5505 v: 1.5.4
           serial: <superuser required> Chassis: type: 10 v: 1.5.4 serial: <superuser required>
           Mobo: Dell model: 0YX59Y v: A01 serial: <superuser required> UEFI: Dell v: 1.5.4
           date: 06/10/2021
Battery:   ID-1: BAT0 charge: 39.8 Wh (100.0%) condition: 39.8/39.8 Wh (100.0%) volts: 12.9
           min: 11.2 model: BYD DELL CF5RH13 type: Unknown serial: <filter> status: Full
           Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter>
           charge: 55% (should be ignored) rechargeable: yes status: Discharging
CPU:       Info: 6-Core model: AMD Ryzen 5 4500U with Radeon Graphics bits: 64 type: MCP
           arch: Zen 2 rev: 1 cache: L1: 384 KiB L2: 3 MiB L3: 8 MiB
           flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
           bogomips: 28453
           Speed: 1532 MHz min/max: 1400/2375 MHz boost: enabled Core speeds (MHz): 1: 1397
           2: 1397 3: 1397 4: 1397 5: 1397 6: 1397
Graphics:  Device-1: AMD Renoir vendor: Dell driver: amdgpu v: kernel bus-ID: 03:00.0
           chip-ID: 1002:1636 class-ID: 0300
           Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 3-2:3
           chip-ID: 0c45:671b class-ID: 0e02
           Display: x11 server: X.Org 1.21.1.1 compositor: xfwm4 v: 4.16.1 driver:
           loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz
           s-dpi: 96
           Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:     Device-1: AMD vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 03:00.1
           chip-ID: 1002:1637 class-ID: 0403
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Dell
           driver: snd_rn_pci_acp3x v: kernel bus-ID: 03:00.5 chip-ID: 1022:15e2 class-ID: 0480
           Device-3: AMD Family 17h HD Audio vendor: Dell driver: snd_hda_intel v: kernel
           bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403
           Sound Server-1: ALSA v: k5.15.7-arch1-1 running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: no
           Sound Server-4: PipeWire v: 0.3.41 running: yes
Network:   Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Dell
           driver: ath10k_pci v: kernel bus-ID: 02:00.0 chip-ID: 168c:003e class-ID: 0280
           IF: wlan0 state: up mac: <filter>
Bluetooth: Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 3-3:4
           chip-ID: 0cf3:e007 class-ID: e001
           Report: bt-adapter note: tool can't run ID: hci0 rfk-id: 1 state: down
           bt-service: disabled rfk-block: hardware: no software: yes address: N/A
Drives:    Local Storage: total: 238.47 GiB used: 127.47 GiB (53.5%)
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC511 NVMe 256GB size: 238.47 GiB
           speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 11004101 temp: 30.9 C
           scheme: GPT
Partition: ID-1: / size: 224.51 GiB used: 127.45 GiB (56.8%) fs: ext4 dev: /dev/nvme0n1p2
           ID-2: /boot/efi size: 511 MiB used: 17.7 MiB (3.5%) fs: vfat dev: /dev/nvme0n1p1
Swap:      ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
           dev: /dev/nvme0n1p3
           ID-2: swap-2 type: zram size: 4 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram1
           ID-3: swap-3 type: zram size: 4 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 37.0 C mobo: 32.0 C gpu: amdgpu temp: 40.0 C
           Fan Speeds (RPM): cpu: 0
Info:      Processes: 232 Uptime: 12m wakeups: 1289 Memory: 15.06 GiB used: 1.95 GiB (13.0%)
           Init: systemd v: 249 Compilers: gcc: 11.1.0 Packages: pacman: 1176 Shell: Bash
           v: 5.1.12 running-in: xfce4-terminal inxi: 3.3.09

3 Likes

Thanks, I missed this message today. :flushed:
I’ll look into it and see if I can solve my issue.

It looks like the update went fine:

$ pacman -Qoq /usr/lib/python3.9
fout:Geen enkel pakket bezit /usr/lib/python3.9
$ pacman -Qoq /usr/lib/python3.10
avahi
bind
boost-libs
btrfs-progs
catfish
dbus-python
glances
graphviz
gst-python
imath
iotop
ldb
lensfun
libblockdev
libbytesize
libftdi
libgexiv2
libibus
libimobiledevice
libixion
libnewt
libopenshot
liborcus
libplist
libproxy
libpwquality
libreoffice-fresh
libsmbios
libteam
libxml2
lightdm-gtk-greeter-settings
lilv
lirc
meld
mlt
nicotine+
openshot
pahole
python
python-appdirs
python-argcomplete
python-cachecontrol
python-cairo
python-cffi
python-chardet
python-colorama
python-contextlib2
python-cryptography
python-defusedxml
python-distlib
python-distro
python-dnspython
python-feedparser
python-future
python-gobject
python-html5lib
python-idna
python-importlib-metadata
python-markdown
python-more-itertools
python-msgpack
python-musicbrainzngs
python-mutagen
python-opengl
python-ordered-set
python-packaging
python-pep517
python-pexpect
python-pillow
python-pip
python-ply
python-progress
python-psutil
python-ptyprocess
python-pycparser
python-pycryptodomex
python-pyopenssl
python-pyparsing
python-pyqt5
python-pyqt5-sip
python-pyudev
python-pyzmq
python-requests
python-resolvelib
python-retrying
python-setproctitle
python-setuptools
python-sgmllib3k
python-simplejson
python-six
python-termcolor
python-toml
python-tomli
python-urllib3
python-urwid
python-webencodings
python-xapp
python-xlib
python-yaml
python-zipp
quodlibet
reflector
s-tui
solaar
soundconverter
speedtest-cli
sshuttle
talloc
tbb
tdb
tevent
tldr
util-linux
vidcutter
volume_key
xapp
xcb-proto
zbar

1 Like

Very good info. Thank you.

This python update broke getmail6 which I use to retrieve my email. Rebuilding getmail6 fixes it.

1 Like

Kudos to @Scotty_Trees :+1:

1 Like

Same here. Started over with a new profile and (almost) no addons installed and it’s working again so far.

I’ll do that as well, Kodi still fails to start.

Edit: this didn’t go well, I reinstalled kodi and it started fine, but after installing an addon it crashed again.

$ kodi
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!
Failed to open VDPAU backend libvdpau_radeonsi.so: cannot open shared object file: No such file or directory
/usr/bin/kodi: line 186:  7615 Segmentation fault      (core dumped)

@Lemon Many addons for Kodi use python. If the addon developer has not updated their addon to use the new python, then you may have some issues. Which addon did you install? If it was from the official Kodi Addon Repository, I suggest going to the Kodi forums and create a post in the “Addons” section.

Kodi Forum - Addons

If the addon is NOT from their Official Addon Repository, then they will not be able to help you there. Especially if it is an addon that allows you to stream “less than” legal content.

You can always manually uninstall the addon by deleting its folder. Make sure you can see hidden files.

Open the following folder:

~/.kodi/addons

This folder contains all the addons that are installed in Kodi. Many of them are installed by default. Find the folder that your addon is installed to. For example: The Youtube addon is installed to the folder plugin.video.youtube

Now go to this folder:

~/.kodi/userdata/addon_data

This folder has all the configuration data for any addons that you may have installed. Delete the folder there for the addon. For example: The Youtube addon folder is named plugin.video.youtube.

On my install of Kodi, I found that the YouTube addon will crash Kodi when I try to run it. Since I no longer use that addon, so I uninstalled it, and everything is working fine.

1 Like

I tried two addons that I use to stream movies and series with, not legal at all.
And they both failed.
So Kodi can go, if this remains the same.

Since you did not post which add-ons were breaking Kodi, I will assume that they are not from the Official Repository. Then you need to contact the devs of those add-ons. Kodi can’t provide support for third-party add-ons. It is the same with Gnome. The Gnome devs do not offer support for extensions when they break.

Either way, I wish you luck.

1 Like

No, that’s why I said, not legal at all. :wink:

1 Like

For now, I fixed it by downgrading python to 3.10.0.
Kodi is working again.