Unreal Engine 5.5.1 Unhandled Exception in Create Dynamic Ray Tracing Geometries

Hi

We are in the process of upgrading our Unreal Engine to 5.4 to 5.5.

However, we have found that the upgrade has a unhandled exception thrown in in this function “FStaticMeshSceneProxy::CreateDynamicRayTracingGeometries”

In this function, only 1 line was added in, in 5.5 and is now causing the crash.

“RenderData->RayTracingProxy” can sometimes be NULL during this function, and it is unhandled.

Full call stack below:

This is happening for us as well. I pinpointed it down to USplineMeshComponents and was able to reproduce the issue in a clean project:

  • Ensure project is configured for raytracing
  • Place a SplineMeshActor in an empty level
  • Assign a static mesh to the spline actor, inside its details panel
  • Open the static mesh asset you just assigned in the static mesh editor
  • Turn off Support Ray Tracing for the static mesh

For me, after performing these steps, the engine crashes immediately. Seems like only happening with USplineMeshComponent, UStaticMeshComponent does not produce this issue.

Looking at the code, it seems for FSplineMeshProxy bNeedsDynamicRayTracingGeometries is always put to true, regardless if the used static mesh supports ray tracing or no.

So until this is fixed, a quick workaround would be to check Support Ray Tracing for any static meshes used with spline components.

1 Like