open_vins
open_vins copied to clipboard
OpenCV memory insufficient error in ROS2 Foxy
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?
That sure is a new error! Could you test an older opencv version if possible?
That sure is a new error! Could you test an older opencv version if possible?
I got the same error with opencv4.2 but in ROS noetic.
I will give it a try again later, humble has been working great...so just using that for now
Hello! I may have encountered the same problem with ubuntu20.04 ROS noetic
@wht102345 it looks like yours is a different error with the setSize function. Did you install opencv correctly? What version are you using?
@wht102345 it looks like yours is a different error with the
setSizefunction. Did you install opencv correctly? What version are you using?
Sorry, it's my mistake, my opencv version is conflicting.
@wht102345 it looks like yours is a different error with the
setSizefunction. Did you install opencv correctly? What version are you using?Sorry, it's my mistake, my opencv version is conflicting.
Hey, I'm encounted the same setsize error.
Both the ubuntu and ros i'm using is opencv 4.2.
Could you please explain "opencv version is conflcting" means?
How do you solve this problem?
Thanks~