Kodi crashes systematically (4K file / RPi 4)

  • Hello,

    (Maybe I should open directly a bug report: should it go to LibreELEC or to Kodi ?)

    I am unable to seek in a 4K file. This always crash Kodi (and as a result, LibreELEC reboots).

    Result of pastekodi is here:

    http://ix.io/3WpI

    Crash log is there: https://pastebin.com/

    From what I see in crashlog, seems like file has some issues with TrueHD (and there are tons of lines like DEBUG <general>: CheckPlayerInit - dropping packet type:2 dts:4639301000.000000 to get to start point at 4643000000.000000), but any other player is able to seek and play the file perfectly...

    Is it more a bug for Kodi, ffmpeg or LibreELEC? Any workaround to play truehd files?

    Thanks for any help

  • Ok, bug is about 3 year old, so I guess there is not a lot interest in fixing it (too bad, given it is easily reproductible).

    On the bug page, someone mentions disabling MMAL acceleration avoids the issue. How do you disable this acceleration (and is it even feasible on RPi 4)?

  • It's not that there's no interest, it's just something that's proven difficult to resolve (there are multiple attempts). RPi4 doesn't use MMAL decoding these days, so that's only applicable to older RPi devices and older LE/Kodi releases.

  • Ok, bug is about 3 year old, so I guess there is not a lot interest in fixing it (too bad, given it is easily reproductible).

    On the bug page, someone mentions disabling MMAL acceleration avoids the issue. How do you disable this acceleration (and is it even feasible on RPi 4)?

    MMAL has gone. The bug appears to be a buffer overwrite (e.g. buffer allocated is smaller than amount written).

    But they tend to have fairly random symptoms - often changing something unrelated (like disabling MMAL) may make the issue appear or disappear.