Memory leaks?

  • Hi,

    since some time now Kodi crashes quite often (that's my feeling) apparently to out of memory.

    System: LibreELEC (official): 12.2.1, RPi 400 with 4GB.

    pan:~/.kodi/temp # dmesg | grep "Out of mem"
    [147606.130573] Out of memory: Killed process 1162 (kodi.bin) total-vm:5952300kB, anon-rss:3585432kB, file-rss:32kB, shmem-rss:0kB, UID:0 pgtables:8680kB oom_score_adj:0
    [262259.435914] Out of memory: Killed process 801006 (kodi.bin) total-vm:6259820kB, anon-rss:3539876kB, file-rss:76kB, shmem-rss:0kB, UID:0 pgtables:8844kB oom_score_adj:0
    [394588.835382] Out of memory: Killed process 1352004 (kodi.bin) total-vm:5993176kB, anon-rss:3610388kB, file-rss:48kB, shmem-rss:0kB, UID:0 pgtables:8520kB oom_score_adj:0
    [497543.605009] Out of memory: Killed process 1571503 (kodi.bin) total-vm:6066948kB, anon-rss:3544532kB, file-rss:304kB, shmem-rss:0kB, UID:0 pgtables:8428kB oom_score_adj:0

    For me nothing obvious in the kodi.log (but, I'm no expert).

    Are there any known problems with this setup?

    Before I upload tons of unnecessary logs: what's the best approach to pinpoint the problem?

    TIA,

    Oliver

  • Put Kodi in debug mode and then run "pastekodi" to share the Kodi and system log after OOM kills Kodi again. I've also seen some OOM events in recent days; albeit on an RPi5 and RK3588 device that are running my own LE13 development images which have little in-common with the LE12.2 codebase so no guarantee it's the same issue. NB: the logs aren't going to reveal the source of the problem, but will contain info on wider Kodi configuration which might be helpful.