Hi, berak. I encountered a similar issue. After debugging, I found that the error was caused by the following code, but I don’t know why. I hope you can help me analyze the reason. Thank you .
The error message:
`OpenCV Error: Assertion failed (0 <= _dims && _dims <= 32) in setSize, file /home/cvslam/Downloads/system/lib/opencv-3.4.0/modules/core/src/matrix.cpp, line 284
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/cvslam/Downloads/system/lib/opencv-3.4.0/modules/core/src/matrix.cpp:284: error: (-215) 0 <= _dims && _dims <= 32 in function setSize
Aborted (core dumped)`
The code that caused the error is located between pos002 and pos00KK. " stereo_frame->pdesc_l = sf->pdesc_l;
"
Hi, everyone. I am running an open-source project on GitHub(https://github.com/rubengooj/pl-slam), and when I run the program, it throws an error.
After debugging, I found that the error was caused by the following code, but I don’t know why. I hope everyone can help me analyze and provide a solution to this problem. Thank you all.
The error message:
`OpenCV Error: Assertion failed (0 <= _dims && _dims <= 32) in setSize, file /home/cvslam/Downloads/system/lib/opencv-3.4.0/modules/core/src/matrix.cpp, line 284
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/cvslam/Downloads/system/lib/opencv-3.4.0/modules/core/src/matrix.cpp:284: error: (-215) 0 <= _dims && _dims <= 32 in function setSize
Aborted (core dumped)`
The code that caused the error has been located between pos002 and pos00KK in the constructor of class KeyFrame. " stereo_frame->pdesc_l = sf->pdesc_l;
Thank you for your reply and suggestion. I will try to learn how to use GDB to debug the code. Actually, I am running an open-source project on GitHub([https://github.com/rubengooj/pl-slam), and I get the error. Here are the Prerequisites and dependencies: