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 #103

Open
JasonLiu324 opened this issue Sep 8, 2020 · 9 comments
Open

Segmentation fault #103

JasonLiu324 opened this issue Sep 8, 2020 · 9 comments

Comments

@JasonLiu324
Copy link

Hi there. I'm now testing the GPD2 with ./detect_grasps. But when I run the command, it will show segmentation fault. I have no idea what may cause the problem. BTW, the dependency version I installed is listed below:
PCL 1.9
VTK 7.1
Eigen 3
OpenCV 4.3
cmake 3.8
I would appreciate for your reply, thanks a lot.

@xibeisiber
Copy link

usually it is because the necessary config file is not found. Check all the paths of files that need to be loaded.
And it's better that you give the error message here.

@JasonLiu324
Copy link
Author

@xibeisiber Thanks for the response, I will check the path. But actually I didn't get any more error messages except for a 'segmentation fault (core dumped)'.

@xibeisiber
Copy link

Actually GPD will give the message if some file is not found, but not as an error message, but a "normal" output. so you can also check the whole output if there is something wrong

@JasonLiu324
Copy link
Author

@xibeisiber Thank you so much. I will try to locate the error.

@chaiban
Copy link

chaiban commented Oct 13, 2020

Hi @JasonLiu324 ,

Did you clear the error ? Thank you!

@JasonLiu324
Copy link
Author

@chaiban Nope. I didn't solve the problem. Maybe it's related to hardware platform. I try to run the forward tree branch and make it work on ROS.

@chaiban
Copy link

chaiban commented Oct 14, 2020

Okay! Thanks

@gachiemchiep
Copy link

@JasonLiu324 @chaiban
#88 (comment) solved my problems.

Inside CmakeLists.txt, change from

set(CMAKE_CXX_FLAGS " -O3 -fopenmp -fPIC -Wno-deprecated -Wenum-compare -Wno-ignored-attributes -std=c++14")

to

set(CMAKE_CXX_FLAGS " -fopenmp -fPIC -Wno-deprecated -Wenum-compare -Wno-ignored-attributes -std=c++14")

I used the following libraries

Name Version
cuda 10.2
eigen 3.3.8
pcl 1.11.1
opencv 4.5
openvino 2019.3

@atenpas
Copy link
Owner

atenpas commented Dec 18, 2020

Could you try the following flags?

set(CMAKE_CXX_FLAGS "-O3 -march=native -mtune=intel -msse4.2 -mavx2 -mfma -flto -fopenmp -fPIC -Wno-d eprecated -Wenum-compare -Wno-ignored-attributes -std=c++17")

This works for me in Ubuntu 18.04 where with the previous set of flags, I'd encountered a segfault. The compilation takes some time, but GPD runs fast.

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

5 participants