Out of memory killing tvheadend Pi 3B+/4B

  • In a previous thread I started asking for an alternative for a 3b+, you made this same suggestion and tried it out.

    With the 3b+ it did not work and it became more unstable for some reason.

    I will give it a shot with my Pi 4 also we never know.

  • Try to add this to /storage/.kodi/addons/service.tvheadend42/bin/tvheadend42.start, below the . /etc/profile line:

    Code
    export MALLOC_ARENA_MAX=1
    export MALLOC_MMAP_THRESHOLD_=131072

    Tried this modification and no difference. Same problem occurs.

    I will re-try the swapfile modification

  • Can you run a program to output free -m every hour or so and when a crash occurs, post the output.

    Also what other addons, programs are you running outside of normal LE?

    No other program.

    This server is mostly dedicated for tvheadend. Its not even connected to a TV so there isnt any other addons installed.

    I realized something tho that I don't know why I had never noticed before but TVHeadend version I had installed was the one in libreelec repo which was 4.2.somethin.

    I saw that the docker linuxserver.io one was 4.3 so I decided to try it out.

    The problem I had did not appear since then.

    I will not say for now the problem is solved since it sometimes can be difficult to reproduce.

    Week-end is coming so ill have some time to make it crash again if I can!

  • Ok my issue never came back.

    I feel dumb that I always presumed I was running latest version of TVHeadEnd which wasn't the case.

    I have other issues but not related to this one.

    Thanks for the help.