Ask Your Question
0

LSD-SLAM double free or corruption

asked 2019-07-16 07:55:21 -0500

MrMinemeet gravatar image

Hi,

I'm trying to run the LSD-SLAM by https://github.com/kevin-george/lsd_s... using ROS-Melodic and Ubuntu 18.04. It compiled fine with no errors but when trying to start the lsd_slam_core using this comand: rosrun lsd_slam_core live_slam /image:=/camera/image_raw _calib:=src/lsd_slam/calibration_params it throws a message and then stops.

This is the message I get:
double free or corruption (out)
Aborted (core dumped)

I'm not sure where it dumps the core but I'll attach it if someone could tell me. I found this Issue on Github which more or less handles the same error, and there they recommend using another version of Eigen. I installed multiple versions but it didn't run, and I always got the same eror.

Hope someone can help me.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-07-18 07:54:00 -0500

MrMinemeet gravatar image

Ok fixed it myself :D it worked I as stated in the comment on the other answer I wasn't able to compile it on another version because g2o didn't like eigen 3.2.5. But when only using Eigen 3.2.5 on catkin_make for LSD_SLAM without a problem.
Here's what I did. I just sed the variable EIGEN3_INCLUDE_DIR to the path of the downloaded 3.2.5 one line above the include_directories
image description

hope this helps someone.

edit flag offensive delete link more
0

answered 2019-07-16 08:43:22 -0500

How have you installed multiple versions of Eigen? The fix described in that github issue, is to remove all versions installed using the package manager then download and install exactly version 3.2.5 from the repository directly. You'll then need to re-compile LSD-SLAM for it to incorporate the newly installed version of Eigen. It is a header only library not a shared object so any code that isn't re-compiled will still include the old version.

Let us know how you get on with this.

edit flag offensive delete link more

Comments

Might have missexplained that a bit. I mennt installing a version, compiling and checking if it worked, when not I uninstalled it and installed another version. Sadly installing a special version didin't work because apperently it only compiles successfully when having libeigen3-dev from apt manager installed.

MrMinemeet gravatar imageMrMinemeet ( 2019-07-18 07:21:33 -0500 )edit

You might need to get your hands dirty to get LSD SLAM to compile with that version. Possibly remove the dependency on libeigen3-dev from the package and ensure that the right version of the Eigen headers can be found.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2019-07-18 07:31:43 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-07-16 07:55:21 -0500

Seen: 76 times

Last updated: Jul 18