If I right-click on polaris_ranger_ev and Edit Model, then insert a double pendulum, it causes a crash when exiting the model editor (only tested without saving). The gzclient backtrace appears to implicate the schematic viewer:
newtrap: Trapezoid-table overflow 301
gzclient: trapezoid.c:88: newtrap: Assertion `0' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff6644c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6644c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6648028 in __GI_abort () at abort.c:89
#2 0x00007ffff663dbf6 in __assert_fail_base (fmt=0x7ffff678e3b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7ffff105e951 "0", file=file@entry=0x7ffff1069808 "trapezoid.c", line=line@entry=88, function=function@entry=0x7ffff1069840 "newtrap") at assert.c:92
#3 0x00007ffff663dca2 in __GI___assert_fail (assertion=0x7ffff105e951 "0", file=0x7ffff1069808 "trapezoid.c", line=88, function=0x7ffff1069840 "newtrap") at assert.c:101
#4 0x00007ffff105b8d6 in ?? () from /usr/lib/libgvc.so.6
#5 0x00007ffff105c295 in ?? () from /usr/lib/libgvc.so.6
#6 0x00007ffff105d2fa in construct_trapezoids () from /usr/lib/libgvc.so.6
#7 0x00007ffff105ac31 in partition () from /usr/lib/libgvc.so.6
#8 0x00007ffff105533b in mkMaze () from /usr/lib/libgvc.so.6
#9 0x00007ffff105789a in orthoEdges () from /usr/lib/libgvc.so.6
#10 0x00007fff575d745b in ?? () from /usr/lib/graphviz/libgvplugin_dot_layout.so.6
#11 0x00007fff575ca58d in dot_layout () from /usr/lib/graphviz/libgvplugin_dot_layout.so.6
#12 0x00007ffff100e9c2 in gvLayoutJobs () from /usr/lib/libgvc.so.6
#13 0x00007ffff1015485 in gvLayout () from /usr/lib/libgvc.so.6
#14 0x00007ffff7852237 in QGVScene::applyLayout (this=0x466c870) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/qgv/QGVScene.cpp:252
#15 0x00007ffff784b002 in gazebo::gui::SchematicViewWidget::RemoveNode (this=0x466c4c0, _node="ModelPreview_1::FNR_switch") at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/model/SchematicViewWidget.cc:185
#16 0x00007ffff7741862 in boost::function1<void, std::string>::operator() (this=0x468b130, a0="ModelPreview_1::FNR_switch") at /usr/include/boost/function/function_template.hpp:767
#17 0x00007ffff77a57d5 in gazebo::event::EventT<void (std::string)>::Signal<std::string>(std::string const&) (this=<optimized out>, _p="ModelPreview_1::FNR_switch") at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/common/Event.hh:385
#18 0x00007ffff781c8e2 in operator()<std::basic_string<char> > (_p="ModelPreview_1::FNR_switch", this=<optimized out>) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/common/Event.hh:221
#19 gazebo::gui::ModelCreator::RemoveLinkImpl (this=this@entry=0x412b090, _linkName=...) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/model/ModelCreator.cc:1484
#20 0x00007ffff781a1eb in gazebo::gui::ModelCreator::Reset (this=this@entry=0x412b090) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/model/ModelCreator.cc:1524
#21 0x00007ffff782921b in gazebo::gui::ModelCreator::OnExit (this=0x412b090) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/model/ModelCreator.cc:796
#22 0x00007ffff770b6c5 in operator() (this=<optimized out>) at /usr/include/boost/function/function_template.hpp:767
#23 gazebo::event::EventT<void ()>::Signal() (this=<optimized out>) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/common/Event.hh:370
#24 0x00007ffff728287a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007ffff27faa62 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007ffff27fc433 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x00007ffff2c2a509 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#28 0x00007ffff2c2ea39 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#29 0x00007ffff285051a in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#30 0x00007ffff2c3283b in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#31 0x00007ffff2800e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#32 0x00007ffff28075dd in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#33 0x00007ffff726e4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007ffff2806d93 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007ffff287bd1c in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007ffff287b289 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#37 0x00007ffff28a2b32 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#38 0x00007fffef9b9e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fffef9ba048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fffef9ba0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007ffff729b7be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#42 0x00007ffff28a2be6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#43 0x00007ffff726d0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#44 0x00007ffff726d3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#45 0x00007ffff7272b79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#46 0x00007ffff771332b in gazebo::gui::run (_argc=_argc@entry=2, _argv=_argv@entry=0x7fffffffdba8) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/GuiIface.cc:360
#47 0x00000000004013aa in main (_argc=2, _argv=0x7fffffffdba8) at /data_fast/scpeters/ws/gazebo7/src/gazebo/gazebo/gui/main.cc:25
(gdb)
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
If I right-click on polaris_ranger_ev and
Edit Model
, then insert a double pendulum, it causes a crash when exiting the model editor (only tested without saving). The gzclient backtrace appears to implicate the schematic viewer: