EricLYang / ORB-SLAM2-Example

This is an example and simple version of ORB-SLAM
Other
6 stars 6 forks source link

segmentation fault (core dumped) #2

Open Muhammad1331 opened 5 years ago

Muhammad1331 commented 5 years ago

Hi i am getting below error. Please help me with the issue.

muhammadratul@ubuntu:~/RGBD_SLAM_PCL_MAP$ sh RGBD_SLAM_run.sh

ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.

Input sensor was set to: RGB-D

Loading ORB Vocabulary. This could take a while... Vocabulary loaded!

Camera Parameters:

ORB Extractor Parameters:

Depth Threshold (Close/Far Points): 3.80952


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

-------------Frame nNextId: 0 -------------KeyFrame nNextId: 0 New map created with 974 points ---Initialize Done!--- -------------KeyFrame nNextId: 1 Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.PCL thread receive a keyframe, id = 1 -------------KeyFrame nNextId: 2 PCL thread receive a keyframe, id = 2 -------------KeyFrame nNextId: 3 PCL thread receive a keyframe, id = 3 generate point cloud for kf 1, size=33118 generate point cloud for kf 2, size=33174 generate point cloud for kf 3, size=33161 -------------Frame nNextId: 10 -------------KeyFrame nNextId: 4 PCL thread receive a keyframe, id = 4 show global map, size=77889 -------------Frame nNextId: 20 -------------KeyFrame nNextId: 5 PCL thread receive a keyframe, id = 5 generate point cloud for kf 4, size=33109 Segmentation fault (core dumped)

EricLYang commented 5 years ago

Please refer this link to solve this problem:

https://github.com/raulmur/ORB_SLAM2/issues/4

Muhammad1331 commented 5 years ago

It's still giving me the same error even though I changed the file display_x11.cpp Note: I am using Ubuntu 18.04 in mac os X.

muhammadratul@ubuntu:~/RGBD_SLAM_PCL_MAP$ sh RGBD_SLAM_run.sh

ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.

Input sensor was set to: RGB-D

Loading ORB Vocabulary. This could take a while... Vocabulary loaded!

Camera Parameters:

ORB Extractor Parameters:

Depth Threshold (Close/Far Points): 3.80952


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

-------------Frame nNextId: 0 -------------KeyFrame nNextId: 0 New map created with 974 points ---Initialize Done!--- Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.-------------KeyFrame nNextId: 1 PCL thread receive a keyframe, id = 1 generate point cloud for kf 1, size=33118 show global map, size=32879 -------------KeyFrame nNextId: 2 PCL thread receive a keyframe, id = 2 generate point cloud for kf 2, size=33174 Segmentation fault (core dumped)

EricLYang commented 5 years ago

I think something may go wrong with the 3D rendering, could you please check by run glxgears : http://www.upubuntu.com/2013/11/how-to-check-3d-acceleration-fps-in.html

If this has some problem, then, pls let me know.

Muhammad1331 commented 5 years ago

I checked the glxgears which are running fine in my ubuntu. I tried to google the problem but couldn't find any plausible solution. I would really appreciate if you can help me with that.

EricLYang commented 5 years ago

Another question, how much is your RAM, this ORB SLAM could take you 8G.

Muhammad1331 commented 5 years ago

This is my mac system configuration. MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) Processor 2.3 GHz Intel Core i5 Memory 8 GB 2133 MHz LPDDR3 Graphics Intel Iris Plus Graphics 640 1536 MB

BTW while I run the code the simulation gives me a glimpse of windows then it just stopped.

gsubas commented 5 years ago

You can try following 1) Go to Software & Updates 2) Click Additional Drivers 3) Select the proprietary driver and click Apply changes After the driver is installed restart the computer

GITSHOHOKU commented 3 years ago

This is my mac system configuration. MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) Processor 2.3 GHz Intel Core i5 Memory 8 GB 2133 MHz LPDDR3 Graphics Intel Iris Plus Graphics 640 1536 MB

BTW while I run the code the simulation gives me a glimpse of windows then it just stopped.

hi ! This problem because of the Eigen version in Ubuntu18.04 is 3.3.4, you can solve this issue by replacing your eigen version to 3.1.0.