Velocity and Postion is set to NaN

Hi.

I'm developing a game prototype with box2d and with libgdx.
I have an dynamic body in a closed box(done with edges).
I apply an impulse to the body.
When the body falls down on the ground(the bottom edge) it's velocity
first becomes 0 then NaN and is the same for the position.

I'e checked y code for the usual problem(division by 0, etc) but i can't seem to find it.
Do you know any other reasons for a body velocity and position to become NaN
Hi,

I've narrowed the problem. It was the density set on the body.
If my dynamic body has density set to 0 via it's fixture definition then all goes well (or if i leave it as default which is 0).
If i set any value to its density and then I do applyLinearImpulse on it then after the
body falls down on the ground or sometimes even in the air the position and velocity vectors become
NaN.

I don't know yet if this is only a case in my project or it's a box2d bug i might do a test case to see if this is true.
Any of you had this problem before?
If you leave the density as zero Box2D makes it 1 by default.
I'm wondering why you need to make it zero again?
If i leave the density intact then everything works. If i set it to 1 for example I get the error.

Original thread: https://box2d.org/forum/viewtopic.php?t=8036