gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.19k stars 481 forks source link

gzclient crash "minimum cornder of box must be less than..." when positions NaN #2558

Open osrf-migration opened 6 years ago

osrf-migration commented 6 years ago

Original report (archived issue) by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).

The original report had attachments: tmp_collapse.world


  1. Start the attached world paused gazebo --pause tmp_collapse.world
  2. When the client starts, unpause the world

The gazebo GUI will crash with the following error.

gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.

This happens because the posotion of an object becomes NaN. Either it should be caught before it's sent to the client, or the client should check values for NaN before using them.

osrf-migration commented 6 years ago

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


Possibly related issues (contain text minimum corner): #2454 #2294 #2040 #1236 #1715

osrf-migration commented 6 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


osrf-migration commented 5 years ago

Original comment by MarcZofka (Bitbucket: GzMRZ).


Hi,

actually this bug also occurs within our simulation:

#!bash

gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.
^C^CAborted (core dumped)
nachumlerner commented 3 months ago

Hi,

Is there a fix for this bug? I'm using ros noetic and gazebo 11 and getting this crash