Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The page has a memory leak when the page has svg components #8790

Closed
Mario34 opened this issue Jul 15, 2023 · 3 comments
Closed

The page has a memory leak when the page has svg components #8790

Mario34 opened this issue Jul 15, 2023 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@edison1105 edison1105 added 🐞 bug Something isn't working ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Jul 16, 2023
@Mario34
Copy link
Author

Mario34 commented Jul 17, 2023

Memory leaks have been bothering us for a long time, and we finally found the cause

@Mario34 Mario34 changed the title When the page has svg components, the page elements are not reclaimed The page has a memory leak when the page has svg components Jul 18, 2023
@edison1105 edison1105 removed the ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. label Jul 18, 2023
@Mario34
Copy link
Author

Mario34 commented Jul 18, 2023

It similer to #5363 Note: without svg it also has a memory leak

In fact, in my project, the Dom node can be reclaimed after the svg component is removed, so I have provided a reproduced example based on the fact. The issue mentioned in #5363 has been fixed, it should not be the same as the issue I described.

@edison1105
Copy link
Member

edison1105 commented Jul 18, 2023

@Mario34 see #5363 (comment)
Chrome doesn't seem to fix the problem in #5363 and I tested the case where there was a memory leak without svg based on your demo.

I tested #5363 and it was fixed, the reviews misled me.
And no svg node does not have a memory leak. My bad.

@Mario34
duplicate of #5256
a workaround see #5256 (comment)

@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants