# Unreal Engine project crashes on startup

**URL:** <https://forums.unrealengine.com/t/unreal-engine-project-crashes-on-startup/1539227>\
**Category:** Blueprint\
**Tags:** crash-on-launch, unreal-engine, crash, question\
**Created:** [December 19, 2023, 10:31pm UTC](https://forums.unrealengine.com/t/unreal-engine-project-crashes-on-startup/1539227 "2023-12-19T22:31:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvius23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arvius23](https://forums.unrealengine.com/u/arvius23)\
**Post date:** [December 19, 2023, 10:31pm UTC](https://forums.unrealengine.com/t/unreal-engine-project-crashes-on-startup/1539227/1 "2023-12-19T22:31:42Z")

</div>

Assertion failed: !HasAnyFlags(RF\_NeedPostLoad) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialInstance.cpp] [Line: 2444]

This message shows up when I try to start my project. I don’t know what’s causing the issue or how to find it.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [December 19, 2023, 10:42pm UTC](https://forums.unrealengine.com/t/unreal-engine-project-crashes-on-startup/1539227/2 "2023-12-19T22:42:47Z")

</div>

> [@arvius23](#):
>
> 2444

Seems your project is crashing while building shaders

```auto
void UMaterialInstance::CacheShadersForResources(EShaderPlatform ShaderPlatform, const TArray<FMaterialResource*>& ResourcesToCache, EMaterialShaderPrecompileMode PrecompileMode, const ITargetPlatform* TargetPlatform)
{
	UMaterial* BaseMaterial = GetMaterial();
#if WITH_EDITOR
	check(!HasAnyFlags(RF_NeedPostLoad));
	check(BaseMaterial!=nullptr && !BaseMaterial->HasAnyFlags(RF_NeedPostLoad));
	UpdateCachedData();
// more code.....

```

> **[UMaterialInstance::CacheShadersForResources](https://docs.unrealengine.com/5.2/en-US/API/Runtime/Engine/Materials/UMaterialInstance/CacheShadersForResources/)**
>
> Caches shader maps for an array of material resources.

```auto
Remarks

Caches shader maps for an array of material resources.

```

Try this solution:

> [@Unreal Editor crashes on launch](https://forums.unrealengine.com/t/unreal-editor-crashes-on-launch/340838/2):
>
> Hey , One of our engineers indicated that it could be a corrupt shader in your Derived Data Cache (DDC). Could you try clearing your DDC? It is located here: C: \ Users \ [USERNAME] \ AppData \ Local \ UnrealEngine \ 4.10 \ DerivedDataCache If that doesn’t help, then we will go from there. -.
