Quantcast

Segfault in Clustering Tutorial

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Segfault in Clustering Tutorial

robmck1995
Hi all, brand new to PCL so unsure what I might be doing wrong or whatnot. I tried running the cluster extraction tutorial at
http://www.pointclouds.org/documentation/tutorials/cluster_extraction.php
and when I run it I get a segfault with the following backtrace

#0  __GI___libc_free (mem=0x21) at malloc.c:2949
#1  0x00007fffefcb4d90 in Eigen::internal::handmade_aligned_free (ptr=<optimized out>)
    at /usr/local/include/eigen3/Eigen/src/Core/util/Memory.h:98
#2  Eigen::internal::aligned_free (ptr=<optimized out>)
    at /usr/local/include/eigen3/Eigen/src/Core/util/Memory.h:179
#3  Eigen::internal::conditional_aligned_free<true> (ptr=<optimized out>)
    at /usr/local/include/eigen3/Eigen/src/Core/util/Memory.h:230
#4  Eigen::internal::conditional_aligned_delete_auto<float, true> (size=<optimized out>,
    ptr=<optimized out>) at /usr/local/include/eigen3/Eigen/src/Core/util/Memory.h:416
#5  Eigen::DenseStorage<float, -1, -1, 1, 0>::~DenseStorage (this=0x7fffffffd760,
    __in_chrg=<optimized out>) at /usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h:542
#6  Eigen::PlainObjectBase<Eigen::Matrix<float, -1, 1, 0, -1, 1> >::~PlainObjectBase (
    this=0x7fffffffd760, __in_chrg=<optimized out>)
    at /usr/local/include/eigen3/Eigen/src/Core/PlainObjectBase.h:98
#7  Eigen::Matrix<float, -1, 1, 0, -1, 1>::~Matrix (this=0x7fffffffd760, __in_chrg=<optimized out>)
    at /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:178
#8  pcl::RandomSampleConsensus<pcl::PointXYZ>::computeModel (this=<optimized out>)
    at /home/robert/Documents/PCL/sample_consensus/include/pcl/sample_consensus/impl/ransac.hpp:62
#9  0x00007ffff60be08f in pcl::SACSegmentation<pcl::PointXYZ>::segment (this=0x7fffffffda40,
    inliers=..., model_coefficients=...)
    at /home/robert/Documents/PCL/segmentation/include/pcl/segmentation/impl/sac_segmentation.hpp:97
#10 0x0000000000437bd5 in main (argc=1, argv=0x7fffffffded8)
    at /home/robert/Documents/MPCLab/cluster_extraction/cluster_extraction.cpp:50

After extensive searching online it looks like it could be related to some build option with PCL (I compiled from source with pretty much default options), but I have no clue what I would need to change. I'm using PCL 1.8 on Ubuntu 16.04 with Eigen ver 3.3.3 but also tried downgrading to 3.2.10 with no luck. Anyone had a similar issue or suggestions? Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault in Clustering Tutorial

erdelmaero
This post has NOT been accepted by the mailing list yet.
I have the same issue when using <pcl/sample_consensus/ransac.h>.

Ubuntu 16.04 and Eigen 3.3.3.
Runtime-Error:
"Segmentation fault (core dumped)"
Loading...