Unreal Engine crashes during rendering with 'Out of video memory' error

Hello,

I have an issue with rendering a shot. When I try to render my camera shot, a white screen appears instead of the render window, and Unreal crashes every time.

My pc specs :

i9 13900k 3000Mhz 24 cores
RTX 3090 24Gb
32 Go RAM
10To HDD
4To SSD

Projects settings :

Reflection : 256
Project : 3200 actors
60 meta humans

I tried rendering a sequence in an empty project, but the same result occurs: a white render screen appears, followed by the message ‘Out of video memory,’ and then a crash report.

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Util.cpp] [Line: 773]
Out of video memory trying to allocate a rendering resource

0x00007ff83d18c24a UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d18eca4 UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d11f0a9 UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d11e7af UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d0dd266 UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d0cb415 UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff8461d3769 UnrealEditor-RHICore.dll!UnknownFunction
0x00007ff83d0bcb51 UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d054e0a UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff83d133b78 UnrealEditor-D3D12RHI.dll!UnknownFunction
0x00007ff85f6bcb14 UnrealEditor-Engine.dll!UnknownFunction
0x00007ff85f6a86ac UnrealEditor-Engine.dll!UnknownFunction
0x00007ff85f6fd716 UnrealEditor-Engine.dll!UnknownFunction
0x00007ff85f6c1ab2 UnrealEditor-Engine.dll!UnknownFunction
0x00007ff8622361e3 UnrealEditor-Core.dll!UnknownFunction
0x00007ff6aa7d6daf UnrealEditor.exe!UnknownFunction
0x00007ff6aa7ddcd3 UnrealEditor.exe!UnknownFunction
0x00007ff861e2ee35 UnrealEditor-Core.dll!UnknownFunction
0x00007ff861e2ecfe UnrealEditor-Core.dll!UnknownFunction
0x00007ff861e561ad UnrealEditor-Core.dll!UnknownFunction
0x00007ff861e1b0d6 UnrealEditor-Core.dll!UnknownFunction
0x00007ff862027e23 UnrealEditor-Core.dll!UnknownFunction
0x00007ff86247c0ad UnrealEditor-Core.dll!UnknownFunction
0x00007ff8624735cf UnrealEditor-Core.dll!UnknownFunction
0x00007ff96870259d KERNEL32.DLL!UnknownFunction

Crash in runnable thread Background Worker #1

I’ve tried many solutions (TdrDelay, removing grass, removing MetaHumans, etc.), but I can’t figure out what the problem is. I think I have a powerful PC, and I’m surprised that a 3090 can’t handle a simple render. I can render VFX with heavy denoising in DaVinci Resolve, After Effects, Blender, etc., and I can run every game on ultra settings with a decent amount of FPS.

I would be very grateful if someone could help me.

Hello there @Revo_Game!

Per your provided data, and your current setup, the render should work with no problems. Let’s make sure that your local setup is in order:

  • Open your Registry by typing “regedit” on Windows Start, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers, and change the values for TdrLevel and TdrDelay to 60. This will give your PC plenty of time to respond to a possible freeze/crash while rendering.

  • Update your nVIDIA drivers, make sure you are picking the “Clean Installation” option, as well as going for the “Developer” drivers, as these have more stable settings for engine work.

  • Please make sure you have the latest updates for both Unreal and Windows.

  • If your project has been recently updated to a new UE version, rendering settings from the previos build could be causing a conflict. In order to reset them, please search for DefaultGame.ini file, open it wirh a notepad, and delete all settings under the header [/Script/Engine.RendererSettings]

  • In Unreal Engine, reduce the values for engine scalabillty, to ensure your equipment is not being exerted.

  • Test disabling Hardware Raytracing from the engine

  • Finally, please make sure that no RTSS or overlocking are enabled for your video card during rendering.

1 Like

Thank you for your response. I had already set TdrDelay and Tdrlevel to 60, but i’ll keep these tips in mind in case new crashes occur. I just found the source of the problem. I had to change a setting in the Movie Render Queue:

I added the ‘Game Overrides’ setting, changed the ‘Texture Streaming’ parameter from ‘Disable Streaming’ to ‘Don’t Override,’ and unchecked the ‘Flush Streaming Managers’ box.

I didn’t fully understand why this solved the crashes, but I’m glad it works.

After that, my renders are working normally.

1 Like