v18 LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)
(2018-01-25, 01:51)smp1 Wrote:
(2018-01-25, 01:14)bleep42 Wrote: What I am getting is if I play the attached file, which was created with handbrake, nothing fancy I don't think.
https://www.dropbox.com/s/i1xq6n68lgtskw...s.mkv?dl=0
Starting with about 30% memory usage, after playing it twice, I'm up to 50%, 4 times 70%, 6 times 85%, soon after it'll lock up.
I confirm the issue, there is definitely a memory leak. After each viewing, the kodi.bin process will use more and more memory until LE completely locks up.

Yes there does appear to be an ARM RAM leak but I haven't been able to reproduce it with my normal h265 test videos, only with the Elysium video from bleep42. And if you play it often enough, kodi.bin will be OOM killed.

If you run (in one of my builds) bcmstat.sh -ADZ you can monitor the GPU and ARM memory allocations. Each time the Elysium video is played it leaks over 70MB of ARM RAM (build #0124) - ARM RAM appears to be leaking at the rate of about 1-2MB/s.

I went back and tested builds from 30, 60 and 90 days ago (back to #1023) and they all appear to have this same leak issue, so it's not a recent introduction.

I noticed that the kernel log (with #0124, not sure about older builds) is filling up with these messages during h265 playback (the messages stop at the end of playback):
Code:
Jan 25 01:26:20 rpi22 kernel: [clean_invalid_contiguous_mem_2d]: size cannot be 0

It appears to be logging 24 messages per second (one per frame?) during Elysium playback.

However this could be a red herring/unrelated, as I'm seeing this message logged continuosly when testing my own h265 videos (eg. eg. Big Buck Bunny 1080p x265 ts). Nothing is logged during h264 videos.

First play of Elysium - about 95MB of ARM RAM is not returned at the end of playback:
Image

During playback you can see that additional ARM RAM (3rd from last column, "Mem kB") is being allocated ever 2 seconds, but rarely if ever freed. At the end of playback 76MB is freed, but this is less than the total accumulated 171MB ARM RAM allocated during playback, leaving the 95MB deficit.

At the end of the second play, 204MB ARM RAM had gone missing...
Image

During the 9th play-through of Elysium, the system (Pi3B, 320MB gpu_mem, 704 ARM RAM, no overclocking, RPF white PSU) froze and bcmstat.sh reported:
Image

which shows that 51MB ARM RAM remained available, and 513MB of ARM RAM had been apparently leaked.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.


Messages In This Thread
WD MyCloud - by crisp waffles - 2017-09-06, 03:11
No 3D Playback since Version - by Mike74 - 2017-10-09, 19:25
Migrating from RPi2 to RPi1 - by RappaSan - 2017-11-10, 14:45
RE: Migrating from RPi2 to RPi1 - by Milhouse - 2017-11-10, 21:06
RE: Migrating from RPi2 to RPi1 - by RappaSan - 2017-11-11, 09:17
RE: LibreELEC Testbuilds for RaspberryPi (Kodi 18.0) - by Milhouse - 2018-01-25, 04:16
Resolution broken after 0415 - by lozbrown85 - 2018-04-20, 11:48
popt 1.16 - by n0n4m3 - 2018-06-29, 00:28
RE: popt 1.16 - by Milhouse - 2018-06-29, 06:39
A plugin to be resurrected - by ArminiusTux - 2018-10-22, 22:02
RE: A plugin to be resurrected - by Milhouse - 2018-10-23, 02:46
Logout Mark Read Team Forum Stats Members Help
LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)24