MultiCol-SLAM icon indicating copy to clipboard operation
MultiCol-SLAM copied to clipboard

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

Open luna000006 opened this issue 7 years ago • 2 comments

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?

luna000006 avatar Mar 05 '17 08:03 luna000006

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.

Andersw88 avatar Mar 13 '17 16:03 Andersw88

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!

antithing avatar Mar 13 '17 19:03 antithing