[RPi4] Instabilities With Prime Decoder

  • Hi, continuation of RE: [RPi4] Instabilities With Prime Decoder, which was locked down as it turned out I had a banned repository installed. Fair enough. I didn't even know, I hadn't even any addons installed from it, but again, fair enough. I've removed it, and made sure non of my plugins / addons are banned (as I don't want that either), but it obviously doesn't change the issue I have.

    In short, some files, especially PVR recordings with I think bad signal / bit errors, make kodi crash and restart when PRIME decoder is enabled. When it's disabled, it continues. I managed to make a short recording. With PRIME enabled it crashes at about 15/16 seconds, with PRIME disabled it works fine.

    Logs: https://paste.libreelec.tv/top-rattler.log
    Recording: https://1drv.ms/v/s%21As_wCUgs-pjPhEQVPqyKXA68sGvv?e=XUN7Ps


    [edit]
    The first log might not have had the error in it, as after the kodi restarts the logs were disabled again, and hence maybe reset? I've now enabled logging, rebooted (so it sticks), played the file again, and after the Kodi crash I took another pastkodi. This time also the generated logfile name is better :D

    https://paste.libreelec.tv/talented-rat.log

    Edited 2 times, last by Rataplan626 (December 15, 2024 at 11:38 AM).

  • I have your sample file and can reproduce the crash.

    Looks like the crash is in SetPictureParams calling an invalid function pointer.

    I'll need a debug build to narrow it down further.

    edit:

    Looks like disabling deinterlace avoids the crash.


    Also for me, this crashes:

    Allow DRM PRIME decoder ON

    Allow hardware acceleration with DRM PRIME ON

    Allow hardware deinterlace with DRM PRIME OFF

    This does not crash:

    Allow DRM PRIME decoder ON

    Allow hardware acceleration with DRM PRIME ON

    Allow hardware deinterlace with DRM PRIME ON

  • For this particular clip, indeed on my setup it's the same and enabling prime deinterlacing doesn't crash. I think I've had occurrences where having deinterlace enabled also crashed, as I think I had all accelerations enabled.

    For what it's worth, enabling prime, but keeping acceleration and deinterlace off works too.

    When I enable acceleration and play the clip and forward 10 seconds right at the start, it's not crashing either. Only when I play the full clip it crashes.

    Maybe related, I still have a lot of DVD's which I ripped to ISO and placed on my NAS, mostly Disney animations. With prime enabled DVD's regularly don't 'start', the wait-circle keeps spinning. Usually I can press stop, get back to kodi, start again and then it works. With prime disabled I never have that issue. Maybe it's related.