UZ-SLAMLab / DefSLAM

DefSLAM: Tracking and Mapping of Deforming Scenes from Monocular Sequences. J.Lamarca, S. Parashar, A. Bartoli & J.M.M. Montiel
https://arxiv.org/abs/1908.08918
GNU General Public License v3.0
104 stars 33 forks source link

Error: double free or corruption (out) #8

Open rahul-gs-16 opened 3 years ago

rahul-gs-16 commented 3 years ago

Hi I am using Hamlyn Dataset provided here as input. I am running the code in Ubuntu20.04. The code provides output for 10 images and then this error is thrown. I am not using any custom dataset here This is the output that I get

4

DefSLAM 2019-2020 José Lamarca, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it

Input sensor was set to: Loading ORB Vocabulary. This could take a while... Vocabulary loaded!

Camera Parameters:

ORB Extractor Parameters:

Defomation tracking Parameters:

I checked the Eigen library version as mentioned in another closed issue. I am using Eigen library version 3.3.90. Please help me out.

rahul-gs-16 commented 3 years ago

gdb message

Thread 1 "DefSLAM" hit Breakpoint 1, main (argc=, argv=) at /home/hticgsr/codes/defSlam/DefSLAM-master/Apps/simple_camera.cc:66 66 SLAM.TrackMonocular(imLeft, i); (gdb) s [New Thread 0x7fff95d07000 (LWP 34642)] [New Thread 0x7fff95106000 (LWP 34661)] [Thread 0x7fff95d07000 (LWP 34642) exited] defSLAM::System::TrackMonocular (this=0x7fffffffd940, im=..., timestamp=@0x7fffffffd7a8: 12, _mask=...) at /home/hticgsr/codes/defSlam/DefSLAM-master/Modules/Common/System.cc:188 188 { (gdb) [Thread 0x7fff95106000 (LWP 34661) exited] [New Thread 0x7fff95106000 (LWP 34681)] [New Thread 0x7fff95d07000 (LWP 34682)] [Thread 0x7fff95106000 (LWP 34681) exited] [Thread 0x7fff95d07000 (LWP 34682) exited] 189 cv::Mat Mask; (gdb) s 190 if (_mask.empty()) (gdb) s 192 Mask = cv::Mat(im.rows, im.cols, CV8UC1, cv::Scalar(255)); (gdb) s cv::Scalar::Scalar_ (v0=255, this=0x7fffffffd640) at /usr/local/include/opencv4/opencv2/core/matx.hpp:978 978 Vec<_Tp, cn>::Vec() {} (gdb) s double free or corruption (out)

Thread 2 "DefSLAM" received signal SIGABRT, Aborted. [Switching to Thread 0x7fffd2d63000 (LWP 34568)] __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

18614053166 commented 2 years ago

This problem can be solved by delete "-march=native" in CMakeLists.txt, then compile again.