gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
631 stars 251 forks source link

Ignition gazebo 5 crashes randomly when GUI is open #773

Open doisyg opened 3 years ago

doisyg commented 3 years ago

Environment

GDB backtrace ``` # [New Thread 0x7fff9cff9700 (LWP 2244306)] free(): invalid pointer Thread 13 "ruby" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffcd88d700 (LWP 2242584)] --Type for more, q to quit, c to continue without paging--c tcache_get (tc_idx=) at malloc.c:2937 2937 malloc.c: No such file or directory. (gdb) backtrace #0 tcache_get (tc_idx=) at malloc.c:2937 #1 __GI___libc_malloc (bytes=31) at malloc.c:3051 #2 0x00007ffff30ed241 in QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #3 0x00007ffff30ef236 in QByteArray::QByteArray(char const*, int) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fffb14b2a96 in std::pair::pair(std::pair&&) (__p=..., this=0x7fffcd88cc00) at /usr/include/c++/9/bits/move.h:74 #5 ignition::gazebo::ComponentsModel::RoleNames() () at /home/gd/workspace/src/ign-gazebo/src/gui/plugins/component_inspector/ComponentInspector.cc:328 #6 0x00007fffb14b68d4 in ignition::gazebo::ComponentInspector::Update(ignition::gazebo::v5::UpdateInfo const&, ignition::gazebo::v5::EntityComponentManager&) (this=0x5555573d1340, _ecm=...) at /home/gd/workspace/src/ign-gazebo/src/gui/plugins/component_inspector/ComponentInspector.cc:460 #7 0x00007ffff3a7a703 in ignition::gazebo::v5::GuiRunner::Implementation::UpdatePlugins() (this=0x5555569dfa40) at /home/gd/workspace/src/ign-gazebo/src/gui/GuiRunner.cc:208 #8 0x00007ffff3a7a812 in ignition::gazebo::v5::GuiRunner::::operator() (__closure=0x555556d15918) at /usr/include/c++/9/bits/unique_ptr.h:360 #9 std::__invoke_impl > (__f=...) at /usr/include/c++/9/bits/invoke.h:60 #10 std::__invoke > (__fn=...) at /usr/include/c++/9/bits/invoke.h:95 #11 std::thread::_Invoker > >::_M_invoke<0> (this=0x555556d15918) at /usr/include/c++/9/thread:244 #12 std::thread::_Invoker > >::operator() (this=0x555556d15918) at /usr/include/c++/9/thread:251 #13 std::thread::_State_impl > > >::_M_run(void) (this=0x555556d15910) at /usr/include/c++/9/thread:195 #14 0x00007ffff2f18d84 in () at /lib/x86_64-linux-gnu/libstdc++.so.6 #15 0x00007ffff7a24609 in start_thread (arg=) at pthread_create.c:477 #16 0x00007ffff7b60293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 ```

Description

  1. (gdb) r /path/to/exec/ign gazebo -g -v 4
  2. (gdb) /path/to/exec/ign -s -v 4 -r shapes.sdf
  3. Wait

Output

See backtrace above in details (Qt::mightBeRichText(QString const&) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5 ??) and ogre2.log

MarqRazz commented 3 years ago

I am having a similar issue where Ignition dies after a few minutes when running ign gazebo with nothing added to the world and get this message.

SEGV received in SEGV handler
/usr/lib/ruby/ignition/cmdgazebo5.rb:438: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]

-- Control frame information -----------------------------------------------

If I am running my robot in simulation it also dies after a few min but prints out this log. seg_fault.log

Ubuntu 20.04 with Edifice binary install Graphics card: GeForce GTX 1060 Mobile running nvidia-driver-460 I have a fellow engineer that is experiencing the same issues but he is running in a Docker container.

If this is not related please let me know and I will create a new issue.

chapulina commented 3 years ago

@MarqRazz , your backtrace looks similar to the one in #722, pointing to Qt::mightBeRichText