Posts: 8,926
Joined: Feb 2011
Reputation:
423
Okay, for the gpu mem leak. Are subs essential? Does an external subtitle file leak whatever video it is played with?
If so, can someone upload a sub file that is known to leak.
Ideally one that leaks quicky (I wonder if the sub can be edited to just contain repeated multi-line subs if that is what causes the probem).
Once gpu mem gets low, does a "systemctl restart kodi" recover the gpu mem, or does it require a reboot?
If gpu memory doesn't recover, then I'd be interested in output of "vcdbg reloc" after a "systemctl stop kodi" to see the names of the leaked items.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
Same 1,048,576 allocations without frees when playing an MKV with muxed ASS sub.
I've now tested another MKV video file with embedded PGS subs, and that too seems to be allocating 1,048,576 bytes of GPU memory without any corresponding free, so this isn't ASS specific.
An MKV with embedded VOBSUB subtitle also has this problem, but is leaking 1,048,576 bytes of GPU memory at a much slower rate than PGS/ASS.
An MKV with SRT subtitles also has this1,048,576 GPU leak problem, again at a much slower rate than PGS/ASS (ie. fairly infrequent, but it's there).
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.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
2015-09-14, 14:21
(This post was last modified: 2015-09-14, 14:56 by Milhouse.)
Also I lied - once the GPU memory is leaked, restarting Kodi does not always recover the GPU memory and the Pi needs a reboot. However sometimes it doesn't need a reboot to recover the memory, and a Kodi restart is sufficient. Weird.
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.
Posts: 8,926
Joined: Feb 2011
Reputation:
423
Thanks for subtitle script.
I've updated newclock4 and confirmed the leak doesn't occur. The only difference between newclock4 and newclock5 are the VideoPlayer commits, so it is one of those. I'll see if I can narrow further.