Hardware Ray Tracing

Hello everyone!
I have an issiue with ray tracing and this on crash report:
Assertion failed: RayTracingGeometryRHI != nullptr || EnumHasAllFlags(GeometryState, EGeometryStateFlags::Evicted) [File:D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RayTracingGeometry.cpp] [Line: 219]

UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Engine
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Hello there @Demi4s!

This issue has popped in other threads across the community. The solution would be, of course, to simply disable Hardware Ray Tracing, which will most likely get rid of the crash:

image

Now, if the feature is critical for your project, there are other ways to resolve the problem. The error states that the engine is attempting to work with ray traced geo that is either invalid, or absent from memory. These types of issue are usually tied to corrupted data, or driver issues.

So, the first step here would be to update your GPU Drivers, and if possible, perform a clean install, and use the Developer version of said drivers. Next, we clear the data cache, via closing UE, and deleting folders Saved, Intermediate, and DerivedDataCache from the project directory. Re-opening UE will force a shader re-compile.

If the issue persists after these actions, we can try further options:

  • Check your scene for any assets currently using Nanite, or any type of procedural geometry, as both tend to have a rocky relationship with Ray Tracing

  • Switch between DX11 and DX12 in your system

  • Test some of your assets in an empty project, in order to pinpoint if the issue’s origin is from the project itself, or from any specific item

  • Test the other way around, via removing any suspicious assets from your project, and check if the crash stops

  • If the issue started after a particular change, check for any Backups in your project, and attempt a rollback

Hi, thanks for help and how about this:
Build request for FRayTracingGeometry without valid RHI. Was the FRayTracingGeometry evicted or released without calling RemoveBuildRequest()?