Skip to content

Wrong preallocation of d_voxelZeroCross #10

@grungeguitarist

Description

@grungeguitarist

Since d_voxelZeroCross is a list of (zero-crossing) voxels (and not voxel blocks), it should be allocated with the size...
'sizeof(int3) * params.m_numSDFBlocks * params.m_SDFBlockSize * params.m_SDFBlockSize * params.m_SDFBlockSize'
and not...
'sizeof(int3) * params.m_hashNumBuckets * 2'.

This allocation happens in VoxelUtilHashSDF.h (while it is filled in findZeroCrossingVoxelsKernel(...) in CUDATexUpdate.cu).

Otherwise, it could crash with an illegal memory access exception when processing larger scenes.

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