Error : RayTracingDevice->CreateStateObject()

Hello !

I updated my project from 5.4 to 5.5 and now only in shipping build mode I have this crash when I launch the build:

LowLevelFatalError [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Util.cpp] [Line: 991]
RayTracingDevice->CreateStateObject(&Desc, IID_PPV_ARGS(Result.GetInitReference())) failed
at D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12RayTracing.cpp:663
with error E_INVALIDARG

Everything is updated (Nvidia Driver, sdk, etc)
I understand it’s from DirectX12 / Ray Tracing but for this project I can not really remove ray tracing. Any suggestion except to wait for a patch from unreal or nvidia ?

EDIT : After some research, when the build is launched this file is created in saved folder : XXXX_PCD3D_SM6.upipelinecache

If I delete it, the build works but create another one, making crash the second launch. PSO seems to be the problem.

Thanks for your help

[/Script/Engine.RendererSettings]
r.ShaderPipelineCache.Enabled=0

Add this line in DefaultEngine.ini prevent the creation of the file

1 Like

Currently have the exact same error after switching to 5.5.

The r.ShaderPipelineCache.Enabled=0 didn’t fix it.

I lied, it does fix it. Thanks.

i have the same issue, i cant seem to fix it. Can someone help

Try to delete YourProjectName_PCD3D_SM6.upipelinecache in your saved folder (appdata/local/ YourProjectName/saved/)

And add in your defaultengine.ini :

[/Script/Engine.RendererSettings]
r.ShaderPipelineCache.Enabled=0

It’s a temporal solution because PSO is now removed. Can decrease performance depending of your project. So keep in mind it’s a quick fix to remove later when it will be fixed

1 Like