Fatal Error: RayTracing Segments/Materials mismatch?

I’m migrating a Lyra project to 5.4.
I’ve also upgraded my whole PC.
And I’m getting this crash error whenever I attempt to open some levels.
I have some basic levels that open fine. Default levels also seem to open fine.

Any idea what this is about?

[2024.05.21-01.10.03:348][ 31]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: === Critical error: ===
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: 
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: Assertion failed: RayTracingInstance.Geometry->Initializer.Segments.Num() == CachedRayTracingMaterials.Num() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\TextRenderComponent.cpp] [Line: 962] 
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: Segments/Materials mismatch. Number of segments: 1. Number of Materials: 7.
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: 
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: 
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffc9fd8e781 UnrealEditor-Engine.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffc91e4dd85 UnrealEditor-Renderer.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffc912810f0 UnrealEditor-Renderer.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffc920fa279 UnrealEditor-Renderer.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffc9209a67a UnrealEditor-Renderer.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffce3846bd0 UnrealEditor-RenderCore.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffce3883165 UnrealEditor-RenderCore.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffccda9b84a UnrealEditor-Core.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffccda9beee UnrealEditor-Core.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffce38b180f UnrealEditor-RenderCore.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffce38b64b4 UnrealEditor-RenderCore.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffcce0db7ad UnrealEditor-Core.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffcce0cf127 UnrealEditor-Core.dll!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error: [Callstack] 0x00007ffd8546257d KERNEL32.DLL!UnknownFunction []
[2024.05.21-01.10.04:205][ 31]LogWindows: Error:

It stops by disabling Ray Tracing.

It would nice to know why that crashes.
Segment/material mismatch :thinking:

My gpu with ray tracing is new, but I used it in my other PC, running 5.3.1, and that wasn’t crashing. So that makes me think it isn’t the gpu or ray tracing specifically (although I never checked if ray tracing was on. I can only assume it was.)

The difference here is 5.4 and the rest of the pc is new. It could be something in the project not fixed in migrating yet but that seems less likely.

This issue is fixed in 5.4.2. If you use the source version. You can merge this CL. https://github.com/EpicGames/UnrealEngine/commit/5cd5da4cba44a526d0fceadc3a41f02fae5494c2

1 Like