Description

Ensure happening on both Linux and Windows when using Vulkan RHI. Editor will Crash on Linux however when map TM-Hair is opened.

Not a Regression, TM-Hair and Grooming feature is new to 4.26 and does not exist in prior version of 4.25

Ensure Header:

Error: Ensure condition failed: DepthStencilLayout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL [File:/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp] [Line: 1223]

Included CrashReporter link

Steps to Reproduce
  1. Open QAGame in Vulkan RHI
    • Open editor with added argument -vulkan
  2. Open Map TM-Hair
  3. Check Output Log

RESULT: Ensure will appear in the Output Log. Editor will crash on Linux when map is opened

EXPECTED: Map TM-Hair will open normally without ensure or crash

Callstack

Ensure

=== Handled ensure: ===Ensure condition failed: DepthStencilLayout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL [File:/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp] [Line: 1223]Stack: 
[Callstack] 0x00007fcf9d887be7 libUE4Editor-VulkanRHI.so!FVulkanRenderTargetLayout::FVulkanRenderTargetLayout(FVulkanDevice&, FRHIRenderPassInfo const&, VkImageLayout) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp:1223]
[Callstack] 0x00007fcf9d88615c libUE4Editor-VulkanRHI.so!FVulkanCommandListContext::RHIBeginRenderPass(FRHIRenderPassInfo const&, char16_t const*) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp:751]
[Callstack] 0x00007fd04e96140d libUE4Editor-Engine.so!FRHICommand<FRHICommandBeginRenderPass, FRHICommandBeginRenderPassString1124>::ExecuteAndDestruct(FRHICommandListBase&, FRHICommandListDebugContext&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RHI/Public/RHICommandList.h:760]
[Callstack] 0x00007fd04c5ea0be libUE4Editor-RHI.so!FRHICommandListExecutor::ExecuteInner_DoExecute(FRHICommandListBase&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RHI/Private/RHICommandList.cpp:371]
[Callstack] 0x00007fd04c6677b8 libUE4Editor-RHI.so!FExecuteRHIThreadTask::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RHI/Private/RHICommandList.cpp:426]
[Callstack] 0x00007fd04c666eb5 libUE4Editor-RHI.so!TGraphTask<FExecuteRHIThreadTask>::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:886]
[Callstack] 0x00007fd0517cf66d libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:709]
[Callstack] 0x00007fd0517cde7e libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksUntilQuit(int) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:600]
[Callstack] 0x00007fd04c8137ad libUE4Editor-RenderCore.so!FRHIThread::Run() [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:319]
[Callstack] 0x00007fd05187bfc7 libUE4Editor-Core.so!FRunnableThreadPThread::Run() [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
[Callstack] 0x00007fd0518434d3 libUE4Editor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:185]
[Callstack] 0x00007fd0521bd6db libpthread.so.0!UnknownFunction(0x76da)
[Callstack] 0x00007fd0482c2a3f libc.so.6!clone(+0x3e)

Linux Crash

[2020.10.07-18.03.03:751][852]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000170[2020.10.07-18.03.03:752][852]LogCore: 0x00007fd03e2717cb libUE4Editor-Renderer.so!FSceneRenderer::SetupMeshPass(FViewInfo&, FExclusiveDepthStencil::Type, FViewCommands&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Renderer/Private/SceneRendering.cpp:3120]
0x00007fd03e293cd7 libUE4Editor-Renderer.so!FSceneRenderer::ComputeViewVisibility(FRHICommandListImmediate&, FExclusiveDepthStencil::Type, TArray<FViewCommands, TInlineAllocator<4u, TSizedDefaultAllocator<32> > >&, FGlobalDynamicIndexBuffer&, FGlobalDynamicVertexBuffer&, FGlobalDynamicReadBuffer&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:4051]
0x00007fd03e2533c2 libUE4Editor-Renderer.so!FDeferredShadingSceneRenderer::InitViews(FRHICommandListImmediate&, FExclusiveDepthStencil::Type, FILCUpdatePrimTaskData&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:4292]
0x00007fd03dbe30af libUE4Editor-Renderer.so!FDeferredShadingSceneRenderer::Render(FRHICommandListImmediate&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Renderer/Private/DeferredShadingRenderer.cpp:1423]
0x00007fd03e2b6463 libUE4Editor-Renderer.so!RenderViewFamily_RenderThread(FRHICommandListImmediate&, FSceneRenderer*) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Renderer/Private/SceneRendering.cpp:3575]
0x00007fd03e2b5cc8 libUE4Editor-Renderer.so!TEnqueueUniqueRenderCommandType<FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::FDrawSceneCommandName, FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::$_45>::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RenderCore/Public/RenderingThread.h:183]
0x00007fd03e2b87d0 libUE4Editor-Renderer.so!TGraphTask<TEnqueueUniqueRenderCommandType<FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::FDrawSceneCommandName, FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::$_45> >::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:886]
0x00007fd0517cf66d libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:709]
0x00007fd0517cde7e libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksUntilQuit(int) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:600]
0x00007fd04c7c9f7f libUE4Editor-RenderCore.so!RenderingThreadMain(FEvent*) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:372]
0x00007fd04c814052 libUE4Editor-RenderCore.so!FRenderingThread::Run() [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:526]
0x00007fd05187bfc7 libUE4Editor-Core.so!FRunnableThreadPThread::Run() [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x00007fd0518434d3 libUE4Editor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/media/maxwellneilson/Data/Github/Release-4.26_CL _14433322/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:185]
0x00007fd0521bd6db libpthread.so.0!UnknownFunction(0x76da)
0x00007fd0482c2a3f libc.so.6!clone(+0x3e)[2020.10.07-18.03.03:762][852]LogExit: Executing StaticShutdownAfterError

Have Comments or More Details?

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

3
Login to Vote

Cannot Reproduce
ComponentUE - Rendering Architecture - RHI
Affects Versions4.26
CreatedOct 7, 2020
ResolvedJun 8, 2022
UpdatedJun 9, 2022
View Jira Issue