Open kkarsten62 opened 1 day ago
Kodi crashed when a radio channels is clicked on Desktop Workstation client and Tablet client
Was this a one-time crash or can you reproduce it?
Was this a one-time crash or can you reproduce it?
Yes it can be reproduce.
Okay, from looking at the related code i cannot see where it crashes exactly. Would you be able to build the addon yourself so we get debug symbols?
Okay, from looking at the related code i cannot see where it crashes exactly. Would you be able to build the addon yourself so we get debug symbols?
I never did to build a Flatpack/Kodi Addon. But I am developer in C++, Qt, Python3 - so I will do my very best. Please give me some advice where to start.
I will set up on weekend a dedicated VM to build kodi and pvr.hts with debug symbols.
I just checked the debugging options adviced by https://docs.flatpak.org/en/latest/debugging.html#debug-shell. But what I see this is not really helpful. I did: Delete existing Kodi Flatpak via GUI software app
$ flatpak install --include-sdk --include-debug tv.kodi.Kodi
$ flatpak run --command=sh --devel --filesystem=$(pwd) tv.kodi.Kodi
$ /app/bin/kodi
'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:63 do_unlock()
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
/usr/include/c++/13.2.0/bits/basic_string.h:1226: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]: Assertion '__pos <= size()' failed.
/app/bin/kodi: Zeile 216: 152 Abgebrochen (Speicherabzug geschrieben) ${KODI_BINARY} ${ENV_ARGS} $SAVED_ARGS
find: ‘/home/karl/Computer/Backup/fromServer/Nextcloud_data’: Keine Berechtigung
find: ‘/home/karl/Computer/Backup/fromServer/proxy_certs’: Keine Berechtigung
Crash report available at /home/karl/.var/app/tv.kodi.Kodi/data/kodi_crashlog-20241019_110435.log
Crashlog: https://paste.kodi.tv/ugidaxariz.kodi
$ gdb /app/bin/kodi
GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/app/bin/kodi": not in executable format: file format not recognized
(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
I need a helping hand.
I set up a VM with a fresh Fedora 40 Workstation installation. Crash can be reproduce in this VM.
I followed https://github.com/xbmc/xbmc/blob/master/docs/README.Fedora.md
I cloned kodi and checkout branch Omega
.
I installed compiler and all packages. libusb-devel
was not found - so I installed libusb1-devel
instead.
Then I switch to https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md
I followed the given instructions.
But now I am blocked at sudo make -C tools/depends/target/wayland-protocols PREFIX=/usr/local
First meson
was missing. I installed it.
Next I run into:
$ LANG=C sudo make -C tools/depends/target/wayland-protocols PREFIX=/usr/local
make: Entering directory '/home/karl/kodi/tools/depends/target/wayland-protocols'
cd native/build; /bin/ninja -v install
ninja: error: loading 'build.ninja': No such file or directory
make: *** [Makefile:54: .installed-native] Error 1
make: Leaving directory '/home/karl/kodi/tools/depends/target/wayland-protocols'
I have no idea how to fix this.
I'm not a Linux guy. Maybe @howie-f can help?
hi, @kkarsten62 unfortunately our build instructions for linux are somewhat outdated and i am on debian not fedora, but i'll try to help.
Let's assume you cloned the kodi repo to ~/xbmc. in case you cloned somewhere else (example ~/kodi) you would need to adjust the cmake command below accordingly.
so, first check out the omega branch.
fhw@xbmc-build:~/xbmc (master) $ git checkout Omega
Switched to branch 'Omega'
Your branch is up to date with 'origin/Omega'.
fhw@xbmc-build:~/xbmc (Omega) $
Then create the build directory and change into it:
fhw@xbmc-build:~/xbmc (Omega) $ mkdir pvr.hts-build && cd pvr.hts-build
fhw@xbmc-build:~/xbmc/pvr.hts-build (Omega) $
Next configure the build of pvr.hts with cmake (adjust the path ../../xbmc/cmake/addons, if needed)
cmake -DADDONS_TO_BUILD=pvr.hts \
-DCMAKE_BUILD_TYPE=Debug \
-DPACKAGE_ZIP=1 \
../../xbmc/cmake/addons
you should see something like
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fhw/xbmc/pvr.hts-build
then build: make
-- Installing: /home/fhw/xbmc/pvr.hts-build/.install/pvr.hts/pvr.hts.so.21.1
-- Installing: /home/fhw/xbmc/pvr.hts-build/.install/pvr.hts/pvr.hts.so
[ 55%] Completed 'pvr.hts'
[100%] Built target pvr.hts
then package: make package-pvr.hts
CPack: Create package
CPack: - package: /home/fhw/xbmc/pvr.hts-build/pvr.hts-prefix/src/pvr.hts-build/addon-pvr.hts-21.2.5-linux.zip generated.
Built target addon-package
[100%] Built target package-pvr.hts
then install the zip on your target... i hope this helps
Many thanks for your clear instructions. It`s works w/o any problem. I see the zip file:
...
-- Up-to-date: /home/karl/xbmc/cmake/addons/output/addons/pvr.hts/pvr.hts.so
[ 44%] Completed 'pvr.hts'
[100%] Built target pvr.hts
[ 16%] Built target hts
[100%] Built target pvr.hts
Run CPack packaging tool...
CPack: Create package using ZIP
CPack: Install projects
CPack: - Run preinstall target for: pvr.hts
CPack: - Install project: pvr.hts []
CPack: - Install component: pvr.hts-21.2.5-linux
CPack: Create package
CPack: - package: /home/karl/xbmc/pvr.hts-build/pvr.hts-prefix/src/pvr.hts-build/addon-pvr.hts-21.2.5-linux.zip generated.
Built target addon-package
[100%] Built target package-pvr.hts
I guess you know that...
I use always for huge compilation make -j$(nproc)
. Then all processors of my computer has something to do :-)
Later on I will check with the build zip, whether I see more for the related crash.
I already opened a ticket in Kodi forum: https://forum.kodi.tv/showthread.php?tid=379169&pid=3212900#pid3212900 But people advised me to open the ticket here.
I am using LibreElec/Kodi/Tvheadend on a Intel NUC as server. And Fedora 40 Workstation on my Desktop Computer and on a Tablet as clients.
All TV channels working fine on all three devices (NUC server, Desktop Workstation client, Tablet client) Radio channels working fine on NUC server Kodi crashed when a radio channels is clicked on Desktop Workstation client and Tablet client
Entry of a radio channel in iptv.m3u https://paste.kodi.tv/vigetukodi
Here a some logs: System environment of my Desktop computer https://paste.kodi.tv/cizohaqide
Journalctl of relevant crash https://paste.kodi.tv/asebidetuz.kodi
Tvheadend log https://paste.kodi.tv/ecuvolofef
kodi.log https://paste.kodi.tv/irugofodiz.kodi
For flatpak debugging I followed https://docs.flatpak.org/en/latest/debugging.html
flatpak install --include-sdk --include-debug tv.kodi.Kodi
I choose: 1)flathub’ (system)
Then:
flatpak run --command=sh --devel --filesystem=$(pwd) tv.kodi.Kodi
A new sh opened, but I don't know what to do here?! Stepped out byCTRL-D
Instead:
coredumpctl list
flatpak-coredumpctl -m 14948 tv.kodi.Kodi
(gdb) bt full
See log here: https://paste.kodi.tv/penuleyuca.kodiThanks for any help. Karl