Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
v21 Memory leak in Kodi 21
#1
Kodi 21 has a bug that manifests itself as a memory leak, which is seen after a day of uptime: multiple lines  of
Quote:cma_alloc: linux,cma: alloc failed, req-size: 205 pages, ret: -16
in dmesg. The immediate fix is to reboot the system, but the problem appears again after a day or two. The memory is actually not low on the system, and there is also cma-memory available. I'm on rpi5 debian 12 and using:
Kodi Media Center 21.1 (21.1.0) Git:20240830-39fb0e3db7
Copyright © 2005-2021 Team Kodi - http://kodi.tv

dmesg errors:
https://pastebin.com/T7hSJbnB
Reply
#2
How have you determined that there is a memory leak?
Reply
#3
The error says that it fails to allocate memory.
Reply
#4
looks more like a generic raspberry issue with multiple causes/resolutions when googled

https://duckduckgo.com/?q=cma%3A+cma_all...led&ia=web

try providing a Debug Log so we have context to the error
Reply
#5
(2024-10-27, 15:29)jools70 Wrote: The error says that it fails to allocate memory.

That's no basis to attest a bug in Kodi.
Reply
#6
Yes it is.

I can try to provide logs the next time it happens...
Reply
#7
You will probably not get any help without a log that shows the "error" since nobody else had the same problem.
Reply
#8
A memory leak caused by Kodi isn't impossible but very unlikely. I run Kodi on a RPi3B with a measly 1GB of memory and have no troubles to go multiple days without restarting the system.
Reply

Logout Mark Read Team Forum Stats Members Help
Memory leak in Kodi 210