VAAPI crash when playing certain livestreams - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: VAAPI crash when playing certain livestreams (/showthread.php?tid=377150) |
VAAPI crash when playing certain livestreams - deivid2 - 2024-04-17 Hi I've recently bought a Radxa X2L which is based on the Intel J4125. I'm facing segmentation faults playing certain livestreams, which are h264 in a ts container, and streamed through m3u8 playlists. The error log I get from Kodi is (from my research, 12 means JPEG and I don't understand why it's being used here) along with a kernel message Code: [87451.740568] VideoPlayer[100060]: segfault at 7f5460eb004d ip 00007f548aafed49 sp 00007f53eb7fb4c8 error 4 in libc.so.6[7f548aa82000+155000] likely on CPU 2 (core 2, socket 0) On startup, Kodi logs that it can successfully open libva: Code: libva info: VA-API version 1.17.0 If I disable 'Enable Hardware acceleration' in Settings -> Player, then the segfault no longer occurs. If I leave 'Enable hardware acceleration' enabled and disable every codec (MP2, MP4, VP8, ..) I still get a segmentation fault. If I play the same URL via `mpv --hwdec=vaapi` the playback works fine. If I download the .ts files manually, I can play them fine (!!) My Kodi version is 2:20.1+dfsg-1, gotten from `apt` on Debian Bookworm. Debug logs are here. What can I do about this? Can I somehow disable libva usage for JPEGs? RE: VAAPI crash when playing certain livestreams - Neo1973 - 2024-04-19 I remember one VAAPI related fix that could help here, though it's only in Kodi 21 Omega: https://github.com/xbmc/xbmc/pull/23996 I suggest you try the flatpak and see if that fixes the issue. To start the flatpak on GBM use flatpak run --filesystem=/run/udev:ro tv.kodi.Kodi
RE: VAAPI crash when playing certain livestreams - deivid2 - 2024-04-19 The flatpak version works! I think this was indeed my issue - the stream that was causing the segfault has two types of media with different encoding (m3u8 points to .ts files of different resolution) -- maybe that's what was causing it. |