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

**URL:** <https://forums.unrealengine.com/t/ensure-condition-failed-invalid-layout-3-index-3-type-1/140195>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [March 22, 2020, 11:11am UTC](https://forums.unrealengine.com/t/ensure-condition-failed-invalid-layout-3-index-3-type-1/140195 "2020-03-22T11:11:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c66a0a5c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c66a0a5c1](https://forums.unrealengine.com/u/anonymous_user_c66a0a5c1)\
**Post date:** [March 22, 2020, 11:11am UTC](https://forums.unrealengine.com/t/ensure-condition-failed-invalid-layout-3-index-3-type-1/140195/1 "2020-03-22T11:11:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f2efc6d9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f2efc6d9](https://forums.unrealengine.com/u/anonymous_user_f2efc6d9)\
**Post date:** [April 3, 2020, 8:32pm UTC](https://forums.unrealengine.com/t/ensure-condition-failed-invalid-layout-3-index-3-type-1/140195/2 "2020-04-03T20:32:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ThD\_ManiaC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thd_maniac/32/1194665_2.png) [@ThD\_ManiaC](https://forums.unrealengine.com/u/ThD_ManiaC)\
**Post date:** [May 27, 2020, 10:35am UTC](https://forums.unrealengine.com/t/ensure-condition-failed-invalid-layout-3-index-3-type-1/140195/3 "2020-05-27T10:35:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![meetakshay99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@meetakshay99](https://forums.unrealengine.com/u/meetakshay99)\
**Post date:** [August 3, 2020, 7:36am UTC](https://forums.unrealengine.com/t/ensure-condition-failed-invalid-layout-3-index-3-type-1/140195/4 "2020-08-03T07:36:55Z")

</div>

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