Skip to content

build & run error #1

@calmonpray

Description

@calmonpray

Thanks to your great work! I have some problem of the environment. i build the container on wsl2 ubuntu 22.04 LTS.
I install the recommended libtorch(cpu with-deps) and comply rtabmap with it but it fails with lib link error, almost every library can not be linked.
so I replace it and using the cxx11 ABI version,
cmake -DWITH_TORCH=ON \ -DCMAKE_PREFIX_PATH=/root/SLAM/programs/rtabmap/libtorch \ -DOpenCV_DIR=/usr/local/lib/cmake/opencv4 ..
it complys successfully. But I open the docker container and try to run the openloris_dataset.launch or just rtabmap there is new error

[ INFO] [1761828386.264828401]: Update RTAB-Map parameter "Rtabmap/MemoryThr"="177" from arguments
[ WARN] (2025-10-30 12:46:26.305) PreferencesDialog.cpp:1796::setupSignals() Can't find the related QWidget for parameter Continual/Alpha
[ WARN] (2025-10-30 12:46:26.306) PreferencesDialog.cpp:1796::setupSignals() Can't find the related QWidget for parameter Continual/BatchSize
[ WARN] (2025-10-30 12:46:26.306) PreferencesDialog.cpp:1796::setupSignals() Can't find the related QWidget for parameter Continual/Beta
[ WARN] (2025-10-30 12:46:26.306) PreferencesDialog.cpp:1796::setupSignals() Can't find the related QWidget for parameter Continual/CheckpointPath
[ WARN] (2025-10-30 12:46:26.307) PreferencesDialog.cpp:1796::setupSignals() Can't find the related QWidget for parameter Continual/Device
[ WARN] (2025-10-30 12:46:26.307) PreferencesDialog.cpp:1796::setupSignals() Can't find the related QWidget for parameter Continual/Epochs
...
for parameter Region/DesiredAverageCardinality
[ WARN] (2025-10-30 12:46:26.949) PreferencesDialog.cpp:4661::setParameter() Can't find the related QObject for parameter Region/MeshShapeFactor
[ WARN] (2025-10-30 12:46:26.950) PreferencesDialog.cpp:4661::setParameter() Can't find the related QObject for parameter Region/RadiusUpperBound
[ INFO] [1761828386.970651314]: rtabmap_viz: Parameters read = 391
[ INFO] [1761828386.970691371]: rtabmap_viz: Parameters successfully read.
[ WARN] (2025-10-30 12:46:26.988) PreferencesDialog.cpp:3956::getAllParameters() 543 vs 570 (Is PreferencesDialog::init() called?)
[ WARN] (2025-10-30 12:46:27.089) PreferencesDialog.cpp:3956::getAllParameters() 543 vs 570 (Is PreferencesDialog::init() called?)
[ INFO] [1761828387.326598577]: /rtabmap/rtabmap_viz: subscribe_depth = true
[ INFO] [1761828387.326639793]: /rtabmap/rtabmap_viz: subscribe_rgb = true
[ INFO] [1761828387.326657023]: /rtabmap/rtabmap_viz: subscribe_stereo = false
[ INFO] [1761828387.326673207]: /rtabmap/rtabmap_viz: subscribe_rgbd = false (rgbd_cameras=1)
[ INFO] [1761828387.326722096]: /rtabmap/rtabmap_viz: subscribe_odom_info = true
[ INFO] [1761828387.326747831]: /rtabmap/rtabmap_viz: subscribe_user_data = false
[ INFO] [1761828387.326767015]: /rtabmap/rtabmap_viz: subscribe_scan = false
[ INFO] [1761828387.326788528]: /rtabmap/rtabmap_viz: subscribe_scan_cloud = false
[ INFO] [1761828387.326810988]: /rtabmap/rtabmap_viz: subscribe_scan_descriptor = false
[ INFO] [1761828387.326817089]: /rtabmap/rtabmap_viz: queue_size = 10
[ INFO] [1761828387.326820834]: /rtabmap/rtabmap_viz: approx_sync = true
[ INFO] [1761828387.326835587]: Setup depth callback
[ INFO] [1761828387.367482034]:
/rtabmap/rtabmap_viz subscribed to (approx sync):
/rtabmap/odom
/color/image_raw
/aligned_depth_to_color/image_raw
/color/camera_info
/rtabmap/odom_info
[ INFO] [1761828387.368061240]: rtabmap_viz started.
> Pass 'Combine redundant instructions' is not initialized.
Verify if there is a pass dependency cycle.
Required Passes:

[rtabmap/rtabmap_viz-4] process has died [pid 237, exit code -11, cmd /root/catkin_ws/devel/lib/rtabmap_viz/rtabmap_viz -d ~/.ros/rtabmap_GUI.ini rgb/image:=/color/image_raw depth/image:=/aligned_depth_to_color/image_raw rgb/camera_info:=/color/camera_info rgbd_image:=rgbd_image_relay left/image_rect:=/stereo_camera/left/image_rect_color right/image_rect:=/stereo_camera/right/image_rect left/camera_info:=/stereo_camera/left/camera_info right/camera_info:=/stereo_camera/right/camera_info scan:=/scan scan_cloud:=/scan_cloud scan_descriptor:=/scan_descriptor odom:=odom __name:=rtabmap_viz __log:=/root/.ros/log/7113da1a-b58e-11f0-8fdc-3e02e1baee66/rtabmap-rtabmap_viz-4.log].
log file: /root/.ros/log/7113da1a-b58e-11f0-8fdc-3e02e1baee66/rtabmap-rtabmap_viz-4*.log

The GUI shows for 2 seconds and Segmentation fault (core dumped).
gdb result

Thread 1 "rtabmap" received signal SIGSEGV, Segmentation fault.
0x00007fff89786c1b in llvm::PMTopLevelManager::schedulePass(llvm::Pass*) ()
from /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1
(gdb) bt
#0 0x00007fff89786c1b in llvm::PMTopLevelManager::schedulePass(llvm::Pass*) ()
at /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1
#1 0x00007fff8dab3bab in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2 0x00007fff8dab3c2f in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3 0x00007fff8db1195b in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#4 0x00007fff8db05f18 in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#5 0x00007fff8daf1750 in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#6 0x00007fff8d51ff2f in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#7 0x00007fff8d6e0a8e in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#8 0x00007fff8d5ab152 in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#9 0x00007fff8d5cd925 in () at /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#10 0x00007fffeffcd70a in vtkOpenGLDisplayListPainter::RenderInternal(vtkRenderer*, vtkActor*, unsigned long, bool) () at /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3
#11 0x00007fffeffc73eb in vtkOpenGLClipPlanesPainter::RenderInternal(vtkRenderer*, vtkActor*, unsigned long, bool) () at /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3
#12 0x00007ffff003294e in vtkOpenGLScalarsToColorsPainter::RenderInternal(vtkRenderer*, vtkActor*, unsigned long, bool) () at /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3
#13 0x00007ffff004c2f9 in vtkPainterPolyDataMapper::RenderPiece(vtkRenderer*, vtkActor*) ()
at /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3
#14 0x00007fffef320c41 in vtkPolyDataMapper::Render(vtkRenderer*, vtkActor*) ()
at /usr/lib/x86_64-linux-gnu/libvtkRenderingCore-6.3.so.6.3
#15 0x00007fffeffb801b in vtkOpenGLActor::Render(vtkRenderer*, vtkMapper*) ()
at /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3
#16 0x00007ffff0a75729 in vtkLODActor::Render(vtkRenderer*, vtkMapper*) ()
at /usr/lib/x86_64-linux-gnu/libvtkRenderingLOD-6.3.so.6.3
#17 0x00007ffff0a74c0d in vtkLODActor::RenderOpaqueGeometry(vtkViewport*) ()
at /usr/lib/x86_64-linux-gnu/libvtkRenderingLOD-6.3.so.6.3

it seems to be the version of vtk or llvm issue.
i compare the official rtabmap(bionic) with your version, the opencv is different, and other dependant bags seems to be the same.
How can i reproduce your experiment? maybe tell me a little more about your build step or enviroment. I'll be appreciate if you can reply me.
Thanks to your great work again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions