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

Memory Leak for Objects "Falling to Infinity" #55

Open
1bardesign opened this issue Nov 12, 2019 · 0 comments
Open

Memory Leak for Objects "Falling to Infinity" #55

1bardesign opened this issue Nov 12, 2019 · 0 comments

Comments

@1bardesign
Copy link

There appears to be infinitely-increasing memory usage for an object falling into infinity, eventually leading to a crash as the luajit memory limit is hit, and lagging things up in the meantime as the gc has a bigger workload.

Expected Cause:
I believe this is caused by the broadphase structure accumulating empty buckets as the entity falls forever into the void.
It'd be better if the buckets cleaned themselves up when/as they were emptied.

Workaround:
Can be worked around by defining world bounds and killing OoB objects.

(discovered around the same time as #47 but only recently reminded to report it by @tesselode )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant