-
-
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
Crash on returning filtered pointcloud (Statisical or Radius) - AVX/SSE issue #6038
Comments
Edit: It seems the culprit were AVX/SSE instructions. After I disabled them both on compilation it works! |
Hi, the thing with SSE and AVX is that the options used when compiling PCL should match the options used for your own project, otherwise problems can occur. Usually, CMake takes care of this (unless you do not use CMake for building your own project, edit: or you manually change SSE/AVX options in your own CMakeLists.txt). Enabling |
@mvieth Will do. In another note: Could the problem we that I didnt compile eigen with AVX/SSE? I just installed via apt |
Eigen is a header-only library, so there are no binaries installed. The classes and functions from Eigen are compiled when PCL and your own project are compiled. |
Ok so I recompiled PCL in Debug mode with AVX and SSE on. And I am running my code in RelWithDebug. It doesnt seem to happen in Debug. I think whats happening is that it tries to free the point_cloud data structure and somehow the filtering already consumes it? Sorry that I cant provide a more detailed trace |
|
point_cloud is a scoped pcl that should be released when the functions returns. |
Describe the bug
memory free error when using statistical outlier filter or radius outlier filter. Pass through works. This happens when either SSE or AVX are enabled
A clear and concise description of what the bug is.
When using the filters mentioned above to filter a point cloud the program crashes when the function returns on a memory free
What are you trying to accomplish? Providing context helps us come up with a solution that is most useful in the real world
Filter point clouds
A clear and concise description of what you expected to happen.
The program does not crash
What happens instead of the expected behavior?
The program crashes
Screenshots/Code snippets
Setup:
Code:
Your Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: