Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPU Memory Not Freeing Up After Render

27 REPLIES 27
Reply
Message 1 of 28
Isaac.miller101
1372 Views, 27 Replies

GPU Memory Not Freeing Up After Render

With each consecutive Arnold render, my GPU memory gets used until all 8 gigs are occupied and it is forced to abort. It's treating my VRAM as single use and only becomes available again after restarting Maya.

  • 1.3 gig scene
  • RTX3070 8gig
  • Up to date studio driver (also tried gaming driver).
  • Same results on MtoA5.1.0, Arnold Core 7.1.0.0 and MtoA 5.0.0.1, Arnold Core 7.0.0.0

I've cleared caches manually and flushed caches in Maya. I also tried to pre-populate GPU cache but it was taking so long I had to leave it overnight and it failed. Googled and searched forums but can't seem to find any resolution. Attached is a succesful render and then a failed render, along with my render settings.

Any help appreciated!

27 REPLIES 27
Message 2 of 28

Does it stop leaking memory if you remove the imager_denoiser_optix?

Message 3 of 28

Also, it wasn't clear: did you also test with the latest Arnold? It's currently at 7.1.1.1.

Message 4 of 28

Hi @thiago.ize! Thanks for your response. No, the problem persists regardless.

Message 5 of 28

@thiago.ize 7.1.1.1 wasn't actually available last time was was trying to solve this issue, so in the spirit of trying to make sure everything is good, I did a clean install of Maya, Arnold + a new studio driver update from NVIDIA. Before doing any renders I pre-populated the GPU Cache and the unfortunatly the problem persists.

Message 6 of 28

Do you mind sharing your scene so we can try and reproduce the problem on our end?

Message 7 of 28

Sure, it's happening with every scene (new and old), so I'm not sure it will help, but I will send one through anyway. Thanks!

P.S. I tried attaching .MB file but it only accepted .MA.

Message 8 of 28

Thanks, I'll give this a try tomorrow. By the way, for future reference you can zip the file and then you'll be able to upload whatever you want.

Message 9 of 28

Thanks man, I appreciate your help.

Message 10 of 28

I wasn't able to reproduce the memory leak. First off, can you confirm it's supposed to render black (I think there are no lights)? And how are you rendering each time: ARV stop and start? Render sequence? Different scenes without restarting maya?

Message 11 of 28

Sorry I just removed the world light because it was connected to a HDRI that you wouldn't have. It's happening with every scene. No I am rendering just one scene. Tried rendering current frame, sequences also just opened arnold render view and clicking the "play" button, then stopping it once it's complete. Check out my screencast.

Message 12 of 28
Message 13 of 28

Thanks for the video, it makes it very clear what you're doing 🙂

I can get memory being used for the first two or so renders, but after that it seems to stop increasing. It's not as bad as what you're experiencing, but maybe that's a good enough reproducer for us, as I'd have hoped gpu memory would go completely back down after ending the render. We'll keep on investigating on our end. Thanks!

Message 14 of 28

No problem, glad you were able to see some progress. I really appreciate the help.
Message 15 of 28

Hi @thiago.ize, were you able to figure out what might be happening? It's been incredibly debilitating. I had to move to rendering in Blender.

Message 16 of 28

No, we were not able to figure out the issue as we could not reproduce the memory leak past the first couple renders. We are in the midst of a major GPU rewrite as we upgrade from OptiX 6 to 7 so it's possible when that's completed it might fix this for you or at least make it easier for us to fix this as we now have more control over memory usage in Optix 7. Unfortunately we can't give an ETA.

Message 17 of 28
Message 18 of 28
alikasb
in reply to: Isaac.miller101

I have same problem in 3dsmax 2024 Arnold render. GPU memmory is full and Arnold r render start rendering very slow. Swichng to other rendering or closing scene memory  GPU still full. Only after closing 3dsmax memmory GPU is about 0 precents.

Message 19 of 28
CiroCardoso3v
in reply to: alikasb

Are you using the latest version? Perhaps a log could help with what is happening.

 

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-get-an-Arno...

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 20 of 28
alikasb
in reply to: CiroCardoso3v

Yes Latest (or at least one of the latests). I Instalet 3dsmax about month ago.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums