Posts by popcornmix

    Hi, LibreElec 12.0.1 on a Rpi4, Synology NAS connected via SMB using 1Gbps ethernet. Fine for years, but somewhere around the 12.0.1 update (I can't say with certainty it was caused by it though)

    You can always revert back to 12.0.0 and report if that works fine or has the issue.

    If it really is due to 12.0.1 then the number is changes to consider is very much smaller than if it is 11->12.

    It looks like from the log, the video that was playing when it crashes was using ffmpegdirect addon.

    Do you get crashes when playing local content, or is it only videos using ffmpegdirect?

    I'm not sure if ffmpegdirect causes significantly more memory usage.


    A simple way to reduce some memory is to disable caching. In settings/services/Caching, set buffer mode to no buffer.

    A lighter skin may be helpful.

    So, it seems manageable for now, so thanks again. Hopefully the root issue will be resolved in further updates, just wanted to raise awareness of it.

    Unfortunately this is just feature creep in kodi. Each version released tends to demand more memory.

    A few releases back it was feasible to run kodi on a 512M pi, but that hasn't been possible for some time.

    More recently, I'd say 2GB is needed for 4K kodi, and 1GB is okay for 1080p (*).

    But it depends on the exact configuration. Using certain skins or add-ons may make even 1080p usage on 1GB unreliable.


    (*) Note the workaround of "dtoverlay=cma,cma-384" will stop some 4k hevc content from being played, so isn't something that is going to be fixed. You make find "dtoverlay=cma,cma-320" is better for your situation.

    From wiki:

    Quote

    LibreELEC 10.x also dropped support for Raspberry Pi Zero and other 512MB RAM devices as 1GB is now considered as the minimum RAM needed for a good Kodi experience.

    .

    Pi3A has 512M and is not supported. Pi3B has 1GB and is supported.

    You could try LE 9.2.8 which may be somewhat usable (as long as you don't want the latest add-ons to work).


    But it happens when i scan all the files. Now it doesn't happen when it is done.

    Please be specific.

    What happens when you scan all the files (crash? number of open files goes up?)

    What doesn't happen? When what is done?

    By scan all the files, do you mean using "Update library"?

    If number of open files goes up while doing it, what is the highest number you see (and is it assigned to kodi.bin).

    Does the number go down again?

    The following command (run from ssh):

    Code
    lsof | head -1 | awk '{ print "COUNT " $2 " " $1; }' && lsof +c 0 | awk '{ print $2 " " $1; }' | sort -rn | uniq -c | sort -rn | head -20

    will show which processes have files open. If there is a leak, then one process (possibly kodi.bin) is likely to be increasing regularly.

    Do you see the numbers going up after a few minutes of kodi sitting idle?

    Do you see the numbers going up after kodi playing a file and stopping?

    The hdmi output varies on rgb 8bit to rgb 12bit depending on the media file (1080p sdr, 4k hdr etc).
    I also have a amlogic box with coreelec, and is always displaying YCbCr 4:4:4, that is better?

    No. As composition (e.g. combining subs or OSD items) happens in RGB space, there is no benefit in picture quality converting back to YCbCr before driving over hdmi.

    For 10-bit output at 4Kp60, it is necessary to output YCbCr 4:2:2, so we switch to that automatically.

    Some info from here:

    last week my system started to crash more or less often at different occasions. It just suddenly shows a square filled with rainbow colors for a second before it's restarting itself to the startscreen.
    ...

    System: LibreElec 12, Raspberry Pi 3 Model B Plus Rev 1.4, with 32 GB SD-card, Estuary Skin, USB dongle for remote control, and for a kind of power on/off button I connected a button to PIN 5+6 (GPIO3+GND) and added dtoverlay=gpio-shutdown to /flash/config.txt (after mount -o remount,rw /flash of course) and added autostart.sh and autostop.sh to .config. Can't think of anything else right now, but willing to provide anything needed.

    The rainbow square shows you've had a reboot, rather than a crash.

    That is actually pretty rare. It means something has intentionally requested a reboot or there has been a significant power failure.

    I'd be suspicious of the power switch and gpio-shutdown overlay - can you remove those and see if there's any change?