Skip to content

[Serious bug] Constant memory increase until crash when cache reaches capacity #39

Open
@quinncnl

Description

@quinncnl

Hi @merlos ,

I encountered a crash with MapCache while testing my app.

Reproduction

  1. Make sure cache is at capacity (e.g. 100MB)
  2. 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.

Screenshot 2020-12-28 at 18 13 46

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions