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
Leakage caused by Stacktrace
#143111
Comments
@jrieken Because this might be caused by a recent refactoring in 4d43287, I have pushed a change via 8dcfb37 to disable the emitter leak monitor for now. @jrieken @bpasero Now that I saw how the monitor works (it is always enabled), and that 4d43287 tries to avoid reading |
We do this since a couple of years, what has changed is the lazy creation of the actual string (by holding a reference to the error). We can turn that back to be a string, esp. since the stacktrace value is used just after its creation. @alexdima I see how this consumes memory (more than before) but I fail to see leak here. Can you explain? |
Using the original steps, there is now a reference to an array buffer, kept alive by a minimap instance, kept alive by an editor view instance, which is kept alive by something called Of note is that the editor core does not have any listeners to Do you think that this leak always existed, even when reading |
…he first 30 listener for leak checks, some lipstick, #143111
Went back to eagerly getting the value of a stacktrace via |
I noticed this while investigating #142933
curl https://raw.githubusercontent.com/zemirco/sf-city-lots-json/master/citylots.json >citylots.json
Uint8ClampedArray
that is being referenced via anError
stored in aStacktrace
in aListener
.The text was updated successfully, but these errors were encountered: