ORB_SLAM2 icon indicating copy to clipboard operation
ORB_SLAM2 copied to clipboard

ORS-SLAM2 breaks off with error:double free or corruption (!prev)

Open TianlunHu opened this issue 5 years ago • 8 comments

Hi guys,

I'm a fresh newbie to SLAM and I'm trying to run this ORB_SLAM2 with the Sequences of my own. The system could be started correctly, but it always flash out when it trying to initialize the map. And come up with the following errors: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Start processing sequence ... Images in the sequence: 5199

*** Error in `./Examples/Monocular/mono_tum': double free or corruption (!prev): 0x000000000f3f8720 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f91b93557e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f91b935e37a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f91b936253c] /home/tianlunhu/Documents/ORB_SLAM2/Thirdparty/g2o/lib/libg2o.so(_ZN3g2o10HyperGraph5clearEv+0x79)[0x7f91b8e8a9a9] ...... ======= Memory map: ======== 00400000-0040e000 r-xp 00000000 08:09 526454 /home/tianlunhu/Documents/ORB_SLAM2/Examples/Monocular/mono_tum 0060d000-0060e000 r--p 0000d000 08:09 526454 /home/tianlunhu/Documents/ORB_SLAM2/Examples/Monocular/mono_tum 0060e000-0060f000 rw-p 0000e000 08:09 526454 /home/tianlunhu/Documents/ORB_SLAM2/Examples/Monocular/mono_tum 00ba4000-0f983000 rw-p 00000000 00:00 0 [heap] 7f9144000000-7f9144025000 rw-p 00000000 00:00 0 7f9144025000-7f9148000000 ---p 00000000 00:00 0 7f9148000000-7f9148025000 rw-p 00000000 00:00 0 7f9148025000-7f914c000000 ---p 0000'0000 00:00 0 7f914c000000-7f914c025000 rw-p 00000000 00:00 0 7f914c025000-7f9150000000 ---p 00000000 00:00 0 7f9151186000-7f91512dd000 rw-s 00000000 00:05 5177349 /SYSV00000000 (deleted) ......... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I've tried it for Mono, Streo and ROS modules, but all failed. I thought there might be something wrong with the lib files in my system. Did anyone have some idea about this ?

Thanks

TianlunHu avatar May 15 '19 16:05 TianlunHu

Problem solved, thanks

TianlunHu avatar May 16 '19 15:05 TianlunHu

Can you provide a brief review on how you solved this problem?

den250400 avatar Jun 02 '19 18:06 den250400

@TianlunHu How did you solve it?

linhan94 avatar Oct 15 '19 03:10 linhan94

Hello, does anyone how to solve this problem?

grafoteka avatar Dec 10 '19 09:12 grafoteka

I have the same problem too, did anyone get through the same problem?

1023198294 avatar Mar 13 '20 08:03 1023198294

I have the same problem suddenly, it was working well before. How did you solve it?

PushyamiKaveti avatar Sep 09 '20 18:09 PushyamiKaveti

SOLVED!! The error for me was from g2o library. Once I compiled it with cmake option -march=native it worked for me.

PushyamiKaveti avatar Sep 09 '20 19:09 PushyamiKaveti

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Examples/Stereo -march=native")

AQIMO avatar Sep 01 '23 08:09 AQIMO