Error at new btSoftBodyRigidBodyCollisionConfiguration();

Post Reply
RMac
Posts: 1
Joined: Thu Feb 23, 2017 2:33 pm

Error at new btSoftBodyRigidBodyCollisionConfiguration();

Post by RMac »

Hi I am trying newer versions of bullet sdk because my current version doesn't get Physics Rigid Body Constraints exported from Blender 2.78b. I want that the wheels of a car translate and rotate with the car when it moves forward.

Problem:
The app crashes when running this code:

Code: Select all

btSoftBodyRigidBodyCollisionConfiguration *collisionconfiguration = NULL;
collisionconfiguration = new btSoftBodyRigidBodyCollisionConfiguration();
Nothing of the bullet library is called before.
It crashes inside:
btDefaultCollisionConfiguration.cpp
btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(const btDefaultCollisionConstructionInfo& constructionInfo)
at:
m_persistentManifoldPool = new (mem) btPoolAllocator(sizeof(btPersistentManifold),constructionInfo.m_defaultMaxPersistentManifoldPoolSize);
-The bullet version for the error above is 2.85.1
-The crash inside btPoolAllocator() is after getting the memory pointer, the pointer is not NULL.


Device:
Android Phone OS 4.4

Compile enviroment:
Android sdk 4.0 API 15
Android ndk API 15

Bullet version not working with the same error:
2.82, 2.83.7, 2.85.1

Bullet version that works:
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
Last edited by RMac on Wed Mar 08, 2017 8:09 pm, edited 1 time in total.
Post Reply