Unreal engine crashing with dx12

Summary

I wanted to install unreal engine 5.4 but when I opened a new blank project it crashed and it kept on doing so for 5 tries it just gives this error:

Assertion failed: uint32(Allocation.BaseIndex + Allocation.Size) <= StructMetaData.GetSize() [File:D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderParameterStruct.cpp] [Line: 276]

0x00007ffc091102e8 UnrealEditor-RenderCore.dll!UnknownFunction
0x00007ffbc7fe3afe UnrealEditor-Renderer.dll!UnknownFunction
0x00007ffbd7b54446 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd7b79579 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd7b7b84b UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd7b53d04 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd7192868 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd7304909 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd718ff25 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbf9b623af UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d38523 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d1ea08 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d4c9a0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d4accd UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d4b2c0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d5f715 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d6de61 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d6d688 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbd63e5ca1 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd6853c57 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbd6858188 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbf992f038 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9950383 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d3185d UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9b6344c UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbd68546e7 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffbf992f038 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9950383 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d730b0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffbf9d51497 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ff60916624b UnrealEditor.exe!UnknownFunction
0x00007ff60915e146 UnrealEditor.exe!UnknownFunction
0x00007ff60915e42a UnrealEditor.exe!UnknownFunction
0x00007ff6091618a4 UnrealEditor.exe!UnknownFunction
0x00007ff6091770c4 UnrealEditor.exe!UnknownFunction
0x00007ff60917a37a UnrealEditor.exe!UnknownFunction
0x00007ffccf26257d KERNEL32.DLL!UnknownFunction

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Other

Steps to Reproduce

Just open a new project

Expected Result

Crash

Observed Result

Crash

Platform(s)

Windows 11

hi @jasapetek ,
A common problem with Windows 11

  1. Go into Project Settings type RHI into the search bar and find the box with Direct X 12
  2. select drop-down and select Directx 11 and make sure SM5 shaders are enabled

Restart project

The Windows Drivers for you graphics are not working properly for some unknown reason
See this on how to change RHI outside Unreal Engine

Render Hardware Interface (RHI) | Epic Developer Community (epicgames.com)

Greetings @jasapetek

Welcome to the Unreal Engine Community Forum. I was going to mention the same things that Jimbo did. However, if that doesn’t resolve the issue, post back here with all of your system specs and I can take a look. I’ll monitor the thread. Thanks!