We are creating sensors and OmniGraph nodes using a python script.
Running the script kills the GPU’s memory.
Before running the script:
After:
Unfortunately, I can’t share the script because it is proprietary, but it basically creates 4 cameras, 2 imus, and the OmniGraph nodes for publishing the cameras to ROS2.
@Sheikh_Dawood In this issue, the memory goes down just by running the above code in the script editor, without running the simulation. I also tried with a simulating a single stereo camera (left and right), seems like just creating this camera and its xforms takes aroung 1.8 GB of GPU memory.
Ok. Can you help us detect if there is a memory leak?
Try start from a fresh boot and start Isaac Sim with the script with one camera. Check the GPU memory usage.
Next add more cameras and check GPU memory again.
Next close and reopen Isaac Sim and Run the script with one camera again and see the usage. It should be the same as before.
So far does it crash less with that one camera script?
Every time I reopen Issac Sim, or even re-open the model without closing Isaac sim, the memory is freed. With only 1 camera it doesn’t crash, but it does still take a lot of memory.
By the way, if I run the script, save and open the saved file, memory usage is not so bad (300 mb). So seems like there is some kind of memory abuse by the python API.