HKUST-Aerial-Robotics / VINS-Fusion

An optimization-based multi-sensor state estimator
GNU General Public License v3.0
3.45k stars 1.37k forks source link

OpenCV(4.5.4) : error: (-4:Insufficient memory) on Jetson Orin Nano 8GB #252

Closed lida2003 closed 2 weeks ago

lida2003 commented 2 weeks ago

Hi How to solve this "Insufficient memory" issue?

$ rosrun vins vins_node src/VINS-Fusion/config/euroc/euroc_mono_imu_config.yaml
[ INFO] [1726133576.652245278]: init begins
config_file: src/VINS-Fusion/config/euroc/euroc_mono_imu_config.yaml
USE_IMU: 1
IMU_TOPIC: /imu0
result path ~/output//vio.csv
[ WARN] [1726133576.686056739]:  fix extrinsic param 
camera number 1
[ INFO] [1726133576.696824924]: Synchronized sensors, fix time offset: 0
[ INFO] [1726133576.696987746]: ROW: 480 COL: 752 
 exitrinsic cam 0
 0.0148655  -0.999881  0.0041403
  0.999557  0.0149672  0.0257155
-0.0257744 0.00375619   0.999661
-0.0216401  -0.064677 0.00981073
set g       0       0 9.81007
[ INFO] [1726133576.697893701]: reading paramerter of camera src/VINS-Fusion/config/euroc/cam0_mei.yaml
MULTIPLE_THREAD is 1
[ WARN] [1726133576.698770534]: waiting for image and imu...
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 512956604754240 bytes in function 'OutOfMemoryError'

Aborted (core dumped)

PS:

lida2003 commented 2 weeks ago

OpenCV 4.6.0 (with CUDA support) solved issue.