-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Segmentation fault (core dumped) with PCL 1.8 #6
Comments
Hi @qmx066 , Do you see the segfault with the standard NDT in pcl? |
nope, the standard NDT works fine. as workaround, i'm now running with PCL 1.7, the problem with 1.8 still confuses. |
On my PC, it works with pcl1.8 apt binary on Ubuntu 18.04. I suppose it may be some problem relating to SSE optimization. Could you try to remove the SSE options in CMakeLists? Line 5 in e956da1
Line 6 in e956da1
|
Hi, I have the exact same problem using PCL 1.9.1 on ubuntu 16.04. The pcl::NormalDistributionTransform works good but a segmentation fault occurs with the pclomp::NormalDistributionTransform when I call for the setinputtarget(). This also occurs with the pclomp::GeneralizedIterativeClosestPoint class. |
hi koide3, it doesn't fix my problem, no matter add these or not, the fault occurs all the time. |
i'm lucky that PCL 1.7 can be used in my situation. |
Boost library PCL used is not ABI compatible between C++03 and C++11. So if you can try do not use -std=c++11. |
I have the same problem using PCL 1.9.1 on ubuntu 16.04.
I hope it works for you. |
@zhkai929 , Thank you, it solved my problem. There are two pcl version on my pc, one is pcl1.7 installed from ros, and another is pcl1.8 installed by myself from github, it really give me a big help! |
Hello, i also met the same problem, but pcl 1.9 instead of pcl 1.8. The above solution is not work for me. |
At me, on ubuntu 18.04 + pcl 1.8 all is normal, but the system is upgraded to ubuntu 20.04 + pcl 1.10, there occurs one new segmentation fault. run the same source and target pointcloud, it can work with the align app, but not in my code program ros callback... through backtrace, I find https://github.com/koide3/ndt_omp/blob/master/include/pclomp/voxel_grid_covariance_omp_impl.hpp#L99 leaves_.clear() has some wrong, gdb shows that std::_Rb_tree::M_erase segmention fault, below picture is as show in detail: |
hey there, i'm compiling this tool with PCL version 1.8, Segfault really annoys me so much, no matter release or debug, when setinputtarget() function called, it crashes with segfault. and pcl 1.7 can make it work well (release or debug), do you have any ideas about that?
The text was updated successfully, but these errors were encountered: