# UE5.1 DX12 PIE Crash : EXCEPTION\_ILLEGAL\_INSTRUCTION (Solved)

**URL:** <https://forums.unrealengine.com/t/ue5-1-dx12-pie-crash-exception-illegal-instruction-solved/727000>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, crash, editor\
**Created:** [December 13, 2022, 2:57am UTC](https://forums.unrealengine.com/t/ue5-1-dx12-pie-crash-exception-illegal-instruction-solved/727000 "2022-12-13T02:57:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rit](https://forums.unrealengine.com/u/rit)\
**Post date:** [December 13, 2022, 2:57am UTC](https://forums.unrealengine.com/t/ue5-1-dx12-pie-crash-exception-illegal-instruction-solved/727000/1 "2022-12-13T02:57:59Z")

</div>

I recently experienced random GPU crash after upgrading to UE5.1 and change the shader format from D3D11 to D3D12:

`Unhandled Exception: EXCEPTION_ILLEGAL_INSTRUCTION`  
`nvwgf2umx`  
`nvwgf2umx`  
`nvwgf2umx`  
`nvwgf2umx`  
`nvwgf2umx`  
`nvwgf2umx`  
`D3D12Core UnrealEditor_D3D12RHI!FD3D12CommandContext::RHIDispatchComputeShader() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Commands.cpp:127]`  
`UnrealEditor_RenderCore!FRHICommand<FRHICommandDispatchComputeShader,FRHICommandDispatchComputeShaderString>::ExecuteAndDestruct() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h:855]`

The illegal instruction made me suspect it is a driver issue but couldn’t find any relevant info on UE forum.  
Have anyone experience similar issue?

GPU - RTX2080 Super  
GPU Driver - 516.94

---

<div class="post-metadata">

**Author:** ![rit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rit](https://forums.unrealengine.com/u/rit)\
**Post date:** [December 13, 2022, 9:31am UTC](https://forums.unrealengine.com/t/ue5-1-dx12-pie-crash-exception-illegal-instruction-solved/727000/3 "2022-12-13T09:31:35Z")

</div>

Thank you for your reply! 🙂

I’ve already switched from DX11 to DX12 (SM6) the same day I upgraded my project from UE5.0 to UE5.1 - and this crash started to happen after I make the switch to UE5.1

I’ve visited the [thread](https://forums.unrealengine.com/t/gpu-crashed-or-d3d-device-removed-error/649717/12) you mentioned before posting here, and it seems the problem is either :

- Not switch to DX12 or
- MSI afterburner is messing with Unreal Editor

both are not applicable to my case, unfortunately ☹

A similar case I found was on [UnrealSlacker Discord](https://discord.gg/unreal-slackers) channel where the person posted the exact same crash report as mine - he was using DX12 with the latest Nvidia driver, however, no solution was given except suggesting he downgrade from DX12 to DX11 to prevent the crash from happening again.

---

<div class="post-metadata">

**Author:** ![rit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rit](https://forums.unrealengine.com/u/rit)\
**Post date:** [December 16, 2022, 3:10am UTC](https://forums.unrealengine.com/t/ue5-1-dx12-pie-crash-exception-illegal-instruction-solved/727000/4 "2022-12-16T03:10:45Z")

</div>

It seems a clean install of the same driver version: 516.94

solved the issue for me.

Have not experienced PIE GPU crash since the clean install 4 days ago.

I guess there are some leftover files that are not compatible with UE5.1 render API while I was installing Nvidia drivers…weird.

---

<div class="post-metadata">

**Author:** ![vitaliso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vitaliso/32/751630_2.png) [@vitaliso](https://forums.unrealengine.com/u/vitaliso)\
**Post date:** [November 29, 2023, 11:49am UTC](https://forums.unrealengine.com/t/ue5-1-dx12-pie-crash-exception-illegal-instruction-solved/727000/5 "2023-11-29T11:49:36Z")

</div>

Clearing the project cache:  
Try deleting the project cache that Unreal Engine uses for temporary files. These are folders such as “DerivedDataCache”, “Intermediate” and “Saved”. Delete them, or move the folder to another location. When opening the project they will be restored.

In the DefaultEngine.ini settings you need to set the desired value DirectX.

> [/Script/WindowsTargetPlatform.WindowsTargetSettings]  
> DefaultGraphicsRHI=DefaultGraphicsRHI\_DX12
