favreau / bullet

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

crash when using btHeightfieldTerrainShape + btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK + btAdjustInternalEdgeContacts without calling initializePolyhedralFeatures() #570

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. replace the files DemoApplication.cpp + TerrainDemo.cpp
2. compile and run the terrain demo 
3. shoot a box

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

What version of the product are you using? On what operating system?
trunk (rev 2460)

Please provide any additional information below.

The crash happens in btAdjustInternalEdgeContacts() because this function 
expect the temporary triangle shape (used for heightfield shape triangles) to 
either be of type btScaledBvhTriangleMeshShape or btBvhTriangleMeshShape.

The following line therefore returns a bad pointer:

btTriangleInfoMap* triangleInfoMapPtr = (btTriangleInfoMap*) 
trimesh->getTriangleInfoMap();

Original issue reported on code.google.com by easyrid...@gmail.com on 24 Nov 2011 at 9:11

Attachments:

GoogleCodeExporter commented 9 years ago
maybe this is a wrong configuration, not sure, really....

Original comment by easyrid...@gmail.com on 24 Nov 2011 at 9:22

GoogleCodeExporter commented 9 years ago
See https://github.com/bulletphysics/bullet3/issues/132

Original comment by erwin.coumans on 30 Mar 2014 at 7:38