Hello,
I am currently experimenting with the AOSP emulator (latest stable SDK tools 25.1.1) on Windows.
I am facing some memory leaks with the following steps :
1. Start the AVD instance (typically API 22 and API 23 images, both x86 and x86_64). I am using host GPU acceleration.
2. Note the heap size (should be more or less the memory size allocated to the device plus a bit of overhead for QEMU).
3. Launch an OpenGL game, play 30 seconds.
4. Kill the game (as you would do on a real phone), relaunch it.
5. Repeat steps 3 and 4 around 10 times.
6. Observe how the heap has increased.
Observing the memory inside the guest system is obviously stable (using adb shell dumpsys meminfo), so it seems something outside the guest is not managed properly.
Could it be possible than the OpenGL "host" renderer does not free some resources like textures ?
Is is a known issue ? Is there a way to workaround this issue ?
This is a show-stopper for the project I'm working on.
Thanks for your insights !