urbste / MultiCol-SLAM

This repository contains a multi-fisheye camera SLAM. The underlying SLAM system is based on ORB-SLAM.
613 stars 221 forks source link

malloc(): memory corruption: 0x0000000006c038a0 *** #15

Open luna000006 opened 7 years ago

luna000006 commented 7 years ago

Thank you for the sharing of the source code. When I ran the project, the following error was occurred: **malloc(): memory corruption: 0x0000000006c038a0 ***** Do you have this problem?

Andersw88 commented 7 years ago

I have had crashes as well. I have fixed it by removing. #pragma omp parallel for num_threads(nrCams) In cMultiFrame.cpp line 128 as a workaround.

The crash comes from resize calls on mvScaleFactors, mvLevelSigma2, and mvInvLevelSigma2 member variables that are used and written to in all threads.

It seems like mvScaleFactors, mvLevelSigma2, and mvInvLevelSigma2 variables should be per camera instead of being shared, or maybe they should always be the same for all cameras. I don't know the code well enough to make a proper fix.

antithing commented 7 years ago

I had the same. My workaround was mutex locks for the resize lines. This causes a huge latency impact though, so I am looking for a better way!