Open KaqiKaqi opened 2 years ago
Try to print the Map pointer in the function saving keyframe trajectory, in System.cc
.
You might see that the pointer is null
because your map does not have enough keyframes.
I think the author corrected this bug for keyframes only in the v1.0 release.
Edit: The error seems to come from GetAllKeyFrames()
in Map.cc, mspKeyFrames
might be destroyed too early.
You should initialize the Map
pointer with a nullptr
, this solve the problem:
Replace:
https://github.com/UZ-SLAMLab/ORB_SLAM3/blob/851db08347849a94c51d3ebc3a36df8a114b800f/src/System.cc#L1062
by:
Map* pBiggerMap == nullptr;
hello @jdtardos @yhabib29 ! when I ran "./Examples/Stereo-Inertial/stereo_inertial_realsense_D435i Vocabulary/ORBvoc.txt ./Examples/Stereo-Inertial/RealSense_D435i.yaml",it has a segmentation fault at the end,log is as follows: "SLAM settings:-Camera 1 parameters (Pinhole): [382.613 382.613 320.183 236.455]" Could you please give some suggestions? Thanks!
@aichishiguocai You seems to be using Rectified Camera type.
There is an error in Settings.cc:554
if you are running v1.0 release.
It is a different problem, you should try changing this line:
-if(settings.sensor_ == System::STEREO || settings.sensor_ == System::IMU_STEREO){
+if((settings.sensor_ == System::STEREO || settings.sensor_ == System::IMU_STEREO) && settings.cameraType_ != Settings::Rectified){
Hello @yhabib29 ! Thanks for your reply,when I change the line as you mentioned,it has another error,as fllows: “Loading ORB Vocabulary.This could take a while ,Illegal instruction”. I do not know what it occurs,what's your ideas?
Sorry, no idea on this error, it is not supposed to be linked with the changes I suggested previously. If you undo the previous change only, does it still happen ? Maybe send a screenshot of the program output ...
https://github.com/UZ-SLAMLab/ORB_SLAM3/issues/452 maybe this issue could help you fix this segfault bug. And I fixed the bug by following its solution.
hello @jdtardos @yhabib29 ! when I ran "./Examples/Stereo-Inertial/stereo_inertial_realsense_D435i Vocabulary/ORBvoc.txt ./Examples/Stereo-Inertial/RealSense_D435i.yaml",it has a segmentation fault at the end,log is as follows: "SLAM settings:-Camera 1 parameters (Pinhole): [382.613 382.613 320.183 236.455]" Could you please give some suggestions? Thanks!
Hi @miscedence12, I am having the same issue. Did you fix the problem?
@MynhLoveBunCha hello, I haven't used this algorithm for over a year, and I remember we solved this problem very well at that time, it seems to be a problem with the camera configuration file,best wishes!
I ran mono_euroc with MH01 successfuly, but has segmentation fault at the end. log is as follows:
But no segmentation fault happed when running MH02. Does anyone have some idea?