Ensure Condition Failed, Invalid Layout 3, Index 3, Type 1

I have a problem while opening a new project. Something with the Vulkan driver doesn’t seem to work, this is the error message I get in my terminal:

[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: === Handled ensure: ===
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error:
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: Ensure condition failed: Layout == VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR || Layout == VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL || Layout == VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL || Layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL || Layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL || Layout == VK_IMAGE_LAYOUT_GENERAL [File:Runtime/VulkanRHI/Private/VulkanDescriptorSets.h] [Line: 1103]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: Invalid Layout 3, Index 3, Type 1
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error:
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: Stack:
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc009e9f050 libUE4Editor-VulkanRHI.so!bool FVulkanDescriptorSetWriter::WriteTextureView<(VkDescriptorType)2>(unsigned int, FVulkanTextureView const&, VkImageLayout) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanDescriptorSets.h:1098]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc009e9fc0e libUE4Editor-VulkanRHI.so!void SetShaderUniformBufferResources<FVulkanPendingGfxState>(FVulkanCommandListContext*, FVulkanPendingGfxState*, FVulkanShader const*, TArray<FVulkanShaderHeader::FGlobalInfo, TSizedDefaultAllocator<32> > const&, TArray<TEnumAsByte<VkDescriptorType>, TSizedDefaultAllocator<32> > const&, FVulkanShaderHeader::FUniformBufferInfo const&, FVulkanUniformBuffer const*, TArray<FDescriptorSetRemappingInfo::FRemappingInfo, TSizedDefaultAllocator<32> > const&) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanCommands.cpp:527]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc009e9a870 libUE4Editor-VulkanRHI.so!FVulkanCommandListContext::SetShaderUniformBuffer(ShaderStage::EStage, FVulkanUniformBuffer const*, int, FVulkanShader const*) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanCommands.cpp:636]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc03602af56 libUE4Editor-Renderer.so!FRHICommand<FRHICommandSetShaderUniformBuffer<FRHIPixelShader, (ECmdList)0>, FRHICommandSetShaderUniformBufferString>::ExecuteAndDestruct(FRHICommandListBase&, FRHICommandListDebugContext&) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/RHI/Public/RHICommandList.h:726]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc04319737e libUE4Editor-RHI.so!FRHICommandListExecutor::ExecuteInner_DoExecute(FRHICommandListBase&) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/RHI/Private/RHICommandList.cpp:356]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc0432036ab libUE4Editor-RHI.so!FExecuteRHIThreadTask::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/RHI/Private/RHICommandList.cpp:409]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc043202d84 libUE4Editor-RHI.so!TGraphTask<FExecuteRHIThreadTask>::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:847]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc047c5b84b libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:686]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc047c5a563 libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksUntilQuit(int) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:582]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc043350b96 libUE4Editor-RenderCore.so!FRHIThread::Run() [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:288]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc047cf1e97 libUE4Editor-Core.so!FRunnableThreadPThread::Run() [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
[2020.03.22-10.25.25:487] 0]LogOutputDevice: Error: [Callstack] 0x00007fc047cb9730 libUE4Editor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/mnt/unreal engine/UnrealEngine-release/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:177]
[2020.03.22-10.25.25:488] 0]LogOutputDevice: Error: [Callstack] 0x00007fc0487b76ba libpthread.so.0!UnknownFunction(0x76b9)
[2020.03.22-10.25.25:488] 0]LogOutputDevice: Error: [Callstack] 0x00007fc03f2f741d libc.so.6!clone(+0x6c)

I had problems with the Vulkan driver before, which was fixed by re-installing my drivers, but I can’t figure this one out.
Thanks in advance.

I’m having the same error but when trying the application on the device, did you solve?

Got the same message everytime i use “Draw Material to Rendertarget” in bp. in the material i use a texture-parameter which is also a render-target. turned-out that the error accours when before using “Clear Rendertarget” on the Texture-Parameter-Rendertarget.

Solved by using Material which simply applies the Clear-Color instead of using the Clear-Node.

I too am having the same error. Any suggesstions on how to fix it?