# Starting game now crashes with Assertion failed

**URL:** <https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 26, 2017, 1:19pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906 "2017-07-26T13:19:56Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [July 26, 2017, 1:19pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/1 "2017-07-26T13:19:56Z")

</div>

Starting the game results in a black screen and this crash:

![192671-crash1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/5/42535847553369da73a79fe058e4582ae0ec4d78.jpeg)

This project builds and compiles without errors. This crash does not exist in 4.16.2.

```
=== Critical error: ===
 
Assertion failed: bCustomPropertyListForPostConstructionInitialized [File:H:\UnrealEngine-release\Engine\Source\Runtime\Engine\Private\BlueprintGeneratedClass.cpp] [Line: 563] 
 

KERNELBASE.dll!0x00000000FD5A9E5D
Game.exe!FOutputDeviceWindowsError::Serialize() [h:\unrealengine-release\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:120]
Game.exe!FOutputDevice::Logf__VA() [h:\unrealengine-release\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
Game.exe!FDebug::AssertFailed() [h:\unrealengine-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
Game.exe!UBlueprintGeneratedClass::InitPropertiesFromCustomList() [h:\unrealengine-release\engine\source\runtime\engine\private\blueprintgeneratedclass.cpp:565]
Game.exe!FObjectInitializer::InitProperties() [h:\unrealengine-release\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:3047]
Game.exe!FObjectInitializer::PostConstructInit() [h:\unrealengine-release\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2751]
Game.exe!FObjectInitializer::~FObjectInitializer() [h:\unrealengine-release\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2662]
Game.exe!StaticConstructObject_Internal() [h:\unrealengine-release\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:3120]
Game.exe!FLinkerLoad::CreateExport() [h:\unrealengine-release\engine\source\runtime\coreuobject\private\uobject\linkerload.cpp:3885]
Game.exe!FLinkerLoad::IndexToObject() [h:\unrealengine-release\engine\source\runtime\coreuobject\private\uobject\linkerload.cpp:4225]

```

**Crash log here** [Log file open, 07/26/17 15:07:00LogWindows: LoadLibraryWithSearchPaths failed - Pastebin.com](https://pastebin.com/16cMXr1V)

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [July 27, 2017, 3:17am UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/2 "2017-07-27T03:17:42Z")

</div>

In 4.17 preview-3, this crash only happen if building a dev build, the crash does not exist in a shipping build since shipping builds dosen’t do that assert check(…) or something.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [July 27, 2017, 8:59am UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/3 "2017-07-27T08:59:34Z")

</div>

Hey there,

Are you using any C++ in the project at all? If so, what happens when you try to launch from Visual Studio with the debugger attached?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [July 27, 2017, 4:49pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/4 "2017-07-27T16:49:17Z")

</div>

Hello ,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue on our end?
2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
3. Could you provide screen shots of any settings/blueprints or code that may be involved with this issue?

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [July 27, 2017, 5:40pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/5 "2017-07-27T17:40:48Z")

</div>

I have the project setup for c++ compiling etc, mostly for dedicated server builds, the project has no c++ actors added or anything, its a BP only project. Debugging in VS breaks at the same line (563) inside this function:

```
void UBlueprintGeneratedClass::InitPropertiesFromCustomList(uint8* DataPtr, const uint8* DefaultDataPtr)
{
	FScopeLock SerializeAndPostLoadLock(&SerializeAndPostLoadCritical);
	check(bCustomPropertyListForPostConstructionInitialized); // Something went wrong, probably a race condition

	if (const FCustomPropertyListNode* CustomPropertyList = GetCustomPropertyListForPostConstruction())
	{
		InitPropertiesFromCustomList(CustomPropertyList, this, DataPtr, DefaultDataPtr);
	}
}

```

Im going to look into reproducing this in a new project, the main project is pretty large so not sure I can isolate the issue without any further debug info from VS, it seems pretty much anything could have failed that assert.

---

<div class="post-metadata">

**Author:** ![RicarDog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RicarDog](https://forums.unrealengine.com/u/RicarDog)\
**Post date:** [July 29, 2017, 4:03pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/6 "2017-07-29T16:03:24Z")

</div>

This error is the same I get when trying to load my project in the 4.17 editor, so it might be related:

> **[4.17 Preview: crash on project load](https://forums.unrealengine.com/questions/674027/417-preview-1-crash-on-project-load.html)**
>
> Hello RicarDog, I was unable to reproduce your issue on our end. I have a couple of questions about your issue to help narrow down what you are experiencing. Does your project load if you move the startup map out of your project folder? Does...

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [July 29, 2017, 11:38pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/7 "2017-07-29T23:38:10Z")

</div>

Hmm yeah its the same crash, mine only happen when launching a dev build of the packaged game, but its the same crash for sure.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [July 31, 2017, 5:21pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/8 "2017-07-31T17:21:12Z")

</div>

Additional questions:

1. Are you currently using the FModStudio plugin?
2. If you remove all widgets from the project before upgrading, does the crash still occur?
3. If so, could you provide information on how your widgets are setup?

---

<div class="post-metadata">

**Author:** ![RicarDog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RicarDog](https://forums.unrealengine.com/u/RicarDog)\
**Post date:** [August 1, 2017, 4:17am UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/9 "2017-08-01T04:17:39Z")

</div>

1. Yes, I’m using the FMod plugin.
2. Removing all widgets solves the problem and the project loads successfully.
3. I can send you the project files in a private message if you want.

Thanks.

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [August 1, 2017, 11:32pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/10 "2017-08-01T23:32:10Z")

</div>

1. No, im not using the FMod plugin.

2. Yes, removing all widgets seems to prevent the crash from happening.

3. The widgets are just pretty straight forward widgets, some like the HUD use a BP interface, and some have events that are called from other actors in the game and/or vise versa, but nothing special.

---

<div class="post-metadata">

**Author:** ![eyesiah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eyesiah](https://forums.unrealengine.com/u/eyesiah)\
**Post date:** [August 3, 2017, 9:51am UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/11 "2017-08-03T09:51:24Z")

</div>

Hi all,

epic have confirmed this is a bug:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-47991)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Go up vote there 😃

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [August 3, 2017, 12:14pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/12 "2017-08-03T12:14:42Z")

</div>

Voted. Thank you for notifying!

---

<div class="post-metadata">

**Author:** ![Swift\_MJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swift\_MJ](https://forums.unrealengine.com/u/Swift_MJ)\
**Post date:** [August 17, 2017, 10:43pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/13 "2017-08-17T22:43:38Z")

</div>

I am having this issue in 4.17.1  
I managed to debug this and find which widgets are broken, but is there a way to Fix Broken Widgets?

---

<div class="post-metadata">

**Author:** ![Swift\_MJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swift\_MJ](https://forums.unrealengine.com/u/Swift_MJ)\
**Post date:** [August 17, 2017, 10:44pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/14 "2017-08-17T22:44:55Z")

</div>

I tried duplicating some of the widgets and deleting the old ones which were causing the crash, this fixed some but not all of the widget.

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [August 17, 2017, 11:54pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/15 "2017-08-17T23:54:43Z")

</div>

Not sure… I had a widget that crashed as soon as it hit a “play animation” node in the graph. The ONLY way to stop the engine from crashing was to create a brand new widget BP and copy/paste everything from inside the old widget, into the new one.

No change I made to the old widget, (deleting / re-adding nodes, refreshing, re-saveing etc), made any difference.

Do you have any good method for finding what widgets are broken? Its a bit of a hit n miss for me right now.

---

<div class="post-metadata">

**Author:** ![Swift\_MJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swift\_MJ](https://forums.unrealengine.com/u/Swift_MJ)\
**Post date:** [August 18, 2017, 12:07am UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/16 "2017-08-18T00:07:54Z")

</div>

I went to line 563 in the BlueprintGeneratedClass.cpp where the error was reported, since i have the source version of the engine and put a breakpoint on it, i was then able to step through all the widgets and if they were false they were the broken ones, I actually just commented out that line and was able to package my game and server and run both. This may be a pretty bad way to fix the issue but at least my game runs now!

---

<div class="post-metadata">

**Author:** ![eyesiah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eyesiah](https://forums.unrealengine.com/u/eyesiah)\
**Post date:** [August 18, 2017, 5:53pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/17 "2017-08-18T17:53:01Z")

</div>

In my case, I found that all the widgets had circular references between themselves and my player controller (the PC created the widget, and then i had button clicked handlers in the widget that got the player controller and cast it to the blueprint type that was creating the widget in the first place). I suspected these were the cause, so I removed the circular references, and it fixed the crash.

I replaced that behaviour with an event driven system, so the widget doesn’t reference the player controller any more, but instead uses and event dispatcher which the PC handles.

---

<div class="post-metadata">

**Author:** ![dexkz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dexkz](https://forums.unrealengine.com/u/dexkz)\
**Post date:** [September 7, 2017, 7:57am UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/18 "2017-09-07T07:57:45Z")

</div>

We found a workaround. Event driven loader seems to fix the problem in our case.

---

<div class="post-metadata">

**Author:** ![Kibler88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kibler88](https://forums.unrealengine.com/u/Kibler88)\
**Post date:** [September 8, 2017, 10:21pm UTC](https://forums.unrealengine.com/t/starting-game-now-crashes-with-assertion-failed/397906/19 "2017-09-08T22:21:39Z")

</div>

> **[4.17 Preview: crash on project load](https://forums.unrealengine.com/questions/674027/417-preview-1-crash-on-project-load.html)**
>
> Hello RicarDog, I was unable to reproduce your issue on our end. I have a couple of questions about your issue to help narrow down what you are experiencing. Does your project load if you move the startup map out of your project folder? Does...

They supposedly fixed it in 4.17.2  
The last comment has a link to the fix.
