Engine crashes when I press play.

I’m on Windows 10
GPU is a Radeon RX 5500 XT
I’m trying to run a project I cloned, I’m using a fork of Unreal Editor 4.24.3.

The editor crashes as soon as I press play. I’ve tried switching DirectX version, and switching to Vulkan renderer, playing in a separate window or not, same problem occurs.

Any help debugging this kind of crash is appreciated, I honestly don’t know where to begin.

Assertion failed: (StartIndex + IndexCount) * IndexBuffer->GetStride() <= IndexBuffer->GetSize() [File:C:/Fadeout_UE4_Fork/Engine/Source/Runtime/D3D12RHI/Private/D3D12Commands.cpp] [Line: 1459] 
Start 0, Count 432, Type 0, Buffer Size 858, Buffer stride 2


0x00007ffd07e8cf19 KERNELBASE.dll!UnknownFunction []
0x00007ffcb290a7b6 UE4Editor-Core.dll!ReportAssert() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\windows\windowsplatformcrashcontext.cpp:1341]
0x00007ffcb290dc58 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:79]
0x00007ffcb26c2d4d UE4Editor-Core.dll!FOutputDevice::LogfImpl() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\misc\outputdevice.cpp:71]
0x00007ffcb264fdf3 UE4Editor-Core.dll!AssertFailedImplV() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\misc\assertionmacros.cpp:105]
0x00007ffcb2652170 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\misc\assertionmacros.cpp:455]
0x00007ffc609331dd UE4Editor-D3D12RHI.dll!DispatchCheckVerify<void,<lambda_c76b470b3fc33c5c950b61cd2618a01a> >() [c:\fadeout_ue4_fork\engine\source\runtime\core\public\misc\assertionmacros.h:168]
0x00007ffc608a0458 UE4Editor-D3D12RHI.dll!FD3D12CommandContext::RHIDrawIndexedPrimitive() [c:\fadeout_ue4_fork\engine\source\runtime\d3d12rhi\private\d3d12commands.cpp:1458]
0x00007ffce0805001 UE4Editor-RHI.dll!FRHICommandDrawIndexedPrimitive::Execute() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\public\rhicommandlistcommandexecutes.inl:242]
0x00007ffc7ec70e54 UE4Editor-Renderer.dll!FRHICommand<FRHICommandDrawIndexedPrimitive,FRHICommandDrawIndexedPrimitiveString979>::ExecuteAndDestruct() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\public\rhicommandlist.h:726]
0x00007ffce080eff0 UE4Editor-RHI.dll!FRHICommandListExecutor::ExecuteInner_DoExecute() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\private\rhicommandlist.cpp:351]
0x00007ffce080eacf UE4Editor-RHI.dll!FRHICommandListExecutor::ExecuteInner() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\private\rhicommandlist.cpp:622]
0x00007ffce080f672 UE4Editor-RHI.dll!FRHICommandListExecutor::ExecuteList() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\private\rhicommandlist.cpp:645]
0x00007ffce0806deb UE4Editor-RHI.dll!FRHICommandWaitForAndSubmitSubList::Execute() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\private\rhicommandlist.cpp:1078]
0x00007ffce080d010 UE4Editor-RHI.dll!FRHICommand<FRHICommandWaitForAndSubmitSubList,FRHICommandWaitForAndSubmitSubListString1044>::ExecuteAndDestruct() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\public\rhicommandlist.h:726]
0x00007ffce080eff0 UE4Editor-RHI.dll!FRHICommandListExecutor::ExecuteInner_DoExecute() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\private\rhicommandlist.cpp:351]
0x00007ffce07f9c97 UE4Editor-RHI.dll!FExecuteRHIThreadTask::DoTask() [c:\fadeout_ue4_fork\engine\source\runtime\rhi\private\rhicommandlist.cpp:410]
0x00007ffce0810d06 UE4Editor-RHI.dll!TGraphTask<FExecuteRHIThreadTask>::ExecuteTask() [c:\fadeout_ue4_fork\engine\source\runtime\core\public\async\taskgraphinterfaces.h:847]
0x00007ffcb249a042 UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\async\taskgraph.cpp:686]
0x00007ffcb249a3e3 UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\async\taskgraph.cpp:583]
0x00007ffce0d2e1c1 UE4Editor-RenderCore.dll!FRHIThread::Run() [c:\fadeout_ue4_fork\engine\source\runtime\rendercore\private\renderingthread.cpp:289]
0x00007ffcb29132ef UE4Editor-Core.dll!FRunnableThreadWin::Run() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:96]
0x00007ffcb2912f94 UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() [c:\fadeout_ue4_fork\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:53]
0x00007ffd09ab7344 KERNEL32.DLL!UnknownFunction []
0x00007ffd0a6a26b1 ntdll.dll!UnknownFunction []

Crash in runnable thread RHIThread

This looks very much like a driver bug. Check to see whether there are newer drivers available for your graphics card.

Separately, you probably don’t get this same stack trace when you try other grahpics modes – this one is specifically for D3D12.

I should have mentioned, I’ve checked that I have the latest drivers. Next thing would be reinstalling Windows which I’d rather avoid if possible.

I solved this. First I uninstalled my graphics drivers and reinstalled from an installer from AMD. Then I still got crashes, so I went into Project Settings and searched “rhi” and turned off DirectX support, and switched the default to Vulkan. The editor runs fine with Vulkan, so not fixed but I have a workaround.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.