open_vins icon indicating copy to clipboard operation
open_vins copied to clipboard

OpenCV memory insufficient error in ROS2 Foxy

Open Genozen opened this issue 6 months ago • 7 comments

Hello, I've gotten the euroc_mav data to run on OpenVins in ROS2 Humble, but when I tried it on Foxy version (tried to follow the same installation process), I get an error:

ros2 launch ov_msckf subscribe.launch.py config:=euroc_mav
[INFO] [launch]: All log files can be found below /home/genozen/.ros/log/2023-12-15-15-17-15-830002-genozenPC-16329
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [run_subscribe_msckf-1]: process started with pid [16331]
[INFO] [rviz2-2]: process started with pid [16333]
[run_subscribe_msckf-1] overriding node verbosity with value from ROS!
[run_subscribe_msckf-1] Setting printing level to: INFO
[run_subscribe_msckf-1] terminate called after throwing an instance of 'cv::Exception'
[run_subscribe_msckf-1]   what():  OpenCV(4.8.0-dev) /home/genozen/Documents/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 60384380995536 bytes in function 'OutOfMemoryError'
[run_subscribe_msckf-1] 
[ERROR] [run_subscribe_msckf-1]: process has died [pid 16331, exit code -6, cmd '/home/genozen/Documents/Openvins/catkin_ws_ov/install/ov_msckf/lib/ov_msckf/run_subscribe_msckf --ros-args -r __ns:=/ov_msckf --params-file /tmp/launch_params_xiywmr35 --params-file /tmp/launch_params_yfi2ibrn --params-file /tmp/launch_params_2ezbc9s7 --params-file /tmp/launch_params_oya1ci03 --params-file /tmp/launch_params_iy1wvvzk'].

The allocation memory looks like a memory leak? Also, checked the OpenCV version I have is 4.8.1 instead of the 4.8.0-dev, would this matter?

Genozen avatar Dec 15 '23 21:12 Genozen