-
Notifications
You must be signed in to change notification settings - Fork 195
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 #90
Comments
Two updates:
|
@timmyL17 perhaps you should report this to https://github.com/erincatto/Box2D. I believe you are referencing this line: |
Was this fixed? |
I'm having the same issue... is there an update? |
Tried this with
The library distribution against which I tested is here (only thing different compared to the npm release is I configured |
Hi,
I'm seeing an issue where I think world.DestroyBody does not completely clean everything up. I've created a jsfiddle here showing it: https://jsfiddle.net/otx84Lfb/12/
There is a debugging function in there that figures out how much memory is left on the heap. When creating b2BodyDef objects and destroying them, the available memory is exactly the same. After creating and destroying b2Body objects using the world.DestroyBody function, some memory is lost. In our application, this causes the emscripten heap to eventually fill up.
Is there something else I'm supposed to do when destroying a body? Thanks.
The text was updated successfully, but these errors were encountered: