batocera-linux/batocera.linux

Raspberry Pi 4 - Memory Leak issue

Closed this issue · 2 comments

Batocera build version

40 2024/08/02 00:36

Your architecture

Raspberry Pi 4 (1 gb)

Your Graphic Processor Unit(s) (GPU)

Raspberry Pi 4 (1 gb)

Issue description

The device will freeze/lock up after launching several games in a row. Also, device will freeze I'd left unattended on the screensaver for a couple hours. Seems like a memory leak issue.

Detailed reproduction steps

I installed Batocera v40 on my Raspberry Pi 4 (1gb) device. After opening 7 or so games, the system will freeze/lock up. This is consistent regardless of the games I play. I need to manually hard-reset it to solve it. I can play the same game after I reset the device with no issues, as long as it is within the first 6 games I open. So it isn't a game issue.

Also, if I leave the the screensaver on for a few hours the system will freeze/lock up as well.

I'm pretty sure it's a memory leak issue.

Details of any attempts to fix this yourself

Batocera will freeze completely when trying to load a game. The only temporary solution is to reset the device.

This does not happen everytime I load a game, but rather it seems like it does after I try ~7 games. It works flawlessly the first 6 or so games I load, but when I try an additional one it will lock up and freeze. It is not the games issue, because when I restart the device it will open and play that game no problem.

From my opinion it seems like it is a memory leak issue. As mentioned I have no problems prior, but I do consistently after loading 6 or so games. Restarting the device makes it act like new again (temporarily).

Also, if I leave the screensaver on, playing video clips from my game database, after a few hours the system will freeze. Only resolution is to hard-restart the device manually.

I am on v40.

Details of any modifications you have made to Batocera.

No modifications made

Logs and data

No response

try v41 here - https://drive.google.com/drive/folders/1mGfpALzSkzXRdZPxE3JLnpqBNWPjyx4b?usp=drive_link

i you're still seeing a problem. please be more specific on systems & games tested. thanks.

The issue was resolved, I had to go into settings --> Services and enabled zramswap.