Problem:
The app crashes when running this code:
Code: Select all
btSoftBodyRigidBodyCollisionConfiguration *collisionconfiguration = NULL;
collisionconfiguration = new btSoftBodyRigidBodyCollisionConfiguration();
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/