UZ-SLAMLab / ORB_SLAM3

ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial and Multi-Map SLAM
GNU General Public License v3.0
6.64k stars 2.57k forks source link

i had a problem when loading atlas maps:terminate called after throwing an instance of 'boost::archive::archive_exception' what(): input stream error Aborted (core dumped) #882

Open aboluo opened 7 months ago

aboluo commented 7 months ago

for example, when i load the map in osa format file that was saved before, it reports:terminate called after throwing an instance of 'boost::archive::archive_exception' what(): input stream error Aborted (core dumped) has anyone encountered a similar problem and how did you solve it, many thanks

RaduCorcodel commented 3 months ago

@aboluo I have exactly the same issue when trying to load a previously saved map. Have you found a fix for this?

arjunskumar commented 3 months ago

@RaduCorcodel what is the size of .osa file?

RaduCorcodel commented 3 months ago

@arjunskumar size on disk is 92MB

arjunskumar commented 3 months ago

@RaduCorcodel can I have your config file of loading the map ?

RaduCorcodel commented 3 months ago

@arjunskumar Of course. I'm using this:

%YAML:1.0

#--------------------------------------------------------------------------------------------
# Camera Parameters. Adjust them!
#--------------------------------------------------------------------------------------------
File.version: "1.0"

Camera.type: "PinHole"

# Right Camera calibration and distortion parameters (OpenCV)
Camera1.fx: 617.201
Camera1.fy: 617.362
Camera1.cx: 324.637
Camera1.cy: 242.462

# distortion parameters
Camera1.k1: 0.0
Camera1.k2: 0.0
Camera1.p1: 0.0
Camera1.p2: 0.0

# Camera resolution
Camera.width: 640
Camera.height: 480

# Camera frames per second 
Camera.fps: 30

# Color order of the images (0: BGR, 1: RGB. It is ignored if images are grayscale)
Camera.RGB: 1

# Close/Far threshold. Baseline times.
Stereo.ThDepth: 40.0
Stereo.b: 0.0745

# Depth map values factor
RGBD.DepthMapFactor: 1000.0

#--------------------------------------------------------------------------------------------
# ORB Parameters
#--------------------------------------------------------------------------------------------
# ORB Extractor: Number of features per image
ORBextractor.nFeatures: 1250

# ORB Extractor: Scale factor between levels in the scale pyramid   
ORBextractor.scaleFactor: 1.2

# ORB Extractor: Number of levels in the scale pyramid  
ORBextractor.nLevels: 8

# ORB Extractor: Fast threshold
# Image is divided in a grid. At each cell FAST are extracted imposing a minimum response.
# Firstly we impose iniThFAST. If no corners are detected we impose a lower value minThFAST
# You can lower these values if your images have low contrast           
ORBextractor.iniThFAST: 20
ORBextractor.minThFAST: 7

#--------------------------------------------------------------------------------------------
# Viewer Parameters
#--------------------------------------------------------------------------------------------
Viewer.KeyFrameSize: 0.05
Viewer.KeyFrameLineWidth: 1.0
Viewer.GraphLineWidth: 0.9
Viewer.PointSize: 2.0
Viewer.CameraSize: 0.08
Viewer.CameraLineWidth: 3.0
Viewer.ViewpointX: 0.0
Viewer.ViewpointY: -0.7
Viewer.ViewpointZ: -3.5
Viewer.ViewpointF: 500.0

####
# SLAM SYSTEM SETTINGS #
####
System.SaveAtlasToFile: map1
System.LoadAtlasFromFile: map1
arjunskumar commented 3 months ago

@RaduCorcodel is your map1.osa located in .ros folder?

RaduCorcodel commented 3 months ago

Alas, no. I'm not using ROS. Should it be in the .ros folder? I did a little poking around and it looks like it exits in the middle of writing the .osa file. I start to believe the archive is corrupted

arjunskumar commented 3 months ago

@RaduCorcodel can you share the .osa file ?