[ODE] ODE freezes, can you help?

John Savage JSavage at data-mate.com
Wed Dec 18 12:26:44 2002


I've one phrase for debugging full screen apps. MultiMonitor.

If you have 98, 2K or Xp Pro then all you need is a crappy PCI graphics card
for 40 bucks and a 15inch monitor for about 100. Plug it all in and run.
When you go to debug your program, put the MSVC++ IDE onto the 15" and
debug. You can step trhough your code line by line and everything on the
second monitor while the program is running full screen on your primary
monitor. Plus its a cheaper setup than the next best thing, which is remote
debugging (requires a second PC!). I've been running multi monitor now for
about 4 years and I will never go back to a single monitor desktop!

John



  _____

John Savage <mailto:jsavage@data-mate.com>
Software Engineer DataMate Global Communications
Tel: +1 818 487 3900 ext105
  _____



-----Original Message-----
From: ode-admin@q12.org [mailto:ode-admin@q12.org]On Behalf Of Ivan
Bolcina
Sent: Wednesday, December 18, 2002 9:48 AM
To: ode@q12.org
Subject: Re: [ODE] ODE freezes, can you help?


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

_______________________________________________
ODE mailing list
ODE@q12.org
http://q12.org/mailman/listinfo/ode