Skip to content

When using gz sim to open a scene, it crashes. Gazebo was installed from source code, and the system is Arch Linux. #2875

@zhangf911

Description

@zhangf911

Environment

  • OS Version:
    .o+ ---------- ooo/ OS: Arch Linux x86_64
    +oooo: Kernel: 6.14.2-arch1-1 +oooooo: Uptime: 30 mins
    -+oooooo+: Packages: 2165 (pacman)
    /:-:++oooo+: Shell: zsh 5.9 /++++/+++++++: Resolution: 1920x1080
    /++++++++++++++: DE: GNOME 48.1 /+++ooooooooooooo/ WM: Mutter ./ooosssso++osssssso+ WM Theme: Adwaita
    .oossssso-````/ossssss+ Theme: Breeze [GTK2/3] -osssssso. :ssssssso. Icons: Adwaita [GTK2/3] :osssssss/ osssso+++. Terminal: konsole /ossssssss/ +ssssooo/- CPU: 11th Gen Intel i7-11700 (16) @ 4.800GHz /ossssso+/:- -:/+osssso+- GPU: NVIDIA GeForce RTX 3060 Lite Hash Rate
    `+sso+:-` `.-/+oso: Memory: 14624MiB / 64133MiB

  • Source or binary build?
    I build the gazebo from source code with version :https://raw.githubusercontent.com/gazebo-tooling/gazebodistro/master/collection-harmonic.yaml

  • Rendering plugin: ogre2
    gz sim -v 4
    [Msg] Gazebo Sim GUI v8.9.0
    [Dbg] [gz.cc:166] Subscribing to [/gazebo/starting_world].
    [Dbg] [gz.cc:168] Waiting for a world to be set from the GUI...
    [Msg] Gazebo Sim Quick start dialog
    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    [Dbg] [Application.cc:96] Initializing application.
    [Dbg] [Application.cc:170] Qt using OpenGL graphics interface
    [GUI] [Dbg] [Gui.cc:142] Reading Quick start menu config.

    • Rendering system info:
      • On Linux, provide the outputs of the following commands:
        LANG=C lspci -nn | grep VGA  # might require installing pciutils
        echo "$DISPLAY"
        LANG=C glxinfo -B | grep -i '\(direct rendering\|opengl\|profile\)'  # might require installing mesa-utils package
        ps aux | grep Xorg
        sudo env LANG=C X -version  # if you don't have root access, try to tell the version of Xorg e.g. via package manager

$LANG=C lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] [10de:2504] (rev a1)

$echo "$DISPLAY"
:0

$LANG=C glxinfo -B | grep -i '(direct rendering|opengl|profile)'
direct rendering: Yes
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3060/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 570.133.07
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6.0 NVIDIA 570.133.07
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 570.133.07
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

ps aux | grep Xorg
james 9120 0.0 0.0 7100 4048 pts/0 S+ 14:33 0:00 grep Xorg

$ sudo env LANG=C X -version

X.Org X Server 1.21.1.16
X Protocol Version 11, Revision 0
Current Operating System: Linux arch 6.14.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Apr 2025 18:43:59 +0000 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ca26ba2b-07e7-4393-878d-a2020d5ebd9f rw loglevel=3 quiet

Current version of pixman: 0.44.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.

- [ ] Please, attach the ogre.log or ogre2.log file from  `~/.gz/rendering` 

14:31:32: Added resource location '/home/james/gazebo-harmonic/install/share/gz/gz-rendering8/media/materials/textures/' of type 'FileSystem' to resource group 'General' 14:31:32: OGRE EXCEPTION(2:InvalidParametersException): Unable to load image: Image format is unknown. Unable to identify codec. Check it or specify format explicitly. in Image2::load at /usr/src/debug/ogre-next2/ogre-next-2.3.3/OgreMain/src/OgreImage2.cpp (line 718) 14:31:32: OGRE EXCEPTION(2:InvalidParametersException): Unable to load image: Image format is unknown. Unable to identify codec. Check it or specify format explicitly. in Image2::load at /usr/src/debug/ogre-next2/ogre-next-2.3.3/OgreMain/src/OgreImage2.cpp (line 718)

[james@arch ~]$ gz sim
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
free(): invalid pointer
Stack trace (most recent call last) in thread 4586:
#20   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#19   Object "/usr/lib/libc.so.6", at 0x7340623ffaab, in 
#18   Object "/usr/lib/libc.so.6", at 0x73406237b709, in 
#17   Object "/usr/lib/libstdc++.so.6", at 0x7340468e1f73, in 
#16   Object "/home/james/gazebo-harmonic/install/lib/gz-sim-8/plugins/libgz-sim-sensors-system.so", at 0x7340037b5d8b, in gz::sim::v8::systems::SensorsPrivate::RenderThread()
#15   Object "/home/james/gazebo-harmonic/install/lib/gz-sim-8/plugins/libgz-sim-sensors-system.so", at 0x7340037b4f03, in gz::sim::v8::systems::SensorsPrivate::WaitForInit()
#14   Object "/home/james/gazebo-harmonic/install/lib/libgz-sim8-rendering.so.8", at 0x734002aa818d, in gz::sim::v8::RenderUtil::Init()
#13   Object "/home/james/gazebo-harmonic/install/lib/libgz-rendering8.so.8", at 0x7340457b19c7, in virtual thunk to gz::rendering::v8::BaseRenderEngine::CreateScene(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#12   Object "/home/james/gazebo-harmonic/install/lib/libgz-rendering8.so.8", at 0x7340457b30d4, in gz::rendering::v8::BaseRenderEngine::CreateScene(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#11   Object "/home/james/gazebo-harmonic/install/lib/libgz-rendering8.so.8", at 0x7340457bfb1a, in gz::rendering::v8::BaseScene::CreateMaterials()
#10   Object "/home/james/gazebo-harmonic/install/lib/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x733ff045952b, in gz::rendering::v8::Ogre2Material::SetTextureMapImpl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Ogre::PbsTextureTypes)
#9    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733fc6dfc0bd, in Ogre::TextureGpuManager::_waitFor(Ogre::TextureGpu*, bool)
#8    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733fc6dfbae7, in Ogre::TextureGpuManager::_update(bool)
#7    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733fc6cb123b, in Ogre::ObjCmdBuffer::clear()
#6    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733fc6bbb731, in Ogre::Exception::~Exception()
#5    Object "/usr/lib/libc.so.6", at 0x73406238ca23, in __libc_free
#4    Object "/usr/lib/libc.so.6", at 0x734062387764, in 
#3    Object "/usr/lib/libc.so.6", at 0x73406230c3be, in 
#2    Object "/usr/lib/libc.so.6", at 0x73406230b581, in abort
#1    Object "/usr/lib/libc.so.6", at 0x734062323b9f, in gsignal
#0    Object "/usr/lib/libc.so.6", at 0x73406237d624, in 
Aborted (Signal sent by tkill() 4487 1000)
free(): invalid pointer
Stack trace (most recent call last):
#31   Object "/usr/lib/libffi.so.8", at 0x73406218c975, in 
#30   Object "/home/james/gazebo-harmonic/install/lib/libgz-sim8-gz.so.8.9.0", at 0x734046b01c2f, in runGui
#29   Object "/home/james/gazebo-harmonic/install/lib/libgz-sim8-gui.so.8", at 0x734045cd7f82, in gz::sim::v8::gui::runGui(int&, char**, char const*, char const*, int, char const*, char const*)
#28   Object "/usr/lib/libQt5Core.so.5", at 0x73403fcb45dc, in QCoreApplication::exec()
#27   Object "/usr/lib/libQt5Core.so.5", at 0x73403fca80db, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#26   Object "/usr/lib/libQt5Core.so.5", at 0x73403fcff72e, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#25   Object "/usr/lib/libglib-2.0.so.0", at 0x73403dd23614, in g_main_context_iteration
#24   Object "/usr/lib/libglib-2.0.so.0", at 0x73403dd87e96, in 
#23   Object "/usr/lib/libglib-2.0.so.0", at 0x73403dd241e3, in 
#22   Object "/usr/lib/libQt5Core.so.5", at 0x73403fcfb69f, in 
#21   Object "/usr/lib/libQt5Core.so.5", at 0x73403fcb0ec5, in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
#20   Object "/usr/lib/libQt5Core.so.5", at 0x73403fcb0417, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#19   Object "/usr/lib/libQt5Widgets.so.5", at 0x734040957580, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#18   Object "/usr/lib/libQt5Core.so.5", at 0x73403fcd6b3b, in QObject::event(QEvent*)
#17   Object "/home/james/gazebo-harmonic/install/lib/gz-gui-8/plugins/libMinimalScene.so", at 0x733ffa8a964b, in gz::gui::plugins::RenderWindowItem::Ready()
#16   Object "/home/james/gazebo-harmonic/install/lib/gz-gui-8/plugins/libMinimalScene.so", at 0x733ffa8a94aa, in gz::gui::plugins::RenderThread::Initialize[abi:cxx11]()
#15   Object "/home/james/gazebo-harmonic/install/lib/gz-gui-8/plugins/libMinimalScene.so", at 0x733ffa8b9503, in gz::gui::plugins::RenderThreadRhiOpenGL::Initialize[abi:cxx11]()
#14   Object "/home/james/gazebo-harmonic/install/lib/gz-gui-8/plugins/libMinimalScene.so", at 0x733ffa8abbf0, in gz::gui::plugins::GzRenderer::Initialize[abi:cxx11](gz::gui::plugins::RenderThreadRhi&)
#13   Object "/home/james/gazebo-harmonic/install/lib/libgz-rendering8.so.8", at 0x7340457b19c7, in virtual thunk to gz::rendering::v8::BaseRenderEngine::CreateScene(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#12   Object "/home/james/gazebo-harmonic/install/lib/libgz-rendering8.so.8", at 0x7340457b30d4, in gz::rendering::v8::BaseRenderEngine::CreateScene(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#11   Object "/home/james/gazebo-harmonic/install/lib/libgz-rendering8.so.8", at 0x7340457bfb1a, in gz::rendering::v8::BaseScene::CreateMaterials()
#10   Object "/home/james/gazebo-harmonic/install/lib/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x733f90c5952b, in gz::rendering::v8::Ogre2Material::SetTextureMapImpl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Ogre::PbsTextureTypes)
#9    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733f907fc0bd, in Ogre::TextureGpuManager::_waitFor(Ogre::TextureGpu*, bool)
#8    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733f907fbae7, in Ogre::TextureGpuManager::_update(bool)
#7    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733f906b123b, in Ogre::ObjCmdBuffer::clear()
#6    Object "/usr/lib/libOgreNextMain.so.2.3.3", at 0x733f905bb731, in Ogre::Exception::~Exception()
#5    Object "/usr/lib/libc.so.6", at 0x73406238ca23, in __libc_free
#4    Object "/usr/lib/libc.so.6", at 0x734062387764, in 
#3    Object "/usr/lib/libc.so.6", at 0x73406230c3be, in 
#2    Object "/usr/lib/libc.so.6", at 0x73406230b581, in abort
#1    Object "/usr/lib/libc.so.6", at 0x734062323b9f, in gsignal
#0    Object "/usr/lib/libc.so.6", at 0x73406237d624, in 
已中止 (tkill() 发送的信号 4490 1000)

Steps to reproduce

1.gz sim
2.select "Tugbot in Warehouse" on the GUI
3.RUN

Output

crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions