PeterFWS / Structure-PLP-SLAM

[ICRA'23] The official Implementation of "Structure PLP-SLAM: Efficient Sparse Mapping and Localization using Point, Line and Plane for Monocular, RGB-D and Stereo Cameras"
GNU General Public License v3.0
394 stars 59 forks source link

initialization error #15

Open ZhaoqunZhong opened 1 year ago

ZhaoqunZhong commented 1 year ago

Hi,

I tried my own data with this repo, but can't get it pass the initialization phase. The error log is like this:

[2023-06-25 18:12:51.414] [I] initialization succeeded with F
double free or corruption (out)
*** Aborted at 1687687971 (unix time) try "date -d @1687687971" if you are using GNU date ***
PC: @     0x7fc9dd81c00b gsignal
*** SIGABRT (@0x3e800172112) received by PID 1515794 (TID 0x7fc904455700) from PID 1515794; stack trace: ***
    @     0x7fc9df4dc631 (unknown)
    @     0x7fc9df052420 (unknown)
    @     0x7fc9dd81c00b gsignal
    @     0x7fc9dd7fb859 abort
    @     0x7fc9dd86626e (unknown)
    @     0x7fc9dd86e2fc (unknown)
    @     0x7fc9dd86ffa0 (unknown)
    @     0x7fc9dd7360a8 g2o::OptimizableGraph::~OptimizableGraph()
    @     0x7fc9df35577f PLPSLAM::optimize::global_bundle_adjuster::optimize()
    @     0x7fc9df2d0416 PLPSLAM::module::initializer::create_map_for_monocular()
    @     0x7fc9df2d1b9b PLPSLAM::module::initializer::initialize()
    @     0x7fc9df188070 PLPSLAM::tracking_module::initialize()
    @     0x7fc9df18a5ed PLPSLAM::tracking_module::track()
    @     0x7fc9df18affb PLPSLAM::tracking_module::track_monocular_image()
    @     0x7fc9df16a351 PLPSLAM::system::feed_monocular_frame()
    @     0x555890af133f _ZZ13mono_trackingRKSt10shared_ptrIN7PLPSLAM6configEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_SC_SC_jbbbSC_ENKUlvE_clEv
    @     0x7fc9ddabede4 (unknown)
    @     0x7fc9df046609 start_thread
    @     0x7fc9dd8f8133 clone
Aborted

Every time it gives a initialization succeedded output, it fails immediately with this error. Also, I already used the g2o version provided in your onedrive link. Any idea what caused the double free and g2o::OptimizableGraph::~OptimizableGraph() error?

THANKS

C-H-Chien commented 8 months ago

I met the same problem but I fixed it by (i) compiling with BUILD_WITH_MARCH NATIVE turned off, (ii) running the code under the Structure-PLP-SLAM directory other than somewhere else (e.g. the build directory).

BetterYimi commented 6 months ago

I met the same problem but I fixed it by (i) compiling with BUILD_WITH_MARCH NATIVE turned off, (ii) running the code under the Structure-PLP-SLAM directory other than somewhere else (e.g. the build directory).

helpful!😍

Yangyang221 commented 2 months ago

请问这个安装的步骤是什么?

Yangyang221 commented 2 months ago

我应该怎么部署安装这个项目

HqiTao commented 1 month ago

I met the same problem but I fixed it by (i) compiling with BUILD_WITH_MARCH NATIVE turned off, (ii) running the code under the Structure-PLP-SLAM directory other than somewhere else (e.g. the build directory).

Your solution works for me. Thank you!