lianlab / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Bullet crashes when more than 16384 objects added to DynamicsWorld #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unpack the files in the ZIP file (Makefile included).
2. Build & run the test in the 2 files from the ZIP file.

What is the expected output? What do you see instead?

The program crashes on an assertion failure deep inside of Bullet - 
insufficient handles. I added 20,000 Triangles to a DynamicsWorld. This 
holds true for any number of bt* objects: spheres, pills, etc. 20K 
triangles was just easiest.

What version of the product are you using? On what operating system?

2.71 SP1 on Red Hat Enterprise Linux 4.

Please provide any additional information below.

Original issue reported on code.google.com by dali...@gmail.com on 8 Feb 2009 at 6:43

Attachments:

GoogleCodeExporter commented 9 years ago

Please try to use another broadphase: btAxisSweep3 allocates 16k handles by 
default.

Use btDbvtBroadphase or bt32BitAxisSweep3, and reserve sufficient handles in 
the 
constructor. You can try it out in the Bullet/Demos/BasicDemo, just create a 
huge 
number of cubes. Apart from that, note that btBvhTriangleMeshShape can contain 
millions of triangles.

Hope this helps,
Erwin

Original comment by erwin.coumans on 9 Feb 2009 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 9 Feb 2009 at 4:34