|
Hello,
i wanted to use concaveHull.reconstruct(*cloud) in my project and got segmentation faults. So i build the tutorial from: http://pointclouds.org/documentation/tutorials/hull_2d.php#hull-2d and got the same segmentation fault. GDB tells me: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff0508744 in pcl::ConcaveHull<pcl::PointXYZ>::performReconstruction(pcl::PointCloud<pcl::PointXYZ>&, std::vector<pcl::Vertices, std::allocator<pcl::Vertices> >&) () from /usr/lib64/libpcl_surface.so.1.7 Things i have tried: - reinstalling qhull 2012 - reinstalling qhull as static - reinstalling pcl from trunk Thanks in advance for your help. |
|
Administrator
|
You're not telling us what OS, what compiler, whether PCL 1.6 works for you, etc.
AFAIK, the recommended qhull version is 2009 or 2011. I'm not sure if the 2012 broke their API semantics, thus resulting in crashes. Cheers, Radu. -- http://openperception.org On 07/29/2012 03:39 AM, harp wrote: > Hello, > > i wanted to use concaveHull.reconstruct(*cloud) in my project and got > segmentation faults. > So i build the tutorial from: > http://pointclouds.org/documentation/tutorials/hull_2d.php#hull-2d > and got the same segmentation fault. > > GDB tells me: > /Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff0508744 in > pcl::ConcaveHull<pcl::PointXYZ>::performReconstruction(pcl::PointCloud<pcl::PointXYZ>&, > std::vector<pcl::Vertices, std::allocator<pcl::Vertices> >&) () from > /usr/lib64/libpcl_surface.so.1.7/ > > Things i have tried: > - reinstalling qhull 2012 > - reinstalling qhull as static > - reinstalling pcl from trunk > > Thanks in advance for your help. > > > > -- > View this message in context: http://www.pcl-users.org/SIGSEGV-ConcaveHull-and-ConvexHull-in-performReconstruction-tp4020879.html > Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com. > _______________________________________________ > [hidden email] / http://pointclouds.org > http://pointclouds.org/mailman/listinfo/pcl-users > [hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users |
|
Thanks for your reply and sorry for not providing enough information.
I am using gentoo linux amd64 with GCC4.7.1. Before testing with PCL trunk and QHull 2012 i startet with PCL 1.6 and QHull Version 2010.1-r2. I can use most other pcl methods/libs with this setup, but the hull.reconstruct() won't work. |
|
Administrator
|
Did PCL 1.6 with QHULL 2010 also crash? What point cloud are you using it with? Can you create an issue on
http://dev.pointclouds.org please with all the details? Most of the time these things are user errors, but every now and then we catch a nasty bug which we have to fix. We appreciate your cooperation and help on solving the issue ;) Thanks in advance! Cheers, Radu. -- http://openperception.org On 07/29/2012 09:32 AM, harp wrote: > Thanks for your reply and sorry for not providing enough information. > > I am using gentoo linux amd64 with GCC4.7.1. > Before testing with PCL trunk and QHull 2012 i startet with PCL 1.6 and > QHull Version 2010.1-r2. > > I can use most other pcl methods/libs with this setup, but the > hull.reconstruct() won't work. > > > > -- > View this message in context: http://www.pcl-users.org/SIGSEGV-ConcaveHull-and-ConvexHull-in-performReconstruction-tp4020879p4020889.html > Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com. > _______________________________________________ > [hidden email] / http://pointclouds.org > http://pointclouds.org/mailman/listinfo/pcl-users > [hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users |
|
I finally found out that PCL ONLY works with qhull 2011.1 and NOT 2010 and NOT 2012.
Best regards. |
|
Hi
I am using Debian (gcc 4.4.5) and have tried to compile PCL 1.6.0 with QHull 2010.1, 2011.1, 2011.2 and 2012.1 I also compiled the tutorial / example with the same QHull / PCL version - all compiled from source However, I always get a "Segmentation fault" for each of these builds when trying to execute the "reconstruct" method of pcl::ConcaveHull. Since that didn't work, I then tried the same thing on Mac OS X (10.8) using gcc and found the exact same problem here. The only way I got it to run was to download the pre-compiled qhull libraries for Mac OS from the pcl website. Could anyone please let me know, if there are any pre-compiled libraries available for linux? If not, are there any special build settings I am missing for PCL and/or QHull to get this thing to work? Please also point me to the exact code that you used for QHull 2011.1, that is supposed to work, since I found at least three (!) different versions of QHull 2011 alone (2011.1, 2011.1-rc, 2011.2). Thank you! |
|
I used QHull 2011.1.
Make sure that you do not link your programm against any static libs but the dynamic one. I got some trouble with that too and had to change it in the cmake configuration. Best regards. |
|
Thanks for the quick reply !
I got it to run right now using the qhull debian package, which was already installed on my machine (under /usr/include, usr/lib) My assumption is that on either execution or compile time it would try to load the wrong QHull library, eventhough I made sure that LD_LIBRARY_PATH was set properly at all times. I also verified that "ldd concave_hull_2d" would point me to my locally build qhull library however, it formerly reported "libqhull.6.so" or "libqhull6.so", depending on the qhull version I used... now that it is working ldd actually points me to "libqhull.so.5" (as in /usr/lib/libqhull.so.5) - so I wonder if that is supposed to be the "real" QHull 2011.1 version ? Anyway - thanks for your help. |
| Powered by Nabble | Edit this page |
