Description

This is a regression.

Tested in:
//UE5/Release-5.0 CL 20979098 - Crash did not occur.

Crash occurs when disabling Show > Static Mesh in the Viewport while using Vulkan.

Steps to Reproduce
  1. Launch the editor with the -vulkan command
  2. Create a Third Person Template
  3. In the Viewport select Show > Static Meshes

Expected Results:
The Static Meshes in the scene are hidden.

Actual Results:
The Editor crashes with an assertion

Callstack
Assertion failed: WriteDescriptors[DescriptorIndex].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER || WriteDescriptors[DescriptorIndex].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC [File:Runtime/VulkanRHI/Private/VulkanDescriptorSets.h] [Line: 1143] DescriptorType mismatch at index 1: called WriteBuffer<VK_DESCRIPTOR_TYPE_STORAGE_BUFFER> and was expecting VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER.

libUnrealEditor-VulkanRHI!7fd5d4033000  + 1bb4dc
libUnrealEditor-VulkanRHI!7fd5d4033000  + 18493e
libUnrealEditor-RHI!FRHICommandSetShaderResourceViewParameter<FRHIComputeShader>::Execute(FRHICommandListBase&) [RHICommandListCommandExecutes.inl:188]
libUnrealEditor-Engine!FRHICommand<FRHICommandSetShaderResourceViewParameter<FRHIComputeShader>, FRHICommandSetShaderResourceViewParameterString>::ExecuteAndDestruct(FRHICommandListBase&, FRHICommandListDebugContext&) [RHICommandList.h:848]
libUnrealEditor-RHI!FRHICommandListBase::Execute(TRHIPipelineArray<IRHIComputeContext*>&) [RHICommandList.cpp:427]
libUnrealEditor-RHI!TRHILambdaCommand<FRHICommandListImmediate, FRHICommandListImmediate::QueueAsyncCommandListSubmit(TArrayView<FRHICommandListImmediate::FQueuedCommandList, int>, FRHICommandListImmediate::ETranslatePriority, int) [RHICommandList.h:413]
libUnrealEditor-RHI!FRHICommandListBase::Execute(TRHIPipelineArray<IRHIComputeContext*>&) [RHICommandList.cpp:427]
libUnrealEditor-RHI!UE::Core::Private::Function::TFunctionRefCaller<FRHICommandListImmediate::ExecuteAndReset() [Function.h:474]
libUnrealEditor-Core!TGraphTask<TFunctionGraphTaskImpl<void () [TaskGraphInterfaces.h:1349]
libUnrealEditor-Core!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [TaskGraph.cpp:760]
libUnrealEditor-Core!FNamedTaskThread::ProcessTasksUntilQuit(int) [TaskGraph.cpp:649]
libUnrealEditor-Core!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn(ENamedThreads::Type) [TaskGraph.cpp:2150]
libUnrealEditor-RenderCore!7fd76207d000  + 2d0d43
libUnrealEditor-Core!FRunnableThreadPThread::Run() [PThreadRunnableThread.cpp:25]
libUnrealEditor-Core!FRunnableThreadPThread::_ThreadProc(void*) [PThreadRunnableThread.h:186]
libpthread.so!7fd76969b000  + 8609
libc.so!7fd75dbde000  + 11f133

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Rendering Architecture - RHI
Affects Versions5.1
Target Fix5.1
Fix Commit22728245
Main Commit22728245
Release Commit22726500
CreatedOct 20, 2022
ResolvedOct 24, 2022
UpdatedNov 27, 2022
View Jira Issue