Hi @merlos ,
I encountered a crash with MapCache while testing my app.
Reproduction
- Make sure cache is at capacity (e.g. 100MB)
- Scroll the map constantly for 10 sec
Then controlCapacity function constantly delete files, which is expected. However, memory usage is growing quickly without pausing, eventually leading to a crash. It's easily reproducible.
Below is a screenshot.

First peak did not lead to crash. It's because there are not enough new tiles flushing out old ones (i.e. did not scroll the map long enough). Second peak crashed.
Hi @merlos ,
I encountered a crash with MapCache while testing my app.
Reproduction
Then
controlCapacityfunction constantly delete files, which is expected. However, memory usage is growing quickly without pausing, eventually leading to a crash. It's easily reproducible.Below is a screenshot.
First peak did not lead to crash. It's because there are not enough new tiles flushing out old ones (i.e. did not scroll the map long enough). Second peak crashed.