gazebosim / gazebo-classic

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

Small heightmaps cause gazebo to crash #2191

Open osrf-migration opened 7 years ago

osrf-migration commented 7 years ago

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

The original report had attachments: heightmap17.tar.gz


Originally split from #746, from this gazebo question.

Gazebo crashes when inserting a heightmap of resolution 17x17. It does not crash with a resolution of 33x33 as originally specified in the question. Unsure if this is related to #1653

A model that reproduces the issue is attached.

osrf-migration commented 7 years ago

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


osrf-migration commented 7 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


I doubt this is still a problem, but someone should try it out.

osrf-migration commented 7 years ago

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


Gazebo 8 crashes with a heightmap of 16x16. I'll retitle and retarget this issue

terminate called after throwing an instance of 'gazebo::common::Exception'

osrf-migration commented 7 years ago

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


Running with verbose says I should be using 17x17 and not 16x16

[Err] [HeightmapShape.cc:186] Heightmap data size must be square, with a size of 2^n+1
[Err] [Heightmap.cc:503] EXCEPTION: Heightmap image size must be square, with a size of 2^n+1
osrf-migration commented 7 years ago

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


It crashes with 17x17, I'll retitle this issue and make a separate one for the crash with invalid heightmap sizes.

$ gazebo --verbose
Gazebo multi-robot simulator, version 8.0.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
Gazebo multi-robot simulator, version 8.0.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.17.0.3
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.17.0.3
gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/Components/Terrain/src/OgreTerrainQuadTreeNode.cpp:101: Ogre::TerrainQuadTreeNode::TerrainQuadTreeNode(Ogre::Terrain*, Ogre::TerrainQuadTreeNode*, Ogre::uint16, Ogre::uint16, Ogre::uint16, Ogre::uint16, Ogre::uint16, Ogre::uint16): Assertion `lod == (ownLod - 1) && "The lod passed in should reflect the number of " "lods in a leaf"' failed.
escalating to SIGKILL on server
osrf-migration commented 7 years ago

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


osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).