mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.65k stars 772 forks source link

lr-mgba (0.11.0) slowly takes up all memory #2991

Open Sageking10 opened 1 year ago

Sageking10 commented 1 year ago

Im using the retroarch core of mgba on batocera, and the more you play the more memory it takes up to the point the core just crashes.

cpu model: intel(R) core(TM) i5-65000t cpu @ 2.50 ghz

endrift commented 1 year ago

mGBA does not allocate memory during the core running, only when it starts. This is probably not an issue with mGBA itself, likely either libretro's downstream version (unlikely) or the RA frontend in use (likely).

Also does it matter which game is being played or what settings are being used? This isn't much info.

Sageking10 commented 1 year ago

every game on the mgba core gradually increases the memory usage. the most notable game is sonic advance 3 where it rises in memory usage faster than the other games.

endrift commented 1 year ago

Is just leaving the game idling on a title screen enough to reproduce? Simple repro steps would be good for tracking it down.

Sageking10 commented 1 year ago

the memory does indeed rise even while idling on the menu

Sageking10 commented 1 year ago

i can confirm that the issue does not exist on the windows version of lr-mgba

Sageking10 commented 1 year ago

i tested the other game boy consoles with this core and only gba seems to be affected.

endrift commented 1 year ago

Wonder if some batocera-specific change or frontend issue is at fault here. Maybe @dmanlfc would have some idea of where to start with this