Skip to content
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 using compound shapes. #313

Open
timluther opened this issue Jul 10, 2020 · 1 comment
Open

Crash using compound shapes. #313

timluther opened this issue Jul 10, 2020 · 1 comment

Comments

@timluther
Copy link

Hi,
I've been having trouble with a compound shape collider when using wasm/emscripten, which I believe uses this build of bullet? In short, it crashes here:
Uncaught RuntimeError: memory access out of bounds at btCompoundCompoundCollisionAlgorithm::processCollision(btCollisionObjectWrapper const*, btCollisionObjectWrapper const*, btDispatcherInfo const&, btManifoldResult*) (<anonymous>:wasm-function[19723]:0x62f45e) at btCollisionDispatcher::defaultNearCallback(btBroadphasePair&, btCollisionDispatcher&, btDispatcherInfo const&) (<anonymous>:wasm-function[19558]:0x623adf) at btCollisionPairCallback::processOverlap(btBroadphasePair&) (<anonymous>:wasm-function[19576]:0x62420b) at btHashedOverlappingPairCache::processAllOverlappingPairs(btOverlapCallback*, btDispatcher*) (<anonymous>:wasm-function[19542]:0x623535) at btCollisionDispatcher::dispatchAllCollisionPairs(btOverlappingPairCache*, btDispatcherInfo const&, btDispatcher*) (<anonymous>:wasm-function[19567]:0x624105) at btCollisionWorld::performDiscreteCollisionDetection() (<anonymous>:wasm-function[19601]:0x624e43) at btDiscreteDynamicsWorld::internalSingleStepSimulation(float) (<anonymous>:wasm-function[20215]:0x662d90) at btDiscreteDynamicsWorld::stepSimulation(float, int, float) (<anonymous>:wasm-function[20214]:0x662ce4)

on a compound shape object consisting of 8 convex hulls. In order to try and fix this, I've attempted to rebuild ammo.js within emscripten but I could only get so far with that before seeing errors I couldn't solve - I'm not familiar with the build system and I'm got a few time pressures at the moment.

Does any of this look familiar or fixable and have I filed this bug in the right project?

@suddenly4
Copy link

suddenly4 commented Dec 18, 2024

try possible create some btTriangleMesh then add their to btCompoundShape how alternative btConvexTriangleMeshShape or btBvhTriangleMeshShape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants