Skip to content

Convex hull reconstruction segfault on qh num_facets #369

@kode9

Description

@kode9

Hello,

I'm having a segfault on a convex hull reconstruction. A simple snipped :

// size is > 0

pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>);
cloud->width    = size;
cloud->height   = 1;
cloud->is_dense = false;
cloud->points.resize(size);

//...
// Fill the point cloud
///

pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_hull(new pcl::PointCloud<pcl::PointXYZ>);
pcl::ConvexHull<pcl::PointXYZ> chull;
std::vector<pcl::Vertices> polys;
chull.setInputCloud(cloud);
chull.setDimension(3);
chull.reconstruct(*cloud_hull, polys); // Segfault

The segfault appears in surface/include/pcl/surface/impl/convex_hull.hpp line 342 :

  int num_facets = qh num_facets;

Using pcl1.7.1 from Arch linux aur and qhull 2012.1-2 packaged.

I'm pretty sure I have no problem on some other computers with pcl 1.7.0 and qhul 2009.1-3

I'll try to get more info if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions