-
-
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
loadPCL() : segmentation fault #1524
Comments
Does this happen with all PCD files or only with this test_pcd.pcd you load in your code? |
All pcd files. |
Can you try purging pcl and all its dependencies in homebrew, and reinstalling everything again. This feels like an issue in your development environment, not really a PCL bug. |
Interesting... I've got the exact same issue! and same hardware configuration |
I've tried to remove all dependencies and install it again through homebrew several times, but the segmentation fault is still there. |
Just did the same... removed PCL and all dependencies via brew. Reinstall all... got same error. Also, to be precise, if that makes any differences, I'm using a custom point format. pcl::PointCloud::Ptr tempCloud (new pcl::PointCloud); |
@mrcharlie90 & @carbomap - do you guys mind trying it with the trunk or 1.8.0-rc1? |
Are you using the same libc++/libstdc++ in boost_filesystem and libpcl? |
@SergioRAgostinho I don't know, how can I check it? I think it's the trunk version, however. I've tried to look inside the brew's formulae (which I installed through @soyersoyer Could you please give me the right command? I've never used otool before |
yes same here… advice on using otool would be welcome.
Dr Antoine Cottin Edinburgh EH1 1LZhttp://www.carbomap.com |
Basically it's as @soyersoyer mentioned. Locate boost_filesystem.dylib and pcl_io.dylib (not sure if this is the actual name but I can confirm later), and then
Then copy the output here |
Here is the output: Darkwater:~ moi$ otool -L /usr/local/Cellar/boost/1.60.0_1/lib/libboost_filesystem.dylib /usr/local/Cellar/boost/1.60.0_1/lib/libboost_filesystem.dylib: Darkwater:~ moi$ otool -L /usr/local/Cellar/pcl/1.7.2/lib/libpcl_io.1.7.2.dylib /usr/local/Cellar/pcl/1.7.2/lib/libpcl_io.1.7.2.dylib:
Dr Antoine Cottin Edinburgh EH1 1LZhttp://www.carbomap.com |
You seem to have two boost versions installed, one through homebrew and another manually. Get rid of the manual one installed in |
ok so what I have in /usr/local/lib are aliases pointing to my brew boost installation. actually this folder only have aliases…
Dr Antoine Cottin Edinburgh EH1 1LZhttp://www.carbomap.com |
When did you build the libpcl? The libsystem.B.dylib version looks different than the libboost_filesystem's, which is suspicios. Did you use the same compiler? |
same compiler… but I just see that PCL has been updated this morning via Brew
Dr Antoine Cottin Edinburgh EH1 1LZhttp://www.carbomap.com |
Same issue for me. Did updating PCL to 1.8 fix it? MacBook Pro (15-inch, Mid 2010), OS X El Capitan 10.11.3 $ brew info pcl $ brew info boost $ otool -L /usr/local/Cellar/pcl/1.7.2/lib/libpcl_io.1.7.2.dylib $ otool -L /usr/local/Cellar/boost/1.60.0_1/lib/libboost_filesystem.dylib |
I have the same issue with PCL 1.8 compiled from the source and a Mac Pro Retina (2015) with OS X El Capitan. Do you have some news about it ? |
I have the same issue still using PCL 1.8, also compiled from source on Ubuntu 16.04 LTS using OpenNI-Bin-Dev-Linux-x64-v1.5.8.5. Any ideas? Thanks Galto |
Ubuntu 18.04 pcl 1.8 same issue. solution is remove the boost modules and reinstall it. and recompile pcl. |
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs. |
Issue seems to regarding broken ABI of boost libraries. Closing since it is not actionable by PCL |
I would like to report this problem
http://www.pcl-users.org/segmentation-fault-in-loadPCDFile-tc4040629.html#a4040816
The following code
output a segmentation fault at
pcl::io::loadPCDFile<pcl::PointXYZ> ("test_pcd.pcd", *cloud)
I've installed PCL 1.7.2 through homebrew on a Mac Pro Retina (2012) with OS X El Capitan.
When debugging the program, the problem is in the function
read (file_name, blob, ... , offset)
which gives me the following error:Exception: EXC_BAD_ACCESS (code=1, address=0x0))
in the following function (in the pcd_io.h):
The text was updated successfully, but these errors were encountered: