I receive segmentation fault only for some point clouds and with small voxel size parameters to the cuCluster. It does not seem related to the point cloud size. If I make the voxel sizes larger, however, the segmentation fault disappears. I thought may be the number of voxels necessary for the volume is larger than INT_MAX, and it causes integer overflow but my calculation shows the required number of voxels is not even near the limit.
I could provide you with some point cloud data that produce the error, if you wish to reproduce.
Because the library is not open source, I cannot really debug. It looks like the cudaExtractClusterImpl::extract function tries to write into the output array, however, the position it tries to write is out of bounds.
// The limits of the point cloud
// is [0m,0m,0m] to ~[3m, 2m, 6m] meters.
// I see segmentation faults for voxel size 0.05.
// for 0.1, I do not.
ecp.voxelX = 0.05;
ecp.voxelY = 0.05;
ecp.voxelZ = 0.05;
Hello,
I receive segmentation fault only for some point clouds and with small voxel size parameters to the
cuCluster
. It does not seem related to the point cloud size. If I make the voxel sizes larger, however, the segmentation fault disappears. I thought may be the number of voxels necessary for the volume is larger thanINT_MAX
, and it causes integer overflow but my calculation shows the required number of voxels is not even near the limit.I could provide you with some point cloud data that produce the error, if you wish to reproduce.
Because the library is not open source, I cannot really debug. It looks like the
cudaExtractClusterImpl::extract
function tries to write into the output array, however, the position it tries to write is out of bounds.