Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in `rtabmap': double free or corruption #685

Closed
sumitsarkar1 opened this issue Jan 25, 2021 · 2 comments
Closed

Error in `rtabmap': double free or corruption #685

sumitsarkar1 opened this issue Jan 25, 2021 · 2 comments

Comments

@sumitsarkar1
Copy link

1.) Ubuntu 16 LTS
2.) These were build from source : Eigen 3.3.7 , Ceres 1.14 , OpenCV 3.4.6, VTK 8.1, PCL 1.8, G2O (most recent on github) , GTSAM (most recent on github)
3.) GTSAM , G2O, had options in CMake-gui to switch march native OFF and were turned off
4.) As per #343 I could not find march native OFF in PCL 1.8 CMakeLists.txt or in Eigen 3.3.7. Is PCL by default build with march native ON. if yes whats the variable that needed to be entered in cmake-gui (sorry I am novice to cmake !!)
5.) Otherwise with Eigen 3.2 , PCL 1.7 , GTSAM , all from sudo apt install and rest build from source works fine.
6.) Will PCL 1.7 and PCL 1.8 make a difference . @matlabbe One of your rtabmap odometry videos on youtube has PCL 1.8 and GTSAM as the optimizer choice in the parameter list !! Hence I ask.

Thank you

@sumitsarkar1
Copy link
Author

Solved ... build G2O and GTSAM with march native ON and then rebuild RTABMAP

@matlabbe
Copy link
Member

PCL 1.8 builds with -march=native by default. Only way to disable with PCL is to comment this. I think it is better to have it to get optimizations, but all libraries depending on Eigen should be built with it. G2O and GTSAM should be then also rebuilt from source with that option enabled.

Note that PCL1.8 binaries installed using apt get don't have -march=native, so g2o and gtsam binaries can be used directly too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants