2019-03-28, 10:14
Hello,
I've first found this problem in snes9x, but it also exists in other emulation backends:
https://github.com/kodi-game/game.libret.../issues/15
If you exit a game and reopen it, then there is a chance that Kodi starts to "eat" memory really fast. This is not really a memory leak as the memory is freed again if you exit the game fast enough. But it also doesn't have any end. If noone stops Kodi from eating memory it will fill RAM, then Swap and then you have to hard-reset your frozen system.
To work around this issue, I've configured systemd to kill and restart Kodi if it uses more than 75% of system memory.
Would be great if someone could have a deeper look into this.
I've first found this problem in snes9x, but it also exists in other emulation backends:
https://github.com/kodi-game/game.libret.../issues/15
If you exit a game and reopen it, then there is a chance that Kodi starts to "eat" memory really fast. This is not really a memory leak as the memory is freed again if you exit the game fast enough. But it also doesn't have any end. If noone stops Kodi from eating memory it will fill RAM, then Swap and then you have to hard-reset your frozen system.
To work around this issue, I've configured systemd to kill and restart Kodi if it uses more than 75% of system memory.
Would be great if someone could have a deeper look into this.