Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRIANGLE_LIST with no points crashes rviz when namespace unchecked #1163

Closed
lucasw opened this issue Oct 19, 2017 · 0 comments
Closed

TRIANGLE_LIST with no points crashes rviz when namespace unchecked #1163

lucasw opened this issue Oct 19, 2017 · 0 comments

Comments

@lucasw
Copy link
Contributor

lucasw commented Oct 19, 2017

Or when the entire Marker enable is unchecked.

The frame_id has to be valid to get to the bug.

This error message is produced prior to unchecking the box and crashing:

/0
TriMesh marker [/0] has no points.

And this is the terminal output after unchecking the box:

[ WARN] [/rviz_1508383767337950367] [/home/lucasw/tmp_catkin_ws2/src/rviz/src/rviz/ogre_helpers/ogre_logging.cpp]:[53] [OGRE EXCEPTION(2:InvalidParametersException): Cannot destroy a null MovableObject. in SceneManager::destroyMovableObject at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreSceneManager.cpp (line 6988)]
terminate called after throwing an instance of 'Ogre::InvalidParametersException'
  what():  OGRE EXCEPTION(2:InvalidParametersException): Cannot destroy a null MovableObject. in SceneManager::destroyMovableObject at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreSceneManager.cpp (line 6988)
Aborted (core dumped)
#!/usr/bin/env python
import rospy
from visualization_msgs.msg import Marker

rospy.init_node('test_empty_marker_array')
marker_pub = rospy.Publisher('visualization_marker', Marker, queue_size=1)
rospy.sleep(0.5)
marker = Marker()
marker.header.frame_id = "map"
marker.type =  Marker.TRIANGLE_LIST
marker_pub.publish(marker)

I can supply a full backtrace and possibly a PR later.

I've tried this on the Kinetic released version and the latest github kinetic-devel branch with the same effect.

#411 looks similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants