# Project Crashes on Open. Exception thrown at (UE4Editor-Landscape.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location

**URL:** <https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456>\
**Category:** Getting Started & Setup\
**Tags:** crash-on-launch, crash-editor, unreal-engine, crash, crash-report, question\
**Created:** [September 16, 2020, 8:26pm UTC](https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456 "2020-09-16T20:26:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FunAndFriendly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunAndFriendly](https://forums.unrealengine.com/u/FunAndFriendly)\
**Post date:** [September 16, 2020, 8:26pm UTC](https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456/1 "2020-09-16T20:26:38Z")

</div>

Similar to: [https://answers.unrealengine.com/questions/185777/critical-error-landscape.html](https://answers.unrealengine.com/questions/185777/critical-error-landscape.html)

Hi, I’ve been using splines in a project for some time with a track based on the Kart Racer Template.

I just started creating a blueprint function using spline functions like this one: [https://forums.unrealengine.com/filedata/fetch?id=1122235&d=1485739091](https://forums.unrealengine.com/filedata/fetch?id=1122235&d=1485739091)

I created a new PlayerState C++ class, closed UE, and cannot reopen my project.

```
// D:\Engine\Source\Runtime\Landscape\Private\Materials\MaterialExpressionLandscapeVisibilityMask.cpp
UObject* UMaterialExpressionLandscapeVisibilityMask::GetReferencedTexture() const
{
    // Exception thrown at 0x00007FFA333868DA (UE4Editor-Landscape.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x0000000000000970. occurred
	return GEngine->WeightMapPlaceholderTexture;  
}

```

Suggestions? Why is GEngine invalid/null?

---

<div class="post-metadata">

**Author:** ![FunAndFriendly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunAndFriendly](https://forums.unrealengine.com/u/FunAndFriendly)\
**Post date:** [September 16, 2020, 9:16pm UTC](https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456/2 "2020-09-16T21:16:06Z")

</div>

This is being triggered by this line in my GameMode constructor:

```
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/_Racer/BP_RacerCharacter"));

```

That BP exists, compiles, and has a SkeletalMesh. Commenting this line out works around the crash. I’m working with it to see if I can learn more.

UPDATE: I fought this for a minute, but it’s trivial to change the pawn in a blueprint so I did that instead.

---

<div class="post-metadata">

**Author:** ![Ngenion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ngenion](https://forums.unrealengine.com/u/Ngenion)\
**Post date:** [February 28, 2023, 1:44pm UTC](https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456/3 "2023-02-28T13:44:36Z")

</div>

Hi i think i have same problem.  
Here i posted full answer.

> [@UnrealEditor.exe (nvwgf2umx.dll) 0xC0000005 100% reproduced crash](https://forums.unrealengine.com/t/unrealeditor-exe-nvwgf2umx-dll-0xc0000005-100-reproduced-crash/764615):
>
> Hello, I have crash. Version UE5.1. No external plugins. Cpp project. MSVS 2022 for code. I do my things at my main project. And once, after i close game window, VS give me error message: “An exception was thrown at 0x00007FF932B37BB7 (nvwgf2umx.dll) in UnrealEditor.exe: 0xC0000005: access violation while reading at address 0x000001F4F2580010.” After it i have 100% repitable this error in this project (after closing game window). I try create new project (third person), without any new code…

---

<div class="post-metadata">

**Author:** ![Louspirit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/louspirit/32/1223530_2.png) [@Louspirit](https://forums.unrealengine.com/u/Louspirit)\
**Post date:** [March 25, 2024, 3:43pm UTC](https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456/4 "2024-03-25T15:43:50Z")

</div>

For me, deleting the _Config_ folder worked

---

<div class="post-metadata">

**Author:** ![Zakkerheim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zakkerheim](https://forums.unrealengine.com/u/Zakkerheim)\
**Post date:** [May 24, 2024, 6:13pm UTC](https://forums.unrealengine.com/t/project-crashes-on-open-exception-thrown-at-ue4editor-landscape-dll-in-ue4editor-exe-0xc0000005-access-violation-reading-location/471456/5 "2024-05-24T18:13:08Z")

</div>

In my case, I disabled this line `+D3D12TargetedShaderFormats=PCD3D_SM6` in the DefaultEngine.ini file, so the project can load with Shared Model 6 disabled. That made it for me
