[RPi4] Instabilities With Prime Decoder

  • Hi, I'm using 12.0 on a Pi4, nightly-20241112-a5ae7e7 currently to be exact. I have an USB Anysee DVB-C decoder connected, which I use with TVHeadend, both server and client run on the Pi. I've used this setup for years now, first on a Odroid-C2, and since a year or 2 on a Pi4. The last half year or so I have random crashes of Kodi. So thinking back, I think it's sice LE12. I think it's related to us having a bad cable signal from time to time. So sometimes I have artifacts when viewing live TV. I'm using high quality Hirschmann coax cables, as short as possible, with only the Pi4 and my cablemodem for internet connected. But we live a bit outskirts, so there's long cables outside to the first node. Nothing I can do about that.

    What happens, sometimes I get these artifacts, most people will recognise it, bad MPEG artifacts. Sometimes it will recover, but sometimes Kodi will hang for a few seconds, crash and restart. When that happens, only Kodi restarts, but the Pi itself does not reboot. So LE keeps running. Whenever Kodi restarted, after that it's usually unstable as hell crashing when I try to play a DVD, H264 or H265. Not always but most of the times. When it doesn't work there's two scenarios; the screen dims and the 'wait' circle is turning, and just keeps turning but nothing happens. Then using stop / back buttons I sometimes can get back to the menu and try again.
    The other option is that Kodi starts playing the video for a few seconds, crash out and restarts again.

    The only way I can recover from this loop, is to properly reboot LE, ie from the power menu or by unplugging power for a bit in case it really hung. After that's it's all fine again, I can play all videos, DVD's just fine.

    I fiddled around, and found that disabling PRIME decoder makes things work again too, even without a reboot. Ie, when Kodi crashed out and restarted, which would then be somewhat reproducible, and I disable PRIME, I can watch anything again.

    I ran into this a lot lately, as I was asked to record a certain series from TV daily. It happens to be on a channel which resides on a mux which typically has the worst signal. This is why I think the bad PVR signal is triggering this. So I guess recording a bad signal makes it go bad as well. When I disable PRIME though, I have no issues at all, except for the Pi4 not being fast enough to decode everything, so I have stuttering then.

    So I have a few questions:

    - Is PRIME even involved when recording DVB-C?
    - How can PRIME put the Pi4 (or the decoding) put in this state that needs a reboot? Isn't PRIME initialised at the start of every playback?
    - What logs would be needed? Capturing a log of it crashing during playback I can manage, but capturing the moment that triggers the issue might be hard as it can take days before it happens.
    - If I have a recording that triggers the crash on my side, I assume I should share that file?

  • I was lucky, got it to crash first try. The recording makes my Pi4 crash every single time I play it with PRIME enabled. With disabled it runs fine. It crashes right at the end of this 16 second clip. I just started recording and stopped recording, this is the file that came out.

    Logs captured: https://paste.libreelec.tv/ultimate-spaniel.log
    Actual video file at https://1drv.ms/v/s%21As_wCUgs-pjPhEQVPqyKXA68sGvv?e=XUN7Ps

    Not sure if the kodi-restart interferes with the logging.

  • You use a banned repo, which stops support from our side.

    Remove all banned add-ons and repos. If the problem remains afterwards, open a new thread with a clean log.

    newphreak
    March 15, 2016 at 1:02 AM