Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Linux Cannot start Kodi on Arch Linux
#1
Hello!

Is just installed Kodi (tried both, first the Arch repositories and then from flathub) and cannot start Kodi.
the message I get always is:
Quote:/usr/include/c++/13.2.1/bits/stl_algo.h:3669: constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&) [with _Tp = int]: Assertion '!(__hi < __lo)' failed.
/usr/bin/kodi: Zeile 181: 69846 Abgebrochen             (Speicherabzug geschrieben) ${KODI_BINARY} $SAVED_ARGS
Crash report available at /home/ladmin/kodi_crashlog-20240121_180747.log

The log is here: https://paste.kodi.tv/cebuvipipi.kodi
Thank you! Smile
 
Reply
#2
You are probably better served asking this on the Arch forums.  The official package will get official support.  Also recommend you prefix your call to kodi with export  LANG=C so that the error message is displayed in English.
Need help programming a Streamzap remote?
Reply
#3
Hello! Smile

The flatflathub package I mentioned is the official one fomr herE: https://kodi.tv/download/linux/

I though it was a Kodi issue, because it's the same error using the flathub Download and using the Arch repo version as well.
Reply
#4
(2024-01-21, 23:08)Lalarian Wrote: Hello! Smile

The flatflathub package I mentioned is the official one fomr herE: https://kodi.tv/download/linux/

I though it was a Kodi issue, because it's the same error using the flathub Download and using the Arch repo version as well.
Sorry, thers's no edit feature.
For some reason using:
Quote:export  LANG=C
leads to no output at all:
Quote:[ladmin@250g8 ~]$ export LANG=C kodi
[ladmin@250g8 ~]$

I this more like an Arch prolem, too?
Reply
#5
Damn, I entered:
export  LANG=C kodi
of course.
Reply
#6
it's already a known issue https://github.com/xbmc/xbmc/issues/22755
and has been already fixed by this PR https://github.com/xbmc/xbmc/pull/23227
but that PR has not been backported to Nexus https://github.com/xbmc/xbmc/blob/Nexus/...lLinux.cpp
Reply
#7
Good find @izprtxqkft

Since I am unsure what the open status of the Arch bug tracker is (it was not freely open a few months ago), I created this issue.

I also compiled kodi 20.3 patched with PR#23227.  @Lalarian - can you try it from here and report back?

For the record, I modified the PKGBUILD like so:
Code:
diff --git a/PKGBUILD b/PKGBUILD
index 52c5853..a9a4f02 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -67,6 +67,7 @@ source=(
   'cheat-sse-build.patch'
   'https://github.com/xbmc/xbmc/commit/35be40daa39965a9ea5b3569eb7d515e6a14da5d.patch'  # flatbuffers 23.3.3
   '0001-ffmpeg-fix-build-with-binutils-update.patch'  # binutils >=2.41
+  23227.patch::https://patch-diff.githubusercontent.com/raw/xbmc/xbmc/pull/23227.patch
 )
 noextract=(
   "$pkgbase-libdvdcss-$_libdvdcss_version.tar.gz"
@@ -89,7 +90,8 @@ sha512sums=('cdec1383d33f421828f0249ac2929980c6eaa39e345a8a364d9f3479f873029a15f
             '3069feb5db40288beb5b112b285186162a704f0fdd3cf67a17fd4eeea015f2cfcfbb455b7aa7c3d79d00fd095a3fd11cffc7b121dce94d99c3b06a509a8977d2'
             '91409cc66959a30f2d0dbf8d28e47dd2acbac560efb8961550c5928ae8546a32d1f156f8e55f073f953b114230117ec96c224212d28c1c1d752540c836c9ae1a'
             'c05888d1ad11f9a33a578ddd2fdb705ccd385178f93f68c6af66d9361a16664f2efec7e92c3bdc2c5c93a979e973e6448ffd2b26dab6d120e1ce8a5ceb2bd948'
-            '6de9e7673022e74428a55ca1e761bdb70e0b6432faa3dae7a2306c197bc52616bffdc138073496c51aebee537079cfd768845f233d688eeea5440dfb5ba163ec')
+            '6de9e7673022e74428a55ca1e761bdb70e0b6432faa3dae7a2306c197bc52616bffdc138073496c51aebee537079cfd768845f233d688eeea5440dfb5ba163ec'
+            '8c0eeb8dbc1e644b39bcdc98a47c6dfb78c206d19db7bc9597f4046eed000d515ac986a6c6806dd8f83f28fdf7ed84cfb295ee0652c769496d603b1f7529578d')

 prepare() {
   [[ -d "$srcdir/kodi-build" ]] && rm -rf "$srcdir/kodi-build"
@@ -106,6 +108,7 @@ prepare() {
   patch -p1 -i "$srcdir/35be40daa39965a9ea5b3569eb7d515e6a14da5d.patch"
   # fix build with binutils >=2.41
   patch -p1 -i "$srcdir/0001-ffmpeg-fix-build-with-binutils-update.patch"
+  patch -p1 -i ../23227.patch
 }

 build() {
Need help programming a Streamzap remote?
Reply
#8
Thank you! Omega beta 2 is starting.
Reply
#9
(2024-01-21, 23:52)Lalarian Wrote: Thank you! Omega beta 2 is starting.

I didn't build Omega, I built Nexus 20.3 + that PR.  Can you please test it and report back?  It will help the Arch bug report I created for you.
Need help programming a Streamzap remote?
Reply
#10
(2024-01-21, 23:49)graysky Wrote: Good find @izprtxqkft

Since I am unsure what the open status of the Arch bug tracker is (it was not freely open a few months ago), I created this issue.

I also compiled kodi 20.3 patched with PR#23227.  @Lalarian - can you try it from here and report back?

For the record, I modified the PKGBUILD like so:
Code:
diff --git a/PKGBUILD b/PKGBUILD
index 52c5853..a9a4f02 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -67,6 +67,7 @@ source=(
   'cheat-sse-build.patch'
   'https://github.com/xbmc/xbmc/commit/35be40daa39965a9ea5b3569eb7d515e6a14da5d.patch'  # flatbuffers 23.3.3
   '0001-ffmpeg-fix-build-with-binutils-update.patch'  # binutils >=2.41
+  23227.patch::https://patch-diff.githubusercontent.com/raw/xbmc/xbmc/pull/23227.patch
 )
 noextract=(
   "$pkgbase-libdvdcss-$_libdvdcss_version.tar.gz"
@@ -89,7 +90,8 @@ sha512sums=('cdec1383d33f421828f0249ac2929980c6eaa39e345a8a364d9f3479f873029a15f
             '3069feb5db40288beb5b112b285186162a704f0fdd3cf67a17fd4eeea015f2cfcfbb455b7aa7c3d79d00fd095a3fd11cffc7b121dce94d99c3b06a509a8977d2'
             '91409cc66959a30f2d0dbf8d28e47dd2acbac560efb8961550c5928ae8546a32d1f156f8e55f073f953b114230117ec96c224212d28c1c1d752540c836c9ae1a'
             'c05888d1ad11f9a33a578ddd2fdb705ccd385178f93f68c6af66d9361a16664f2efec7e92c3bdc2c5c93a979e973e6448ffd2b26dab6d120e1ce8a5ceb2bd948'
-            '6de9e7673022e74428a55ca1e761bdb70e0b6432faa3dae7a2306c197bc52616bffdc138073496c51aebee537079cfd768845f233d688eeea5440dfb5ba163ec')
+            '6de9e7673022e74428a55ca1e761bdb70e0b6432faa3dae7a2306c197bc52616bffdc138073496c51aebee537079cfd768845f233d688eeea5440dfb5ba163ec'
+            '8c0eeb8dbc1e644b39bcdc98a47c6dfb78c206d19db7bc9597f4046eed000d515ac986a6c6806dd8f83f28fdf7ed84cfb295ee0652c769496d603b1f7529578d')

 prepare() {
   [[ -d "$srcdir/kodi-build" ]] && rm -rf "$srcdir/kodi-build"
@@ -106,6 +108,7 @@ prepare() {
   patch -p1 -i "$srcdir/35be40daa39965a9ea5b3569eb7d515e6a14da5d.patch"
   # fix build with binutils >=2.41
   patch -p1 -i "$srcdir/0001-ffmpeg-fix-build-with-binutils-update.patch"
+  patch -p1 -i ../23227.patch
 }

 build() {

Yes, this is working.
Reply

Logout Mark Read Team Forum Stats Members Help
Cannot start Kodi on Arch Linux0