raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.27k stars 4.69k forks source link

vector iterator incompatible in UpdateLocalKeyFrames() #667

Open arifle opened 5 years ago

arifle commented 5 years ago

Working on ORBSLAM2 a few weeks but not good at programming. The project was built via a VS2013 in x86 Debug mode without an error. The problem seems to be caused by an inter-thread erase of LocalKeyFrame which I am not clear at all. I give snapshots here telling how I monitored its running and keyframe number's change. 6localk It works well before or up to 6 LocalKeyFrames and breaks after a few runs since the size reached at 6.

break values Anyone help?

ronir121 commented 5 years ago

I encountered the same problem. Did you understand how to fix this?