MetaHuman with VR settings crashes edtior with DepthStencilRenderTarget.DepthStencilTarget->GetNumSamples() == NumSamples

I made a project with UE5.0.3, imported my MetaHuman character from quixel bridge and set up the character so that I can use it with third person template blueprint. It worked fine, so I imported VR template with its rendering settings. Then, the editor crashed with ‘GPU Crashed or D3D Device Removed’. It crahes some time after I open the project, even if not in PIE.

I let the editor crash with a command line argument ‘-gpucrashdebugging’ and the log says DepthStencilRenderTarget.DepthStencilTarget->GetNumSamples() == NumSamples.
I searched for the error and The only thing I could find is that UE 4.25 preview fixed the crash with that error in forward rendering. So I guess it is about forward rendering but I am not sure if it is a bug heppening again with MetaHuman or I messed up some settings.

Here are the crash log and rendering settings. Note that after I imported the rendering settings from VR template, MetaHuman made some changes to it.
crash log (116.9 KB)
redering settings(DefaultEngine.ini) (6.0 KB)

2 Likes

submitted a bug report. Case # 00505209

Ok. This issue occurs only with UE5.0. Works fine in UE5.1

1 Like

I am using MetaHumans and VR in a project built with UE 5.3.2 source code.
When I run the project as ‘Play in standalone’, I get the same error log. The interesting thing is that it doesn’t crash, so it’s playable.

[2024.03.04-06.18.39:599][ 3]LogStats: FPlatformStackWalk::StackWalkAndDump - 0.457 s
[2024.03.04-06.18.39:601][ 3]LogOutputDevice: Error: === Handled ensure: ===
[2024.03.04-06.18.39:602][ 3]LogOutputDevice: Error:
[2024.03.04-06.18.39:602][ 3]LogOutputDevice: Error: Ensure condition failed: DepthStencilRenderTarget.DepthStencilTarget->GetNumSamples() == NumSamples [File:D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\RHI\Private\RHI.cpp] [Line: 1606]
[2024.03.04-06.18.39:603][ 3]LogOutputDevice: Error:
[2024.03.04-06.18.39:604][ 3]LogOutputDevice: Error: Stack:
[2024.03.04-06.18.39:604][ 3]LogOutputDevice: Error: [Callstack] 0x00007ffa624b9126 UnrealEditor-RHI.dll!FRHIRenderPassInfo::Validate() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\RHI\Private\RHI.cpp:1606]
[2024.03.04-06.18.39:606][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9ec12a5ac UnrealEditor-RenderCore.dll!FRDGBuilder::ExecutePassPrologue() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:2822]
[2024.03.04-06.18.39:607][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9ec128fc7 UnrealEditor-RenderCore.dll!FRDGBuilder::ExecutePass() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:2911]
[2024.03.04-06.18.39:607][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9ec0efd02 UnrealEditor-RenderCore.dll!FRDGBuilder::DispatchParallelExecute'::13’::<lambda_1>::operator()() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\RenderCore\Private\RenderGraphBuilder.cpp:2729]
[2024.03.04-06.18.39:608][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9ec15f477 UnrealEditor-RenderCore.dll!UE::Tasks::Private::FTaskBase::TryExecuteTask() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:436]
[2024.03.04-06.18.39:609][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9ec106ab4 UnrealEditor-RenderCore.dll!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask * __cdecl(bool),48>::TTaskDelegateImpl<LowLevelTasks::FTask::Init<UE::Tasks::Private::FTaskBase::Init’::2'::<lambda_1> >'::11’::<lambda_1>,0>::CallAndMove() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Public\Async\Fundamental\TaskDelegate.h:171]
[2024.03.04-06.18.39:612][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff98211be05 UnrealEditor-Core.dll!LowLevelTasks::FTask::ExecuteTask() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Public\Async\Fundamental\Task.h:627]
[2024.03.04-06.18.39:613][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff98211bbac UnrealEditor-Core.dll!LowLevelTasks::FScheduler::ExecuteTask() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:150]
[2024.03.04-06.18.39:615][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9820f8a42 UnrealEditor-Core.dll!LowLevelTasks::FScheduler::TryExecuteTaskFrom<LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue,&LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue::DequeueGlobal,0>() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:350]
[2024.03.04-06.18.39:616][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff982144ff2 UnrealEditor-Core.dll!LowLevelTasks::FScheduler::WorkerMain() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:378]
[2024.03.04-06.18.39:617][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff98210a2f0 UnrealEditor-Core.dll!UE::Core::Private::Function::TFunctionRefCaller<LowLevelTasks::FScheduler::CreateWorker'::2’::<lambda_1>,void __cdecl(void)>::Call() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Public\Templates\Function.h:480]
[2024.03.04-06.18.39:618][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff9822ee9d3 UnrealEditor-Core.dll!FThreadImpl::Run() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Private\HAL\Thread.cpp:69]
[2024.03.04-06.18.39:619][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff98272b102 UnrealEditor-Core.dll!FRunnableThreadWin::Run() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]
[2024.03.04-06.18.39:620][ 3]LogOutputDevice: Error: [Callstack] 0x00007ff98271eca7 UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() [D:\UE_SourceCode\UnrealEngine-5.3.2-release\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:79]
[2024.03.04-06.18.39:628][ 3]LogOutputDevice: Error: [Callstack] 0x00007ffa8ff77344 KERNEL32.DLL!UnknownFunction
[2024.03.04-06.18.39:633][ 3]LogOutputDevice: Error: [Callstack] 0x00007ffa91b826b1 ntdll.dll!UnknownFunction
[2024.03.04-06.18.39:637][ 3]LogOutputDevice: Error:
[2024.03.04-06.18.39:667][ 3]LogStats: SubmitErrorReport - 0.000 s
[2024.03.04-06.18.41:577][ 3]LogTurnkeySupport: Completed device detection: Code = 0
[2024.03.04-06.18.43:430][ 58]LogTurnkeySupport: Turnkey Device: Win64@GXPLATFORM-KSM: (Name=GXPLATFORM-KSM, Type=Computer, Status=Valid, MinAllowed=10.0.18362.0, MaxAllowed=, Current=10.0.19045.0, Flags=“Device_InstallSoftwareValid”)
[2024.03.04-06.18.44:861][110]LogRHI: Error: Breadcrumbs ‘RHIThread’
Context 1/2
00 Scene
01 Scene
02 CaptureConvolveSkyEnvMap
03 RenderCloud StartFace=0 EndFace=6
04 Translucency
05 View0

I’d like to get rid of this error, but there’s very little information out there, so I’m replying to see if anyone has any new relevant information!

Hello seungmki, i have the same error message than you. I have opened a thread about the problem 4 days ago. And SupportiveEntity is trying to reproduce the bug.
Can you check my thread if you can add some information ?
Or perhaps you can reproduce the bug ?

1 Like

Hi! Thank you so much for opening the thread. Unfortunately, I’m currently working on other things in a hurry, so I’m not able to take any new steps to improve the bug yet…
I’ll be sure to share as soon as I get any new information or workarounds :smiling_face_with_tear: . Thank you for your interest and kindness!