Skip to content

Memory leak on the entities map page #1583

@garethbowen

Description

@garethbowen

There is a small but reproducible memory leak when unloading the entities map. This may also impact other uses of the map such as submissions but I haven't tested that.

Reproduction

  1. Load Chrome (it has the best memory dev tools)
  2. Select a project and entity which has a map
  3. Trigger GC and take a Heap Snapshot
  4. Click on the map button
  5. Click on the table button
  6. Repeat steps 4 and 5 five times
  7. Trigger GC and take a Heap Snapshot again
  8. Use the comparison view to compare to snapshot 1
  9. Order by "# delta" and find objects with a delta of a multiple of five

Result

  • Snapshot 1 is 16.7MB and snapshot 2 is 17.6MB (+0.9MB or ~0.2MB per load).
  • Some objects are being retained, eg: 100 DOMRectReadOnly objects

More info

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendRequires a change to the UIperformancePerformance, benchmarking

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions