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

segmentation fault (core dumped) #2

Open
Muhammad1331 opened this issue May 17, 2019 · 8 comments
Open

segmentation fault (core dumped) #2

Muhammad1331 opened this issue May 17, 2019 · 8 comments

Comments

@Muhammad1331
Copy link

Muhammad1331 commented May 17, 2019

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:

  • fx: 525
  • fy: 525
  • cx: 319.5
  • cy: 239.5
  • k1: 0
  • k2: -0
  • p1: 0
  • p2: -0
  • fps: 30
  • color order: BGR (ignored if grayscale)

ORB Extractor Parameters:

  • Number of Features: 1000
  • Scale Levels: 8
  • Scale Factor: 1.2
  • Initial Fast Threshold: 20
  • Minimum Fast Threshold: 7

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
Copy link
Owner

Please refer this link to solve this problem:

raulmur/ORB_SLAM2#4

@Muhammad1331
Copy link
Author

Muhammad1331 commented May 18, 2019

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:

  • fx: 525
  • fy: 525
  • cx: 319.5
  • cy: 239.5
  • k1: 0
  • k2: -0
  • p1: 0
  • p2: -0
  • fps: 30
  • color order: BGR (ignored if grayscale)

ORB Extractor Parameters:

  • Number of Features: 1000
  • Scale Levels: 8
  • Scale Factor: 1.2
  • Initial Fast Threshold: 20
  • Minimum Fast Threshold: 7

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@Muhammad1331
Copy link
Author

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
Copy link

gsubas commented May 24, 2019

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
Copy link

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.

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

4 participants