Game crashes at startup after modding

Hello, I’m modding a game doing simple rigged model swaps. I packaged the two model swaps in a single .pak mod file, the first one works great, and the second works only on already loaded models it seems. When I create a new “world”, it crashes on load with the following crash log:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address
d3d11
gamworld_Win64_Shipping!FD3D11DynamicRHI::SetResourcesFromTables<FD3D11PixelShader>() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp:1444]
gamworld_Win64_Shipping!FD3D11DynamicRHI::CommitGraphicsResourceTables() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp:1541]
gamworld_Win64_Shipping!FD3D11DynamicRHI::RHIDrawIndexedPrimitive() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp:1637]
gamworld_Win64_Shipping!FRHICommandDrawIndexedPrimitive::Execute() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\RHI\Public\RHICommandListCommandExecutes.inl:236]
gamworld_Win64_Shipping!FRHICommandListBase::Execute() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:438]
gamworld_Win64_Shipping!<lambda_75ddbfb11cc8a13b3164d115db08cf61>::operator()() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:646]
gamworld_Win64_Shipping!FRHICommandListBase::Execute() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:438]
gamworld_Win64_Shipping!<lambda_2ac0f741d85996a99df8c803ca38ce50>::operator()() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:744]
gamworld_Win64_Shipping!TGraphTask<TFunctionGraphTaskImpl<void __cdecl(void),0> >::ExecuteTask() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:1349]
gamworld_Win64_Shipping!FNamedTaskThread::ProcessTasksUntilQuit() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:648]
gamworld_Win64_Shipping!FRHIThread::Run() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:333]
gamworld_Win64_Shipping!FRunnableThreadWin::Run() [C:\works\gam-UE-EngineSource\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]

I did update my NVIDIA drivers and tried resetting global NVIDIA settings to default.
(I have an NVIDIA GeForce RTX 3060)

Thank you!

Greetings @Kurama0

Welcome to the the Unreal Engine Community Forum! The steps you took were definitely a good start. Have you tried changing it to DirectX 12 and running to see if it still crashes? (Also is this happening in one specific UE version or multiple? Thanks!)

Hello @FrostyJas,
Thank you. This only happens in this specific project in UE 5.1.
How would I go about forcing it to use DirectX 12? I’m not too sure.

Hi @Kurama0

You’d need to swap the RHI. Here’s a great guide on exactly how to do that with UE5. Render Hardware Interface (RHI) | Community tutorial. I hope that helps!