Skip to content

TSDF GPU tests panic in bytemuck: repr(align(16)) readback misalignment #175

Description

@rajgandhi1

Three GPU TSDF tests fail on Windows with a bytemuck panic (buffer size / cast mismatch):

  • tsdf::tests::test_tsdf_surface_extraction
  • tsdf::tests::test_tsdf_multiple_integrations
  • tsdf::tests::test_tsdf_color_integration
thread 'tsdf::tests::test_tsdf_color_integration' panicked at bytemuck-1.25.0/src/internal.rs:33:3

Details

  • Reproduces on main independently of any feature branch — this is a pre-existing issue, not a regression.
  • Only the TSDF path is affected; GPU normals, filtering, nearest-neighbor, segmentation tests all pass.
  • Likely a mismatch between the buffer size allocated and the size bytemuck expects when casting the GPU readback (possibly std430 padding / struct alignment on this adapter).

Interim action

These three tests are marked #[ignore] so CI stays green; the code path itself is unchanged. Remove the #[ignore] once the buffer cast is fixed.

How to reproduce

cargo test --release -p threecrate-gpu --lib tsdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggpuGPU acceleration (wgpu)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions