Kodi from Debian (20.5) crashes when running addons due to Python 3.12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kodi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Basically, when Kodi starts an addon, it will use the new default Python 3.12 lang interpreter which has a new limitation of initialization order. Kodi ignores this requirement when starting an addon and crashes in the python library:
Thread 1 (Thread 0x7cef279403c0 (LWP 162962)):
#0 __pthread_
#1 __pthread_
#2 __GI___pthread_kill (threadid=
#3 0x00007cef3464526e in __GI_raise (sig=sig@entry=6) at ../sysdeps/
#4 0x00007cef346288ff in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007cef39718f03 in ??? () at /lib/x86_
#6 0x00007cef398f2f58 in _Py_FatalErrorFunc () at /lib/x86_
#7 0x00007cef398d38ae in PyImport_
#8 0x000059502f31bc94 in CAddonPythonInv
#9 0x000059502fdc6eea in CScriptInvocati
#10 0x000059502fdc71ac in CScriptInvocati
#11 0x000059502fdc7483 in ??? ()
#12 0x000059502fdc9474 in CBuiltins:
#13 0x000059502f87c27b in CApplication:
#14 0x000059502f87e9c1 in CApplication:
#15 0x000059502f7e43f1 in CGUIWindowManag
#16 0x000059502f72c06f in ??? ()
#17 0x000059502f72c286 in CDirectoryProvi
#18 0x000059502f77ad2a in CGUIBaseContain
#19 0x000059502f77b04c in CGUIBaseContain
#20 0x000059502f769727 in CGUIControl:
#21 0x000059502f78a781 in CGUIControlGrou
#22 0x000059502f787ac5 in CGUIControlGrou
#23 0x000059502f787ac5 in CGUIControlGrou
#24 0x000059502f787ac5 in CGUIControlGrou
#25 0x000059502f787ac5 in CGUIControlGrou
#26 0x000059502f7e984a in CGUIWindow:
#27 0x000059502f7eed55 in CGUIWindow:
#28 0x000059502f7e48df in CGUIWindowManag
#29 0x000059502f7e4a48 in CGUIWindowManag
#30 0x000059502f8793c1 in CApplication:
#31 0x000059502f73ff93 in CInputManager:
#32 0x000059502f74a8a7 in CInputManager:
#33 0x000059502f87aee4 in CApplication:
#34 0x000059502f87b260 in CApplication:
#35 0x000059502f871e59 in CApplication::Run() ()
#36 0x000059502f194a1a in main ()
I have found the ticket and the fix in the Kodi github:
https:/
No LSB modules are available.
Description: Ubuntu 24.04 LTS
Release: 24.04
kodi-bin:
Installed: 2:20.5+dfsg-1build2
Candidate: 2:20.5+dfsg-1build2
Version table:
*** 2:20.5+dfsg-1build2 500
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: kodi 2:20.5+dfsg-1build2
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 24 18:59:17 2024
InstallationDate: Installed on 2018-05-05 (2181 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: kodi
UpgradeStatus: Upgraded to noble on 2024-04-24 (0 days ago)
modified.
mtime.conffile.
I have applied the patch from Xbmc master to this particular problem and now addons work properly and no more crash. The patch is legit and should be applied to official Ubuntu 24.04 repo