nghiaho12 / SFM_example

Example of doing SFM (structure form motion) using OpenCV + GTSAM + PMVS
BSD 2-Clause "Simplified" License
121 stars 40 forks source link

Running the SFM_example encounters free memory error #2

Open NightOnion2018 opened 5 years ago

NightOnion2018 commented 5 years ago

the following code cause the malloc_error_break error. i can be double free shared_ptr. But i am not sure. Could you please help to debug. I am running this in macos result = LevenbergMarquardtOptimizer(graph, initial).optimize();

main(40661,0x7fff9f82e3c0) malloc: error for object 0x4059000000000000: pointer being freed was not allocated set a breakpoint in malloc_error_break to debug

This is the backtrace. image