Bullet Memory Leaks

ROm222
Posts: 4
Joined: Wed Oct 24, 2007 9:56 am

Bullet Memory Leaks

Post by ROm222 »

---------- Block 3135 at 0x0FF6F718: 535 bytes ----------
Call Stack:
..\bullet\src\btalignedallocator.cpp (25): btAlignedAlloc
..\bullet\src\btalignedallocator.h (60): btAlignedAllocator<btBroadphasePair,16>::allocate
..\bullet\src\btalignedobjectarray.h (92): btAlignedObjectArray<btBroadphasePair>::allocate
..\bullet\src\btalignedobjectarray.h (227): btAlignedObjectArray<btBroadphasePair>::reserve
..\bullet\src\btalignedobjectarray.h (195): btAlignedObjectArray<btBroadphasePair>::expand
..\bullet\src\btoverlappingpaircache.cpp (221): btOverlappingPairCache::internalAddPair
..\bullet\src\btoverlappingpaircache.h (97): btOverlappingPairCache::addOverlappingPair
..\bullet\src\btaxissweep3.h (666): btAxisSweep3Internal<unsigned short>::sortMinDown
..\bullet\src\btaxissweep3.h (620): btAxisSweep3Internal<unsigned short>::updateHandle
..\bullet\src\btaxissweep3.h (201): btAxisSweep3Internal<unsigned short>::setAabb
..\bullet\src\btdiscretedynamicsworld.cpp (609): btDiscreteDynamicsWorld::updateAabbs
..\bullet\src\btdiscretedynamicsworld.cpp (254): btDiscreteDynamicsWorld::internalSingleStepSimulation
..\bullet\src\btdiscretedynamicsworld.cpp (237): btDiscreteDynamicsWorld::stepSimulation
..\glsi.cc (752): glsiSwapBuffers
..\main.cc (578): render
..\freeglut\freeglut_main.c (1067): glutMainLoop
..\main.cc (1112): main
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (266): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (182): mainCRTStartup
0x7C816FD7 (File and line number not available): RegisterWaitForInputIdle



---------- Block 3136 at 0x0FF709A8: 151 bytes ----------
Call Stack:
..\bullet\src\btalignedallocator.cpp (25): btAlignedAlloc
..\bullet\src\btalignedallocator.h (60): btAlignedAllocator<int,16>::allocate
..\bullet\src\btalignedobjectarray.h (92): btAlignedObjectArray<int>::allocate
..\bullet\src\btalignedobjectarray.h (227): btAlignedObjectArray<int>::reserve
..\bullet\src\btalignedobjectarray.h (176): btAlignedObjectArray<int>::resize
..\bullet\src\btoverlappingpaircache.cpp (170): btOverlappingPairCache::growTables
..\bullet\src\btoverlappingpaircache.cpp (228): btOverlappingPairCache::internalAddPair
..\bullet\src\btoverlappingpaircache.h (97): btOverlappingPairCache::addOverlappingPair
..\bullet\src\btaxissweep3.h (666): btAxisSweep3Internal<unsigned short>::sortMinDown
..\bullet\src\btaxissweep3.h (620): btAxisSweep3Internal<unsigned short>::updateHandle
..\bullet\src\btaxissweep3.h (201): btAxisSweep3Internal<unsigned short>::setAabb
..\bullet\src\btdiscretedynamicsworld.cpp (609): btDiscreteDynamicsWorld::updateAabbs
..\bullet\src\btdiscretedynamicsworld.cpp (254): btDiscreteDynamicsWorld::internalSingleStepSimulation
..\bullet\src\btdiscretedynamicsworld.cpp (237): btDiscreteDynamicsWorld::stepSimulation
..\glsi.cc (753): glsiSwapBuffers
..\main.cc (578): render
..\freeglut\freeglut_main.c (1067): glutMainLoop
..\main.cc (1112): main
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (266): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (182): mainCRTStartup
0x7C816FD7 (File and line number not available): RegisterWaitForInputIdle
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Bullet Memory Leaks

Post by Erwin Coumans »

Which application are you running? BasicDemo and CcdPhysicsDemo show a proper cleanup. Are you using Bullet 2.64?

You should cleanup the memory, as mentioned in this thread:
http://www.bulletphysics.com/Bullet/php ... f=9&t=1660

Hope this helps,
Erwin