I am having problems with the following situation.
Just kiddin'
What I really want to do is to report some experiences I made. I am currently testing a little self built framework which uses bullet.
The above screenshot shows a scene continuously spawning tubes. The stuff described below was tested with sphere, box and convex hull shapes with no significant differences.
Spawning 10 tubes at a time, all 10 positioned next to each other, next 10 on the same position (with a minor random offset) enabled me to spawn up to 7500 tubes (within ~9 seconds) until the application crashed.
Some sample back traces:
Code: Select all
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000198
[Switching to process 1500 thread 0x2903]
0x000acda7 in btSequentialImpulseConstraintSolver::prepareConstraints ()
(gdb) bt
#0 0x000acda7 in btSequentialImpulseConstraintSolver::prepareConstraints ()
#1 0x4008de74 in ?? ()
#2 0x3da19047 in ?? ()
Cannot access memory at address 0x40028f30
Code: Select all
Program received signal EXC_ARITHMETIC, Arithmetic exception.
[Switching to process 1839 thread 0x2903]
0x0013973b in dyld_stub__Z24TestTriangleAgainstAabb2PK9btVector3RS0_S2_ ()
(gdb) bt
#0 0x0013973b in dyld_stub__Z24TestTriangleAgainstAabb2PK9btVector3RS0_S2_ ()
#1 0x000bca79 in btSequentialImpulseConstraintSolver::prepareConstraints ()
Code: Select all
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to process 1841 thread 0x2903]
0x8fe01045 in __dyld_dyld_fatal_error ()
(gdb) bt
#0 0x8fe01045 in __dyld_dyld_fatal_error ()
#1 0x8fe06fa7 in __dyld__ZN4dyld14bindLazySymbolEPK11mach_headerPm ()
#2 0x8fe18b6f in __dyld_stub_binding_helper_interface2 ()
#3 0x000bca79 in btSequentialImpulseConstraintSolver::prepareConstraints ()
Code: Select all
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xdef4d15c
[Switching to process 1891 thread 0x2903]
0x0013a739 in dyld_stub__Z24TestTriangleAgainstAabb2PK9btVector3RS0_S2_ ()
(gdb) bt
#0 0x0013a739 in dyld_stub__Z24TestTriangleAgainstAabb2PK9btVector3RS0_S2_ ()
#1 0x000bda59 in btSequentialImpulseConstraintSolver::prepareConstraints ()
Code: Select all
Assertion failed: (m_firstFreeHandle), function allocHandle, file src/BulletCollision/BroadphaseCollision/btAxisSweep3.h, line 329.
What I would like to know is, are you surprised by those "errors"?
Is it completely natural to happen?
I cannot proof that I am not making anything wrong. So maybe such a thing must not crash and my engine is crap?
Thanks for reading,
rTi
btw. I am running Mac OS X 10.5.2 MacBook Pro Intel