Skip to content

Fix crash loading GaussianPly files to CPU device#417

Merged
swahtz merged 1 commit into
openvdb:mainfrom
swahtz:fix/load_ply_cpu
Jan 16, 2026
Merged

Fix crash loading GaussianPly files to CPU device#417
swahtz merged 1 commit into
openvdb:mainfrom
swahtz:fix/load_ply_cpu

Conversation

@swahtz

@swahtz swahtz commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

I noticed that when loading a GaussianSplat3d from a ply I was getting a sporadic crash (though more often then not it did crash). This happens when loading a ply file to the cpu device. The tensors we make from the PlyData don't own the buffers and when the load function returns, the PlyData goes out of scope. This PR addresses this by taking a clone of the Tensor before other operations so even if the Tensors aren't move to the GPU (where a copy of that data would have happened masking the issue on GPU devices), the buffers remain valid on the CPU.

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz added the bug Something isn't working label Jan 15, 2026
@swahtz swahtz requested a review from a team as a code owner January 15, 2026 19:57
@swahtz swahtz added the Gaussian Splatting Issues related to Gaussian splattng in the core library label Jan 15, 2026
@swahtz swahtz requested review from blackencino and harrism January 15, 2026 19:57

@fwilliams fwilliams left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@swahtz swahtz merged commit 2a595e1 into openvdb:main Jan 16, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Gaussian Splatting Issues related to Gaussian splattng in the core library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants