Skip to content

RPi5, v43 memory leak while scrolling through emulator tiles #15631

@wisemoth

Description

@wisemoth

Batocera build version

43 2026/04/01 07:55

Your architecture

Raspberry Pi 5

Your Graphic Processor Unit(s) (GPU)

Raspberry Pi 5

Issue description

Booting up into the Batocera emulator-selection tiles screen, the resting memory usage is around 600MB.

If I do nothing other than scroll down and up through the emulator tiles the memory usage will rapidly increase to 940MB or so, which causes hanging and incredibly slow performance (swap?)

This led me to find: #12849. I tried the ZRAMSWAP workaround there - that has helped a bit, but there still seems to be a leak when doing the scrolling experiment, with a resting memory usage after the scrolling of around 847MB.

Detailed reproduction steps

Installed v42 (I don't recall this issue on that version) onto 1GB RPi 5
Updated by placing boot.tar.xz onto the userdata
Triggered manual update
Rebooted fine
Scrolled through the emulator selection tiles as I noticed some different/missing tiles/new emulators
Saw hang
Rebooted, but ran btop while redoing that and saw the memory usage
(before any scrolling the memory can be seen to rest at around 600MB for a long time; only does the RAM usage shoot up when scrolling around the emulator tiles)

Details of any attempts to fix this yourself

No response

Details of any modifications you have made to Batocera.

Enabling ZRAMSWAP seems to mitigate a bit, but there is still a large RAM use simply scrolling around the emulator tiles.

Logs and data

batocera-support-20260405161106.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions