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”
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 FSplineMeshProxybNeedsDynamicRayTracingGeometries 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.