Description

The Editor will crash if you add more than one vector parameter to a Material Parameter Collection. 

This works as expected in 4.21 CL# 4753647

Found in 4.22 Preview 2 CL# 5035897 and 4.23 CL# 5064136

This is a regression.

Steps to Reproduce
  1. Open the Editor
  2. Create a Material Parameter Collection
  3. Add two vector parameters

Results:
Crash

Expected:
The second vector parameter would be added 

Callstack
Assertion failed: MappedSubresource.RowPitch >= ConstantBufferSize [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11UniformBuffer.cpp] [Line: 238]

UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [d:\build\++ue4\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:418]
UE4Editor_D3D11RHI!UpdateUniformBufferContents() [d:\build\++ue4\sync\engine\source\runtime\windows\d3d11rhi\private\d3d11uniformbuffer.cpp:238]
UE4Editor_D3D11RHI!<lambda_025e74f84eab9f8983e3d7f3ba310c97>::operator()() [d:\build\++ue4\sync\engine\source\runtime\windows\d3d11rhi\private\d3d11uniformbuffer.cpp:314]
UE4Editor_RHI!FRHICommandListExecutor::ExecuteInner_DoExecute() [d:\build\++ue4\sync\engine\source\runtime\rhi\private\rhicommandlist.cpp:325]
UE4Editor_RHI!FRHICommandListExecutor::ExecuteInner() [d:\build\++ue4\sync\engine\source\runtime\rhi\private\rhicommandlist.cpp:592]
UE4Editor_RHI!FRHICommandListExecutor::ExecuteList() [d:\build\++ue4\sync\engine\source\runtime\rhi\private\rhicommandlist.cpp:642]
UE4Editor_RHI!FDynamicRHI::LockVertexBuffer_RenderThread() [d:\build\++ue4\sync\engine\source\runtime\rhi\private\rhicommandlist.cpp:1978]
UE4Editor_SlateRHIRenderer!FSlateRHIRenderingPolicy::UpdateVertexAndIndexBuffers() [d:\build\++ue4\sync\engine\source\runtime\slaterhirenderer\private\slaterhirenderingpolicy.cpp:218]
UE4Editor_SlateRHIRenderer!FSlateRHIRenderer::DrawWindow_RenderThread() [d:\build\++ue4\sync\engine\source\runtime\slaterhirenderer\private\slaterhirenderer.cpp:712]
UE4Editor_SlateRHIRenderer!TGraphTask<TEnqueueUniqueRenderCommandType<`FSlateRHIRenderer::DrawWindows_Private'::`29'::SlateDrawWindowsCommandName,<lambda_076ca5c89cb03ad0d8e3fd21b4a903a2> > >::ExecuteTask() [d:\build\++ue4\sync\engine\source\runtime\core\public\async\taskgraphinterfaces.h:842]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\build\++ue4\sync\engine\source\runtime\core\private\async\taskgraph.cpp:686]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [d:\build\++ue4\sync\engine\source\runtime\core\private\async\taskgraph.cpp:582]
UE4Editor_RenderCore!RenderingThreadMain() [d:\build\++ue4\sync\engine\source\runtime\rendercore\private\renderingthread.cpp:333]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\build\++ue4\sync\engine\source\runtime\rendercore\private\renderingthread.cpp:464]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\build\++ue4\sync\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-70413 in the post.

3
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.224.23
Target Fix4.22
Fix Commit5305631
Main Commit5314612
Release Commit5305631
CreatedFeb 21, 2019
ResolvedMar 5, 2019
UpdatedMar 26, 2019
View Jira Issue