-
Notifications
You must be signed in to change notification settings - Fork 189
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
crash space add more then 40000 shapes #168
Comments
Thanks for the report! Which version of pymunk, python and what OS do you use? |
win7_64bit hmmm.so it is a memory problem.... it very very enough with 30000 shapes too.... |
Lets keep this open a bit, just to keep track of it while I test a bit more. |
An update to this: I did some more investigation of this old ticket, and it turns out that nowadays its stack overflow in the spatial tree that causes error. I have reported it to the Chipmunk issue tracker, but given how slow that project moves nowadays I dont expect a fix soon. There is a workaround, use the spatial hash instead ( If you or someone else has a proper use case which this crash prevents I can take another look, otherwise I think I wont try too hard to make a fix.. |
this is a example source.py
crashTest.zip
#when the num is 30000 it work well
#when the num is more than 40000 or 100000, it will get crashed in the line space.add(body, shape)
#is it a bug or memeroy not enough??? but i think no one need more than 30000 bodies or shapes....
#i like pymunk.... ... in my test ,it is about 10x faster than pybox2d... ...
#faster and clear.... thanks to all of chipmunk's developers and thanks to all of pymunk's developers...
The text was updated successfully, but these errors were encountered: