Bug report: Overflow in AABB (CharacterDemo.exe)

Hanz
Posts: 14
Joined: Fri Jun 01, 2007 5:36 am

Bug report: Overflow in AABB (CharacterDemo.exe)

Post by Hanz »

Hey

When I was playing with ReleaseCharacterDemo.exe, the demo reported "Overflow in AABB, object removed from simulation."

OS: Winxp + SP3
Evn: VisualStudio 2008
Bullet version: 2.73 sp1

The error can be reproduced by :

1. Start the ReleaseCharacterDemo.exe
2. Shoot several dynamical objects by "." key or mouse right-click
3. Move the character
4. When the character collides with the dynamical objects, you will see the above message.

However, the collision between the character and the static environment mesh is OK.

HTH
hdeantoni
Posts: 4
Joined: Fri Dec 19, 2008 9:07 pm

Re: Bug report: Overflow in AABB (CharacterDemo.exe)

Post by hdeantoni »

I use OgreBullet in my application and the same error appears to me. Previously, Ogre throws in way debug to me the following error:

Image

Then, when watching in log of Ogre encounter:

If you can reproduce this, please email bugs@continuousphysics.com
Please include above information, your Platform, version of OS.
Thanks."

The configuration of my system is similar to the indicated one by Hanz:

OS: Winxp + SP3
Evn: VisualStudio 2008
Bullet version: 2.73 sp1
Ogre version: 1.6 (Shoggoth)

The stranger is that the example that brings OgreBullet works to me perfectly and the examples of Bullet also work to me perfectly.

I hope that this data helps to find the solution to the problem.
User avatar
mirat
Posts: 16
Joined: Thu May 29, 2008 10:47 am

Re: Bug report: Overflow in AABB (CharacterDemo.exe)

Post by mirat »

This exception causes when OgreBullet's implementation of btMotionState or your own MotionState gets rigid body's world transformation containing nan (not a number) or inf (infinity). Check for divisions by zero or getting square roots from negative numbers before applying forces or transformations to your rigid body.
hdeantoni
Posts: 4
Joined: Fri Dec 19, 2008 9:07 pm

Re: Bug report: Overflow in AABB (CharacterDemo.exe)

Post by hdeantoni »

Thank you! I found the problem. One of the object I was using had rotation = (0, 0, 0, 0). Setting rotation= (1, 0, 0, 0) corrects the problem.

Merry Christmas!