[ODE] ODE freezes, can you help?
Ivan Bolcina
ivan.bolcina at volja.net
Wed Dec 18 11:55:01 2002
Hi Martin.
I think I found the bug. I looked test_chain1.cpp in examples and found this
dWorldSetGravity (world,0,0,-0.5);
I didnt have this line in my code. Everything else was completly identical.
So, after adding this line in my code, it miracely worked. It also tried to
set
dWorldSetGravity (world,0,0,0);
but then, it froze again. Could it be ode bug? I think it spent all this 5
or even more seconds in steeping the world. Some math stuff, I think.
so I finally did
dWorldSetGravity (world,0.0001f,0.0001f,0.0001f);
Now it woks fine.
One more question. I am having big trouble debuging. You, on the other hand,
seem to master this stuff. Can you please describe, which tools you use and
how.I am working with MS VS7, developing full screen directx game.Currently
I fprintf all debug messages to file and examine it lately.
thanks for help,
ivan
----- Original Message -----
From: "Martin C. Martin" <martin@metahuman.org>
To: "Ivan Bolcina" <ivan.bolcina@volja.net>
Cc: <ode@q12.org>
Sent: Wednesday, December 18, 2002 7:39 PM
Subject: Re: [ODE] ODE freezes, can you help?
> > Actually, it doesn't freeze. It takes a 5 seconds to calculate next
frame, and then > object colliding are thrown somewhere out of sigth. In
next frame, this
> > repeats. How to debug it?
>
> Profile it. Where is the time being spent? In graphics? In the near
> callback? Stepping the world? Is the hard drive going during those 5
> seconds? That might mean you're running out of memory, or loading
> textures from disk, or something like that. How much of the 5 seconds is
> spent in your process? Maybe some other task is grabbing the CPU for a
> long time, again involving swapping.
>
> At 5 seconds, you could probably use clock() for timing.
>
> Good luck,
> Martin
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode