Description

Regression: Tested in UE5/Release-5.0, no crash occurs so this is a regression

No crash occurs in 5.0, but the rect light's light does not change based on the Source Texture. Rect lights function as expected when the RHI is set to DX12 and DX11.

Steps to Reproduce
  1. In Project Settings, set the Default RHI to Vulkan
  2. Restart the Editor
  3. Add a Rect Light into the scene
  4. Set the Source Texture to any texture

Actual Result: Editor crashes and Crash Reporter appears

Expected Result: The rect light's light has a new texture based on the Source Texture

Callstack
Assertion failed: Layout.AreAllSubresourcesSameLayout() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\VulkanRHI\Private\VulkanBarriers.h] [Line: 184]  
UnrealEditor-VulkanRHI.dll!FVulkanLayoutManager::FindLayoutChecked() [D:\build\++UE5\Sync\Engine\Source\Runtime\VulkanRHI\Private\VulkanBarriers.h:184]
UnrealEditor-VulkanRHI.dll!SetShaderUniformBufferResources<FVulkanPendingComputeState>() [D:\build\++UE5\Sync\Engine\Source\Runtime\VulkanRHI\Private\VulkanCommands.cpp:323]
UnrealEditor-VulkanRHI.dll!FVulkanCommandListContext::RHISetShaderUniformBuffer() [D:\build\++UE5\Sync\Engine\Source\Runtime\VulkanRHI\Private\VulkanCommands.cpp:512]
UnrealEditor-VulkanRHI.dll!FVulkanCommandListContext::ApplyStaticUniformBuffers<TVulkanBaseShader<FRHIComputeShader,5,32> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\VulkanRHI\Private\VulkanPipelineState.cpp:362]
UnrealEditor-RHI.dll!FRHICommand<FRHICommandSetComputePipelineState,FRHICommandSetComputePipelineStateString>::ExecuteAndDestruct() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h:855]
UnrealEditor-RHI.dll!FRHICommandListBase::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:438]
UnrealEditor-RHI.dll!<lambda_f61539dc7261df7ca6f8296f2cb7a9a0>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:646]
UnrealEditor-RHI.dll!TRHILambdaCommand<FRHICommandListImmediate,<lambda_f61539dc7261df7ca6f8296f2cb7a9a0> >::ExecuteAndDestruct() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h:413]
UnrealEditor-RHI.dll!FRHICommandListBase::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:438]
UnrealEditor-RHI.dll!<lambda_d9c5c35f8ce97cb91cdbe1d4918d55a5>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:744]
UnrealEditor-RHI.dll!TGraphTask<TFunctionGraphTaskImpl<void __cdecl(void),0> >::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:1348]
UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:760]
UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:649]
UnrealEditor-RenderCore.dll!FRHIThread::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:332]
UnrealEditor-Core.dll!FRunnableThreadWin::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]
UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:79]
KERNEL32.DLL!UnknownFunction []
ntdll.dll!UnknownFunction []
 

Have Comments or More Details?

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

0
Login to Vote

Cannot Reproduce
ComponentUE - Rendering Architecture - RHI
Affects Versions5.1
Target Fix5.2
Fix Commit23772491
Main Commit23772491
CreatedJan 5, 2023
ResolvedJan 19, 2023
UpdatedJan 19, 2023
View Jira Issue