# Compilation button causes editor to crash but compilation works in Visual Studio. Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x00000019

**URL:** <https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387>\
**Category:** Pipeline & Plugins\
**Tags:** crash-editor, unreal-engine, Visual-Studio, question, compile-editor, compilation-log\
**Created:** [August 8, 2020, 4:40am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387 "2020-08-08T04:40:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TypeFinalMagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TypeFinalMagic](https://forums.unrealengine.com/u/TypeFinalMagic)\
**Post date:** [August 8, 2020, 4:40am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/1 "2020-08-08T04:40:54Z")

</div>

I am having an issue that is bugging me. I recently switched a project from 4.23 to 4.25 and that had worked fine and then later switched from Visual Studio 2017 to Visual Studio 2019 and now I am running into an issue where if I try to compile with the compile button in the editor then the editor will crash and give the crash message (see below). Compiling directly in Visual Studio seems to work just fine but trying to compile in the editor will crash it. I have tried to find this error but I’m not sure what is going on.

**Crash message**

Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x00000019

UE4Editor\_CoreUObject

UE4Editor\_CoreUObject

UE4Editor\_CoreUObject

UE4Editor\_CoreUObject

UE4Editor\_CoreUObject

UE4Editor\_HotReload

UE4Editor\_HotReload

UE4Editor\_Core

UE4Editor\_Core

UE4Editor\_Core

kernel32

ntdll

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_003d23a7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_003d23a7](https://forums.unrealengine.com/u/anonymous_user_003d23a7)\
**Post date:** [August 8, 2020, 10:21am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/2 "2020-08-08T10:21:10Z")

</div>

Probably accessing a nullpointer somewhere during construction of an object or at BeginPlay.

Have you tried launching the editor from Visual Studio (select “DebugGame Editor” or “Development Editor” in the Visual Studio solution configuration dropdown list. This should be to the left of the green “Run” button in the Visual Studio control bar)

 ![309534-solutionconfig.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/3/b23bb3a94da3606573f8f4f4b687609d58307a01.png)

You might be able to see where the exception is fired when you the editor from Visual Studio.

---

<div class="post-metadata">

**Author:** ![TypeFinalMagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TypeFinalMagic](https://forums.unrealengine.com/u/TypeFinalMagic)\
**Post date:** [August 9, 2020, 12:26am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/3 "2020-08-09T00:26:06Z")

</div>

I just find it weird that this is happening now when everything was working fine before. Not sure what changing the Visual Studio version would affect this. I ran the editor from visual studio and tried to compile from the editor again and I got this exception. I can also provide the log file since I’m not sure what part might explain what is happening.

 ![309574-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/8/56851a400c3d597e970d2252183335db3630b7d7.png)

---

<div class="post-metadata">

**Author:** ![TypeFinalMagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TypeFinalMagic](https://forums.unrealengine.com/u/TypeFinalMagic)\
**Post date:** [August 10, 2020, 4:52am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/4 "2020-08-10T04:52:17Z")

</div>

I looked up the CoreUObject error from the previous comment and installed the “Editor Symbols for Debugging” options under the engine options. But now I am getting a somewhat different crash error

 ![309696-capture2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/b/52bcf0e45fb75589068d3f53f2470beee02a7641.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_003d23a7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_003d23a7](https://forums.unrealengine.com/u/anonymous_user_003d23a7)\
**Post date:** [August 10, 2020, 7:30am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/5 "2020-08-10T07:30:12Z")

</div>

Can you show us the “Output” window of VisualStudio in that very case please.  
There has to be more info on what is causing the exception

greet

---

<div class="post-metadata">

**Author:** ![TypeFinalMagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TypeFinalMagic](https://forums.unrealengine.com/u/TypeFinalMagic)\
**Post date:** [August 11, 2020, 4:31am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/6 "2020-08-11T04:31:17Z")

</div>

After running the editor through Visual Studio I get the following output shown in the screenshot. I have also attached a text file with the output messages from where I believe the hot reload (pressing the compile button in the editor) started to where it stopped and threw the exception.

[link text][1]

 ![309848-capture3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/7/af7138bd2772a14aecab0ae195db137cee21b11b.png)

---

<div class="post-metadata">

**Author:** ![TypeFinalMagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TypeFinalMagic](https://forums.unrealengine.com/u/TypeFinalMagic)\
**Post date:** [August 13, 2020, 4:49pm UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/7 "2020-08-13T16:49:08Z")

</div>

Is there any recommendations to find what is accessing the nullpointer?

---

<div class="post-metadata">

**Author:** ![TypeFinalMagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TypeFinalMagic](https://forums.unrealengine.com/u/TypeFinalMagic)\
**Post date:** [August 16, 2020, 3:41am UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/8 "2020-08-16T03:41:57Z")

</div>

Any suggestions to find the source of the null pointer?

---

<div class="post-metadata">

**Author:** ![Games\_By\_Saul](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/games_by_saul/32/88719_2.png) [@Games\_By\_Saul](https://forums.unrealengine.com/u/Games_By_Saul)\
**Post date:** [July 9, 2021, 5:31pm UTC](https://forums.unrealengine.com/t/compilation-button-causes-editor-to-crash-but-compilation-works-in-visual-studio-unhandled-exception-exception-access-violation-reading-address-0x00000019/469387/9 "2021-07-09T17:31:22Z")

</div>

It’s been a while! Just curious if you ever found a way to find the source of the null pointer?
