eclipse-cdt-cloud / eclipse-cdt-cloud/timeline-chart

Suspected memory leak

Open
#319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
35
Forks
32
Avg merge
4d 15h
Merged PRs (30d)
3

Description

### Bug Description:

While working on the `pixi.js-legacy` upgrade (#317 ), I noticed `Jest` reporting a potential memory leak:

![Image](https://github.com/user-attachments/assets/d036caf6-3556-4d4f-b9fc-bddc2da30287)

I investigated using the `theia-trace-extension` example application, producing heap snapshots, and noticed that opening and closing trace views / trace experiments, results in an evrer-growing heap usage (even after manually triggering garbage collection).

See below for a screen capture - a "diff" between two heap snapshots, between which I opened and closes several trace views. The "detached" DOM objects seem to be related to timeline chart / pixi (e.g. WebGL canvas):

![Image](https://github.com/user-attachments/assets/4f5e2528-fc4f-453a-bcfb-21c1ae057d9d)

### Steps to Reproduce:

1.
2.
3.

### Additional Information

- Operating System:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.