-
Notifications
You must be signed in to change notification settings - Fork 82
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
Memory leak #257
Comments
Note that GPU memory is reclaimed perfectly. |
My initial hunch was that an void dispose()
{
image?.remove();
image?.src = '';
} |
This is very interesting. It looks like as if the event listeners on the image element are not garbage collected. The number of Listeners is increasing over time. But both event listeners on the image element are canceled once the image is loaded. Will do some further investigations ... |
I think this may be a Dartium bug. Memory seems to be getting reclaimed in Chrome after dart2js. |
Although I'm still getting memory leaks in my more complex apps when loading/unloading texture atlases, even in Chrome |
Yes i did a few repro cases and i saw it too. I concentrated on the EventListener that are not garbage collected, if the repro case is super simple it works - but once the code gets a little bit more complicated they are not collected anymore. Next step will be a JavaScript test to see if the behavior is similar, or if it an issue with dart/dart2js or the dart:html package. |
This will leak until it crashes the browser:
The text was updated successfully, but these errors were encountered: