Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault while doing initial_guess_manual on Ouster sample dataset #117

Open
2 tasks done
devvaibhav455 opened this issue Sep 23, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@devvaibhav455
Copy link

devvaibhav455 commented Sep 23, 2024

Before opening an issue
If the issue is about build errors:

If the issue is about calibration procedure and results:

If the issue is about the algorithm:

Describe the bug
Segmentation fault while doing the initial guess

To Reproduce
Steps to reproduce the behavior:

  1. export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libopencv_core.so.4.5.4d as there was a warning during the workspace build process
--- stderr: direct_visual_lidar_calibration                                          
** WARNING ** io features related to pcap will be disabled
/usr/bin/ld: warning: libopencv_core.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_core.so.408
---

and below while preprocessing if I don't export the LD_PRELOAD variable

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.8.0) /home/ubuntu/opencv_build/opencv/modules/core/src/matrix.cpp:246: error: (-215:Assertion failed) s >= 0 in function 'setSize'

[ros2run]: Aborted
  1. Preprocess the data (successful)
  2. Ran find_matches_superglue.py and initial_guess_auto successfully
  3. Run initial_guess_manual
ros2 run direct_visual_lidar_calibration initial_guess_manual ~/Downloads/temp/ouster_preprocessed/
camera_model:plumb_bob
intrinsics  :4
distortion  :5
loading /home/nvidia/Downloads/temp/ouster_preprocessed//rosbag2_2023_03_28-16_25_54.(png|ply)
loading /home/nvidia/Downloads/temp/ouster_preprocessed//rosbag2_2023_03_28-16_26_51.(png|ply)
image_size:2448x2048
camera_fov:57.1854[deg]
Gtk-Message: 23:13:30.941: Failed to load module "canberra-gtk-module"
[ros2run]: Segmentation fault

So, I installed canberra-gtk-module using sudo apt install libcanberra-gtk-module libcanberra-gtk3-module (successful)

  1. Re-run
ros2 run direct_visual_lidar_calibration initial_guess_manual ~/Downloads/temp/ouster_preprocessed/
camera_model:plumb_bob
intrinsics  :4
distortion  :5
loading /home/nvidia/Downloads/temp/ouster_preprocessed//rosbag2_2023_03_28-16_25_54.(png|ply)
loading /home/nvidia/Downloads/temp/ouster_preprocessed//rosbag2_2023_03_28-16_26_51.(png|ply)
image_size:2448x2048
camera_fov:57.1854[deg]
[ros2run]: Segmentation fault

Expected behavior
Initial guess manual should run without errors on the sample dataset

Environment:
Ubuntu 22.04 on Jetson Jetpack 6.x (arm64)
ROS version: ROS2 Humble

Additional context
I am using the e47a42c2957951c9fafcca9995d9927e15557069 ceres_solver version as mentioned in #114
Using VNC to access jetson

@devvaibhav455 devvaibhav455 added the bug Something isn't working label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant