Gazebo 1.9.3 segfaults in Ogre::Math::calculateBasicFaceNormalWithoutNormalize
Hi all,
Gazebo 1.9.3 suddenly stopped working on Ubuntu 12.04 (precise), possibly because of system updates. I have gazebo installed from packages.ros.org (version 1.9.3-1~precise).
The client comes up with an empty world, but it will crash with a segfault as soon as I click on the virtual world or try to pan/zoom.
Here's the stack trace from gdb:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1c695d0 in Ogre::Math::calculateBasicFaceNormalWithoutNormalize(Ogre::Vector3 const&, Ogre::Vector3 const&, Ogre::Vector3 const&) ()
from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4
(gdb) bt
#0 0x00007ffff1c695d0 in Ogre::Math::calculateBasicFaceNormalWithoutNormalize(Ogre::Vector3 const&, Ogre::Vector3 const&, Ogre::Vector3 const&) ()
from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4
#1 0x00007ffff1c69722 in Ogre::Math::intersects(Ogre::Ray const&, Ogre::Vector3 const&, Ogre::Vector3 const&, Ogre::Vector3 const&, bool, bool) ()
from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.7.4
#2 0x00007ffff75f85ac in gazebo::rendering::Scene::GetFirstContact(boost::shared_ptr<gazebo::rendering::Camera>, gazebo::math::Vector2i const&, gazebo::math::Vector3&) ()
from /usr/lib/libgazebo_rendering.so.1
#3 0x00007ffff75db80a in gazebo::rendering::OrbitViewController::HandleMouseEvent(gazebo::common::MouseEvent const&) () from /usr/lib/libgazebo_rendering.so.1
#4 0x00007ffff5db2984 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux- gnu/libQtGui.so.4
#5 0x00007ffff5d61894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6 0x00007ffff5d66f70 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7 0x00007ffff583ee9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8 0x00007ffff5dce932 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#9 0x00007ffff5de1ead in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff5de0bee in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff5e0a112 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007fffef808d13 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007fffef809060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007fffef809124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib- 2.0.so.0
#15 0x00007ffff586e3bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007ffff5e09d9e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007ffff583dc82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff583ded7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007ffff5842f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00000000004b5670 in gazebo::gui::run(int, char**) ()
#21 0x00000000004941b9 in main ()
Any ideas?
This looks like a problem with Ogre. Did you install a new version of Ogre? Are you compiling anything from source?
I am having exactly the same issue. Any solution?