Description

Licensee reported that is caused by missing ECVF_RenderThreadSafe flag in these console variable definitions.

r.RayTracing.Shadows
r.RayTracing.AmbientOcclusion
r.RayTracing.Reflections

Here is a screenshot of the debugger when it crashed.

[Image Removed]

 

Steps to Reproduce
  1. Create a raytracing enabled project on ue4.25
  2. Open some map ( haevy scene is easier to reproduce )
  3. Play in editor
  4. Enter following command in console
    r.RayTracing.Shadows 0
    r.RayTracing.AmbientOcclusion 0
    r.RayTracing.Reflections 0
  1. Keep toggling raytracing with entering r.RayTracing.Reflections 1 or 0
    ( It means recreating TLAS )

 

Callstack

> UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::RenderRayTracingReflections(FRDGBuilder & GraphBuilder, const FSceneTextureParameters & SceneTextures, const FViewInfo & View, int SamplePerPixel, float ResolutionFraction, IScreenSpaceDenoiser::FReflectionsInputs * OutDenoiserInputs) Line 572 C++ Symbols loaded.
UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::RenderDeferredReflectionsAndSkyLighting(FRHICommandListImmediate & RHICmdList, TRefCountPtr<IPooledRenderTarget> & DynamicBentNormalAO, TRefCountPtr<IPooledRenderTarget> & VelocityRT, FHairStrandsDatas * HairDatas) Line 704 C++ Symbols loaded.
UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::Render(FRHICommandListImmediate & RHICmdList) Line 2351 C++ Symbols loaded.
UE4Editor-Renderer.dll!RenderViewFamily_RenderThread(FRHICommandListImmediate & RHICmdList, FSceneRenderer * SceneRenderer) Line 3581 C++ Symbols loaded.
[Inline Frame] UE4Editor-Renderer.dll!FRendererModule::BeginRenderingViewFamily::__l35::<lambda_ca994b52dcfd379b80fcb1607b30126e>::operator()(FRHICommandListImmediate &) Line 3820 C++ Symbols loaded.
UE4Editor-Renderer.dll!TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`35'::FDrawSceneCommandName,<lambda_ca994b52dcfd379b80fcb1607b30126e> >::DoTask(ENamedThreads::Type CurrentThread, const TRefCountPtr<FGraphEvent> & MyCompletionGraphEvent) Line 195 C++ Symbols loaded.
UE4Editor-Renderer.dll!TGraphTask<TEnqueueUniqueRenderCommandType<`FRendererModule::BeginRenderingViewFamily'::`35'::FDrawSceneCommandName,<lambda_ca994b52dcfd379b80fcb1607b30126e> > >::ExecuteTask(TArray<FBaseGraphTask *,TSizedDefaultAllocator<32> > & NewTasks, ENamedThreads::Type CurrentThread) Line 849 C++ Symbols loaded.
[Inline Frame] UE4Editor-Core.dll!FBaseGraphTask::Execute(TArray<FBaseGraphTask *,TSizedDefaultAllocator<32> > & CurrentThread, ENamedThreads::Type) Line 516 C++ Symbols loaded.
UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread(int QueueIndex, bool bAllowStall) Line 692 C++ Symbols loaded.
UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit(int QueueIndex) Line 587 C++ Symbols loaded.
UE4Editor-RenderCore.dll!RenderingThreadMain(FEvent * TaskGraphBoundSyncEvent) Line 341 C++ Symbols loaded.
UE4Editor-RenderCore.dll!FRenderingThread::Run() Line 492 C++ Symbols loaded.
UE4Editor-Core.dll!FRunnableThreadWin::Run() Line 86 C++ Symbols loaded.
UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() Line 27 C++ Symbols loaded.
kernel32.dll!00007ff9a2c37bd4() Unknown No symbols loaded.
ntdll.dll!00007ff9a2ecce51() Unknown No symbols loaded.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-93106 in the post.

2
Login to Vote

Fixed
ComponentUE - Graphics Features - Lumen
Affects Versions4.25
Target Fix4.25.2
Fix Commit13847809
Main Commit14151001
Release Commit13847809
CreatedMay 13, 2020
ResolvedJul 13, 2020
UpdatedSep 19, 2021
View Jira Issue