RoboStack / RoboStack/ros-galactic

Ignition Gazebo crashes on start (works in humble but not galactic)

Open
#104 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

linux
Dominant language
Shell
Stars
23
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I just created a new environement and installed ros-galactic-ros-ign-gazebo.

The installation went fine but running ign gazebo generate some errors in the console and the application crashes a second later.

> ign gazebo             
Error while loading the library [/home/benjamin/.conda/envs/ros2_env/lib/ign-physics-4/engine-plugins/libignition-physics-dartsim-plugin.so]: libode.so.0.16.2: cannot open shared object file: No such file or directory
[Err] [Physics.cc:600] Unable to load the [/home/benjamin/.conda/envs/ros2_env/lib/ign-physics-4/engine-plugins/libignition-physics-dartsim-plugin.so] library.
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin72139]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin98835]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin63996]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin59288]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin8327]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin20386]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin303]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin85117]
[GUI] [Err] [GuiRunner.cc:158] Failed to get plugin [plugin78014]
[GUI] [Err] [RenderEngineManager.cc:461] Failed to load plugin [ogre2] : couldn't find shared library.
[GUI] [Err] [RenderUtil.cc:1678] Engine [ogre2] is not supported. Loading OGRE2 instead.
[GUI] [Err] [RenderEngineManager.cc:461] Failed to load plugin [ogre2] : couldn't find shared library.
Stack trace (most recent call last) in thread 255529:
#14   Object "", at 0xffffffffffffffff, in 
#13   Source "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 100, in __clone [0x7f216cd11873]
#12   Source "/usr/src/debug/glibc/nptl/pthread_create.c", line 442, in start_thread [0x7f216cc8c54c]
#11   Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167aa190e, in 
#10   Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167aa094c, in QThread::exec()
#9    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167ba899a, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#8    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167bd8bc0, in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#7    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167bac1bf, in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
#6    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167babf87, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#5    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Widgets.so.5.12.9", at 0x7f216757a34c, in QApplication::notify(QObject*, QEvent*)
#4    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Widgets.so.5.12.9", at 0x7f2167574821, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#3    Object "/home/benjamin/.conda/envs/ros2_env/lib/libQt5Core.so.5.12.9", at 0x7f2167bc0f15, in QObject::event(QEvent*)
#2    Object "/home/benjamin/.conda/envs/ros2_env/lib/ign-gazebo-5/plugins/gui/libGzScene3D.so", at 0x7f214c4dd150, in ignition::gazebo::v5::RenderThread::RenderNext(ignition::gazebo::v5::RenderSync*)
#1    Object "/home/benjamin/.conda/envs/ros2_env/lib/ign-gazebo-5/plugins/gui/libGzScene3D.so", at 0x7f214c4d986f, in ignition::gazebo::v5::IgnRenderer::Initialize()
#0    Object "/home/benjamin/.conda/envs/ros2_env/lib/libignition-gazebo5-rendering.so.5.1.0", at 0x7f214c407aff, in ignition::gazebo::v5::RenderUtil::Init()
Segmentation fault (Address not mapped to object [(nil)])

It seems that it failed to locate the ODE and Ogre 2 shared libs. I don't know if they are not installed or if its just the LD_LIBRARY_PATH that is not set correctly in order for the dynamic linker to find them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ign gazebo in the reported ROS Galactic environment and inspect whether libode.so.0.16.2 and the Ogre2 shared library are installed and discoverable through LD_LIBRARY_PATH. The issue is done when the missing-library errors are resolved and the application starts without the renderer crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.