Skip to content

Cuda Memory Exception #14

@xohm

Description

@xohm

Hi,

First of all, thank you so much for this fantastic library!

I encountered CUDA memory exceptions when using free camera views that were different from the original cameras in the test dataset (e.g., counter).

My setup is as follows:

  • CUDA version: 12.4
  • GPU: NVIDIA RTX A2000 Laptop GPU with 4GB memory
  • OS: KDE Neon 22.04
  • Development environment: C++ project set up with CMake, using LibTorch 2.5.1 with CUDA and the cxx11 ABI.

The crashes occurred when the camera viewport was partially or fully outside the bounds of the Gaussian splats.

I managed to resolve the issue, but I must admit that I don’t fully understand your code yet. Here are the changes I made:

  1. After Preprocess
  • If there are no Gaussian splats to draw, abort the sorting and rendering processes. Otherwise, memory exceptions occur.
  1. renderCUDA
  • I identified an uninitialized variable in certain cases and an array out-of-bounds access when a Gaussian splat was skipped. I did attach a patch.
    crashFixes.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions