Description

Setting the default RHI for Windows to DX12 and enabling Forward Shading results in a crash when adding a texture sample parameter to a material.

Found in 4.22 CL# 5660361 and 4.23 CL# 6074473

Working as expected in 4.20 CL# 4369336 and 4.21 CL# 4753647

Steps to Reproduce
  1. Open attached project
  2. Open the material and add a "TextureSampleParameter2D" node

Results:
The editor will crash 

Expected:
The TextureSampleParameter2D node would be added to the material graph

Callstack
Assertion failed: CurrentGPUVirtualAddress != 0 [File:D:/JeremyMain/Engine/Source/Runtime/D3D12RHI/Private/D3D12DescriptorCache.cpp] [Line: 752]

UE4Editor_Core!FWindowsErrorOutputDevice::Serialize() [d:\jeremymain\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:79]
UE4Editor_Core!FOutputDevice::LogfImpl() [d:\jeremymain\engine\source\runtime\core\private\misc\outputdevice.cpp:71]
UE4Editor_Core!FDebug::AssertFailed() [d:\jeremymain\engine\source\runtime\core\private\misc\assertionmacros.cpp:446]
UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [d:\jeremymain\engine\source\runtime\core\private\misc\assertionmacros.cpp:424]
UE4Editor_D3D12RHI!FD3D12DescriptorCache::SetConstantBuffers<3>() [d:\jeremymain\engine\source\runtime\d3d12rhi\private\d3d12descriptorcache.cpp:752]
UE4Editor_D3D12RHI!FD3D12StateCacheBase::ApplyState<0>() [d:\jeremymain\engine\source\runtime\d3d12rhi\private\d3d12statecache.cpp:638]
UE4Editor_D3D12RHI!FD3D12CommandContext::RHIDrawPrimitive() [d:\jeremymain\engine\source\runtime\d3d12rhi\private\d3d12commands.cpp:1437]
UE4Editor_RHI!FRHICommandListExecutor::ExecuteInner_DoExecute() [d:\jeremymain\engine\source\runtime\rhi\private\rhicommandlist.cpp:328]
UE4Editor_RHI!FExecuteRHIThreadTask::DoTask() [d:\jeremymain\engine\source\runtime\rhi\private\rhicommandlist.cpp:387]
UE4Editor_RHI!TGraphTask<FExecuteRHIThreadTask>::ExecuteTask() [d:\jeremymain\engine\source\runtime\core\public\async\taskgraphinterfaces.h:847]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\jeremymain\engine\source\runtime\core\private\async\taskgraph.cpp:685]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [d:\jeremymain\engine\source\runtime\core\private\async\taskgraph.cpp:582]
UE4Editor_RenderCore!FRHIThread::Run() [d:\jeremymain\engine\source\runtime\rendercore\private\renderingthread.cpp:288]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\jeremymain\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:96]

Have Comments or More Details?

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

5
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.224.23
Target Fix4.23
Fix Commit6548397
Main Commit6944849
Release Commit6955818
CreatedApr 24, 2019
ResolvedJun 5, 2019
UpdatedJul 25, 2019