Unreal 5.7 RayTracing Crash

Hi everyone,
I’m running into a consistent crash in Unreal Engine 5.7 and I’m having trouble figuring out the exact cause. I’m hoping someone who has dealt with this before can point me in the right direction.

This is the crash message:

Assertion failed: Scene->RayTracingScene.GetCachedInstanceGeometry(RayTracingInstanceIndexMain) == CachedRayTracingGeometry->GetRHI()
File: PrimitiveSceneInfo.cpp
Line: 395

And before the crash, the log repeatedly shows:

LogRenderer: Using fallback RTPSO
LogPSOHitching: Encountered X PSO creation hitches...

One thing that might be related:
I have foliage meshes (plants) painted with the Foliage tool. These meshes use Nanite, and the material has World Position Offset for wind animation.

My log also shows this warning:

Nanite instanced static mesh using World Position Offset not supported in ray tracing yet

I’m not sure if this warning is directly responsible for the crash, or if it’s just unrelated noise.

I have invisible walls too that might be crashing, but i’m not sure..

Any guidance would be greatly appreciated. I can share full logs, crash context files, and the project setup if needed.

Thanks in advance!

1 Like

Hi @Kye1002 !

We are currently investigating this crash. Are you able to reproduce it in a small project that you could share with us?

Thanks!

Hello Tiago!

Unfortunately I can’t share the full project because it’s under an NDA, but I can gather any specific logs or files you might need. The crash is a bit inconsistent on my side, so I’m not fully sure what’s triggering it yet.

If there’s any particular log, trace, or setting you want me to extract, just let me know and I’ll send it over.

Ah ok.

Do you know if there’s any logic in the project (such as blueprints) that calls SetEvaluateWorldPositionOffsetInRayTracingto toggle whether WPO is enabled on static mesh components?

Hello!

There’s no blueprint with that logic on the project, and i used the command r.RayTracing.Geometry.StaticMeshes.WPO=0 and unreal still crashed, we tested on 5.7.0 and 5.7.1.

2 Likes

(post deleted by author)