I transitioned to running Kodi on lePotato SBCs about 6 months ago. The transition went really smoothly at first. Everything worked, 4k content played easily, I was really happy with the setup. Everything was stable and working fine for a few months.
I then started having Kodi freeze on me. Seemingly at random times. Sometimes during playback, sometimes sitting in screensaver mode, anywhere in the UI...or anywhere in between. I've turned on debug logging but not once have the logs pointed me at anything that seemed to be going wrong. The logs just stop while sending DEBUG info usually, and not the same debug logs.
I've looked at all sorts of "how to stop kodi from freezing" blogs and videos. Some say it is usually your power input, I have tried literally dozens of different supplies (and cables) rated for 2.5a and none appear to make any difference. As the problem happens at idle as often as under load, I tend to doubt this is part of my problem. Others say that the userdata contents is generally the problem. I've now been able to reproduce my crash/hang with a fresh install of libreElec or CoreElec. Nothing changed after install of the base image. No Add-ons installed, no content scraped. I don't see how I can isolate my userdata directory any more than this. I've even been able to reproduce the hang with literally touching nothing after the base install, not even going through the base setup routine that auto-pops up.
I am not familiar with debugging heat issues, but I have little stick-on heat-sinks on the CPU and memory and nothing appears even warm to the touch, never-mind hot. The OS generally shows in the vicinity of 45 degrees C and below. This appears to be no different than when everything appeared to be stable.
I have swapped out the entire SBC with another board thinking my specific device may be at-fault, I hit the same issue. Also replaced the SD card with brand new variants, again, no change.
I have installed generic Ubuntu (well, the LePotato version) and that image appears to stay stable on the systems under any load for as long as I want. Its only Kodi that appears to be hitting this stability issue.
Can anyone think of any bright ideas? While I have made some changes to my library since everything was stable for me, like I mentioned above, the problem appears to have nothing to do with my library as the freeze happens with a base install and nothing altered. I've even added a firewall rule on my router so the device can't reach the internet (in case it is randomly reaching out somewhere that is a problem) and it happens with/without this rule.
What else is there to eliminate? The versions of CoreElec and libreElec are the same versions that I was running months ago when these systems seemed to run just fine.
I also tried disabling HDMI-CEC (which some people claimed to have caused stability problems), no change.
I'm running out of ideas of how to narrow this problem further... Is there some sort of bootloader/firmware that might get automatically installed?
Many thanks for any Help!