rviz2 segfault in moveit_tutorial when setting target frame

asked 2023-02-09 08:18:14 -0500

elkcahsw gravatar image

updated 2023-02-09 10:07:09 -0500

I was trying to follow the moveit_tutorial

https://moveit.picknik.ai/humble/doc/...

I have Ubuntu 22.04 and ROS humble.

In another terminal I ran

ros2 launch moveit2_tutorials demo.launch.py rviz_tutorial:=true

However rviz2 did not start. As discussed here https://answers.ros.org/question/4123...

when rviz2 is started separately it is fine until I try to change the target frame from map to panda_link0.

It will then exit with:

Warning: Invalid frame ID "map" passed to canTransform argument target_frame - frame does not exist
         at line 93 in ./src/buffer_core.cpp
[INFO] [1675951347.232102042] [interactive_marker_display_94212186444960]: Target frame is now panda_link0
Segmentation fault (core dumped)

Here is the backtrace:

    (gdb) bt
    #0  0x00007efd54620a40 in moveit_rviz_plugin::MotionPlanningDisplay::fixedFrameChanged() ()
        at /home/isd/shackle/ws_moveit2/install/moveit_ros_visualization/lib/libmoveit_motion_planning_rviz_plugin_core.so.2.5.4
    #1  0x00007efe0a053d07 in rviz_common::DisplayGroup::fixedFrameChanged() () at /opt/ros/humble/lib/librviz_common.so
    #2  0x00007efe0a0af490 in rviz_common::VisualizationManager::updateFixedFrame() () at /opt/ros/humble/lib/librviz_common.so
    #3  0x00007efe096337c8 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #4  0x00007efe0a07064b in rviz_common::properties::Property::setValue(QVariant const&) () at /opt/ros/humble/lib/librviz_common.so
    #5  0x00007efe0a075904 in rviz_common::properties::TfFrameProperty::setValue(QVariant const&) () at /opt/ros/humble/lib/librviz_common.so
    #6  0x00007efe0a023249 in  () at /opt/ros/humble/lib/librviz_common.so
    #7  0x00007efe096337c8 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #8  0x00007efe09b151c9 in QComboBox::currentIndexChanged(QString const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #9  0x00007efe09b17a71 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #10 0x00007efe09b1a575 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #11 0x00007efe09b1a79d in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #12 0x00007efe096337c8 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #13 0x00007efe09b154c6 in QComboBoxPrivateContainer::itemSelected(QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #14 0x00007efe09b15df0 in QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #15 0x00007efe095fbb9a in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #16 0x00007efe09a0d702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #17 0x00007efe09a15364 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #18 0x00007efe095fbe3a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #19 0x00007efe09a13e47 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #20 0x00007efe09a6a843 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #21 0x00007efe09a6cfd5 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #22 0x00007efe09a0d713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
    #23 0x00007efe095fbe3a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #24 0x00007efe082a4307 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
    #25 0x00007efe08279a2c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
    #26 0x00007efe03001d6e in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
    #27 0x00007efe07890d3b in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #28 0x00007efe078e56c8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #29 0x00007efe0788e3e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #30 0x00007efe096550b8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #31 0x00007efe095fa75b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so ...
(more)
edit retag flag offensive close merge delete

Comments

I have the same issues

minghello gravatar image minghello  ( 2023-03-04 03:30:27 -0500 )edit