Ask Your Question

rviz crashes on mouse up event

asked 2018-01-16 07:11:54 -0500

MatthiasLoebach gravatar image

I need some help debugging rviz crashes. I am publishing a MarkerArray with a set of LIST_LIST markers (that connect InteractiveMarkers). On each POSE_UPDATE event from an InteractiveMarker i remove the old lines and redraw them. Randomly (but often) rviz crashes, after moving and InteractiveMarker AND lifting the mouse button. I suspect this happens when rviz redraws the lines to keep them aligned to the viewer.

Does anybody have any hints on debugging this or are there any known race conditions between InteractiveMarker and Marker?

I now solved the problem by using arrows (without heads) instead of the lines, but a real solution would be nice. The stacktrace is listed below.

#0  0x00000000400a2c5e in ?? ()
#1  0x00007fffed6cbfb9 in ?? () from /usr/lib/nvidia-387/
#2  0x00007fffed6d2b14 in ?? () from /usr/lib/nvidia-387/
#3  0x00007fffed29ba95 in ?? () from /usr/lib/nvidia-387/
#4  0x00007fffb4f7c9c5 in Ogre::GLRenderSystem::_render(Ogre::RenderOperation const&) () from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/
#5  0x00007ffff39667f7 in Ogre::SceneManager::renderSingleObject(Ogre::Renderable*, Ogre::Pass const*, bool, bool, Ogre::HashedVector<Ogre::Light*> const*) () from /usr/lib/x86_64-linux-gnu/
#6  0x00007ffff3990fb9 in Ogre::QueuedRenderableCollection::acceptVisitorGrouped(Ogre::QueuedRenderableVisitor*) const () from /usr/lib/x86_64-linux-gnu/
#7  0x00007ffff3991095 in Ogre::QueuedRenderableCollection::acceptVisitor(Ogre::QueuedRenderableVisitor*, Ogre::QueuedRenderableCollection::OrganisationMode) const () from /usr/lib/x86_64-linux-gnu/
#8  0x00007ffff394f8df in Ogre::SceneManager::renderBasicQueueGroupObjects(Ogre::RenderQueueGroup*, Ogre::QueuedRenderableCollection::OrganisationMode) () from /usr/lib/x86_64-linux-gnu/
#9  0x00007ffff394f757 in Ogre::SceneManager::renderVisibleObjectsDefaultSequence() () from /usr/lib/x86_64-linux-gnu/
#10 0x00007ffff3965474 in Ogre::SceneManager::_renderScene(Ogre::Camera*, Ogre::Viewport*, bool) () from /usr/lib/x86_64-linux-gnu/
#11 0x00007ffff39a1f51 in Ogre::Camera::_renderScene(Ogre::Viewport*, bool) () from /usr/lib/x86_64-linux-gnu/
#12 0x00007ffff394677a in Ogre::RenderTarget::_updateViewport(Ogre::Viewport*, bool) () from /usr/lib/x86_64-linux-gnu/
#13 0x00007ffff39465cb in Ogre::RenderTarget::_updateAutoUpdatedViewports(bool) () from /usr/lib/x86_64-linux-gnu/
#14 0x00007ffff394611e in Ogre::RenderTarget::updateImpl() () from /usr/lib/x86_64-linux-gnu/
#15 0x00007ffff3946ac4 in Ogre::RenderTarget::update(bool) () from /usr/lib/x86_64-linux-gnu/
#16 0x00007ffff39f6e5f in Ogre::RenderSystem::_updateAllRenderTargets(bool) () from /usr/lib/x86_64-linux-gnu/
#17 0x00007ffff3b0d4ba in Ogre::Root::_updateAllRenderTargets() () from /usr/lib/x86_64-linux-gnu/
#18 0x00007ffff3b0d5a0 in Ogre::Root::renderOneFrame() () from /usr/lib/x86_64-linux-gnu/
#19 0x00007ffff7b4be8e in rviz::VisualizationManager::onUpdate() () from /opt/ros/kinetic/lib/
#20 0x00007ffff1eb9d2a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/
#21 0x00007ffff1ec65c8 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/x86_64-linux-gnu/
#22 0x00007ffff1ebabb3 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/
#23 0x00007ffff746405c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/
#24 0x00007ffff7469516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/ ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-16 07:15:30 -0500

gvdhoorn gravatar image

updated 2018-01-16 07:16:31 -0500

Sounds like ros-visualization/rviz#1082 to me.

Backtrace is almost identical.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-01-16 07:11:54 -0500

Seen: 208 times

Last updated: Jan 16 '18