Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory leak for V8 based JS engines in OBJLoader #9679
This bug/feature has been documented on the Chromium bug tracker but it hasn't really gone anywhere.
The user who posted the problem suggests a simple fix to remove the parent reference, which is attached in the referenced pull request (#9680). I tested that this does not leak in my project.
referenced this issue
Sep 13, 2016
As an addendum, I was profiling in Firefox and this exact same thing happens. It seems there's a base property of JSString objects in the Firefox profiler that retain the entire string after slicing (while applying some string operations I get "left child" also). The fix above should work (I messed around with long strings and memory snapshots in the Firefox console and I got it to discard the background reference) but I'm still seeing this in my app.
I figure this might be useful knowledge for anyone who stumbles upon this issue.