[ODE] Drawstuff memory problem on OS X
thibodea at cs.umass.edu
thibodea at cs.umass.edu
Mon Oct 31 16:41:50 MST 2005
Hi -
drawCylinder() in drawstuff.cpp is creating a memory leak on my OS X machine
(10.4.2). It seems that any program that calls dsDrawCylinder(), including the
test programs built by ode (though I didn't exhaustively check them all) will
take up more and more memory as it runs. My simulation takes about 90M of VM if
I don't draw cylinders, but will climb to over 400M of VM in a minute or so if I
am drawing 2 cylinders per time step. I tested both the CVS version and the 0.5
release and found the same problems. I was able to work around the problem
using gluCylinder() and gluDisk() inside of dsDrawCylinder() instead of
drawCylinder().
I don't know enough about OpenGL to figure out why the the original drawCylinder
() is causing problems on OS X. Also, I couldn't reproduce the problem on a
linux machine. I don't know how many people actually use the drawstuff
libraries, but this problem does keep some of the example programs from running
smoothly on OS X for any length of time.
If anyone can suggest a potential fix, or suggest why the original function is
problematic on OS X, I'll try to debug the original function if I get a chance.
It is also possible that other functions in drawstuff also cause the same
problem, but I haven't gone through and tested them all. The dsDrawBox()
function seems to work OK.
Bryan
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the ODE
mailing list