You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System: Ubuntu 24.04 LTS Version / Commit SHA: SHA: 4a186c2 (head of "feature/nanovdb") Other: clang-18.1.3
Describe the bug
"misaligned pointer use" in this instruction
auto *srcLeaf = srcLeafs[i];
auto *dstLeaf = PtrAdd<DstNode0>(ptr, srcLeaf->mDstOffset);
auto *data = dstLeaf->data(); // <<------ HERE
srcLeaf->mDstNode = dstLeaf;
I believe it's coming from writeGrid, but the call stacks aren't always looking the same.
To Reproduce
All I'm doing is this:
nanovdb::GridBuilder<float> builder(0.0f, nanovdb::GridClass::LevelSet);
auto acc = builder.getAccessor();
for (uint32_t z = 0; z < extent[2]; ++z)
{
for (uint32_t y = 0; y < extent[1]; ++y)
{
for (uint32_t x = 0; x < extent[0]; ++x)
{
acc.setValue(nanovdb::Coord(x, y, z), some_value);
}
}
}
nanovdb::io::writeGrid("grid.nvdb", builder.getHandle<>(), nanovdb::io::Codec::NONE);
Expected behavior
No crashes or access violations are expected.
Additional context
The grid size I used was 23x25x27 The template parameter for the grid is a custom type that has the size of 2 bytes.
The template parameter is just float
Environment
Operating System: Ubuntu 24.04 LTS
Version / Commit SHA: SHA: 4a186c2 (head of "feature/nanovdb")
Other: clang-18.1.3
Describe the bug
"misaligned pointer use" in this instruction
I believe it's coming from
writeGrid
, but the call stacks aren't always looking the same.To Reproduce
All I'm doing is this:
Expected behavior
No crashes or access violations are expected.
Additional context
The grid size I used was 23x25x27
The template parameter for the grid is a custom type that has the size of 2 bytes.The template parameter is just
float
Call stack
Another call stack:
The text was updated successfully, but these errors were encountered: