-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[kdTreeFLANN] sigmentation fault #6208
Comments
code is here:
|
|
ubuntu20.04 |
Can you upload the point clouds you are using as zipped PCD files? Then I can try to reproduce the problem on my computer. The number of points (163357) should not be a problem. |
sadly, uploading zip file is forbidden on this computer. which function shoud i check? |
|
I remake and rerun the code, but the result is different.
To prevent any omissions, the full text is attached.
|
Here is the ASAN result:
|
The same code and input data do not always cause a crash. |
Can you upload your CMakeLists.txt and the PCLConfig.cmake from your computer? (zipped, for example) |
CMakeLists.txt
PCLConfig.cmake
|
And the output of |
build:
|
link :
|
My best guess is that it is some kind of memory alignment issue. PCL and Eigen (used within PCL) require a certain alignment of certain classes, depending on architecture options (whether SSE, AVX, etc are enabled or not). However, the flags all look correct. You could try building your own code as C++14 instead of C++17 because it seems like you also built PCL as C++14 (default in PCL 1.14.0). This should not be a problem, but it would be good to rule that out. |
And another thing: point clouds have a field |
After setting |
I figure out what happened with the code. There is a bug in the line 4:
It should be:
The code aims to find the nearest neighbors between model points and scene points. |
input point cloud size is 69641
find knn = 1, but nn_indices[0] is 1036443930
The text was updated successfully, but these errors were encountered: