Out of memory with RTX 3090 and 32GB RAM when rendering

Hello everyone, whenever I try to render out my scene, I get an error saying “out of memory” I thought its my GPU so I got a new RTX 3090 and I am using AMD Ryzen 9 5950X CPU with 32GB RAM so its definitely not a Hardware problem.
Here is the funny part, I have been rendering this scene to perfect it without any problems but suddenly now it would crash with this error, it’s the same scene with same render settings and I have even tried to render it in full HD with no console variables but same error, any help would be great.

Thank you

Are you running a lot of programs in the background that could be intensive for the rendering? What is the output size for the render?

Not at all, I have it all closed and I was able to render before but now it won’t let me, and I am rendering in 4k but I have tried hd also but same error

Hmm, seems very strange… You have good PC specs, so I think the issue is coming from somewhere else. If you try to render another scene in your project, does the same happen?

Maybe your hard drive doesn’t have enough space for all the cache data.

1 Like

if you run out of RAM the engine usually just crashes and throws page file errrors. if you run out Video RAM this could have several reasons. are you using all of the 24 gigs the 3090 has? if not, i found virtual shadows map beta rather unstable and leaking video memory which you can’t fix, really, but disable it and use shadow maps or raytraced shadows. the latter are not working so well with spammed nanite assets tho. i also uninstalled microsoft gaming services, which seems to be messing with gpu resource allocation too. that’s all i got.

I have tried to make another project and same problem so it’s not the project, I’m just scratching my head here as it was rendering before and I didn’t change anything

You know this actually makes me think could be it, I am using ssd but could be heavy as I also have my games installed on it, it still has over 800gb free tho, is there a way to check the cach data or find out if it is the hard drive? Thanks

Thanks for the reply, it’s very strange as I replaced the GPU and tried new projects and even reinstalled unreal engine but nothing

So I tried deleting all the Derived Data Cache in folder: “C:\Users\yourusername\AppData\Local\UnrealEngine\Common\DerivedDataCache” and tried to render a new project, still same error.

As @el-daddy786 said, sounds like it could be a cache issue.

I don’t think it is, I have cleared all cach data, I did see some other people online have same isuee and someone got it fixed by resetting the windows which is what I am doing now, will see if this fixes it, hopefully

if you don’t need xbox live, give it a shot. it fixed my video memory issues. (something in this software could very potentially cripple your experience with unreal. not tinfoil hat at all. it’s typical Mc Software. they want you to buy games in their shop.)

Launch Powershell as an administrator, copy and paste the following command (in bold):
get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers

thanks for the reply, i dont have xbox live installed at all, and i dont think it is an actual memory problem for me as my hardware good, plus i got plently space, and the fact that i was able to render before, i think its a glitch

you not running microsoft gaming services? are you sure? usually it comes preinstalled with windows and can’t be uninstalled in the app manager. it’s one of those pesky background services you should get rid off yourself.

and this is not about a memory problem, but a software problem. this software could tamper with your drivers and limit/lock the amount of vram that is available to other applications. if it’s running in background you should terminate it and forcefully uninstall it. it’s not required by the OS so it’s safe to remove and/but could be the cause of your issue.

1 Like

ok so just wanted to let people know I fixed the problem, as expected it was not a hardware problem but a windows software, I tried deleting all the cache and other software’s like Xbox live but nothing works, I did full windows reset and it’s all working as it should now, it was a windows 11 problem I think but I know same problem happened in windows 10 so it must be a bug in UE. Simple fix is to reset the windows and it should work.