When running mcc-lidar on real data it seg faults during the first pass with the following backtrace.
#1 0x000000000047fa1f in void std::heap_select<gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > > >(gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > >, gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > >, gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > >) ()
#2 0x000000000047fb43 in void std::partial_sort<gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > > >(gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > >, gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > >, gnu_cxx::normal_iterator<mcc::NeighborPoint, std::vector<mcc::NeighborPoint, std::allocator<mcc::NeighborPoint> > >) ()
#3 0x000000000047c3ec in mcc::getPointsFromNeighbors(mcc::Grid<mcc::InterpolationRegion>&, unsigned int, unsigned int, std::vector<mcc::IPoint const, std::allocator<mcc::IPoint const> >&) ()
#4 0x000000000047c88a in mcc::ensureEnoughPointsPerRegion(mcc::Grid<mcc::InterpolationRegion>&) ()
---Type <return> to continue, or q <return> to quit---
#5 0x000000000047e148 in mcc::DisjointRegions::subdivide(mcc::IPointVector const&, mcc::RasterSurface const&) ()
#6 0x0000000000471425 in mcc::SurfaceInterpolation::operator()(mcc::IPointVector const&, double, double) ()
#7 0x000000000046b00a in mcc::Algorithm::classifyPoints(mcc::IPointVector&, double, double) ()
#8 0x000000000048fdaa in main ()
Reproduced the error on OS X (10.4).
Fixed in revision r84.
Related
Commit: [r84]