# Gameplay Tag Container causes crash in packaged build

**URL:** <https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896>\
**Category:** C++\
**Tags:** gameplay-tags, unreal-engine, crash, bug-report, editor, CPP, question\
**Created:** [November 6, 2017, 6:00pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896 "2017-11-06T18:00:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlainBane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainBane](https://forums.unrealengine.com/u/PlainBane)\
**Post date:** [November 6, 2017, 6:00pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/1 "2017-11-06T18:00:13Z")

</div>

Hi, I’m experiencing crashes while using Gameplay Tags.

I have a c++ base class

```
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "GameplayTagContainer.h"
#include "BacteriumCardBase.generated.h"

UCLASS(Blueprintable, AutoExpandCategories = "Bacterium Card")
class BACTERIUM_API UBacteriumCardBase : public UObject
{
	GENERATED_BODY()

public:

	UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Bacterium Ability")
		FGameplayTagContainer CardTag;

}; 

```

Then, I have a blueprint based on this class. If I add any tags to the blueprint class in the editor, it crashes with error message _Assertion failed: RecursionNotAllowed.Increment() == 1 [File:D:\Build++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp] [Line: 4260]_

Crash doesn’t happen if tag field in the blueprint is left empty. Occurring only in packaged builds, disabling Event driven loader doesn’t seem to matter.  
**Launcher build. Tested in Windows\_64, Android Api 25.**

\*\*Log output: \*\*  
Paste Bin

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 6, 2017, 8:42pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/2 "2017-11-06T20:42:18Z")

</div>

Hello MrGreek,

I tried reproducing this by copying the code you provided but I’m not getting any sort of crash. Would it be possible for you to provide a small reproduction project to reproduce this crash?

---

<div class="post-metadata">

**Author:** ![PlainBane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainBane](https://forums.unrealengine.com/u/PlainBane)\
**Post date:** [November 7, 2017, 10:55am UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/3 "2017-11-07T10:55:31Z")

</div>

Hello Matthew,

After some more testing, I managed to narrow down the cause of the issue. It seems to be causing crash if instances of base c++ class are added to a TMap list in a singleton class and accessed from other classes in the project.  
I managed to replicate this issue in a clean test project [Download link](https://drive.google.com/file/d/1lgHPuB8gr1NBZ45himHJLtqe97Kanu8i/view?usp=sharing).

---

<div class="post-metadata">

**Author:** ![PlainBane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainBane](https://forums.unrealengine.com/u/PlainBane)\
**Post date:** [November 10, 2017, 8:23pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/4 "2017-11-10T20:23:02Z")

</div>

Bump…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 13, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/5 "2017-11-13T16:31:27Z")

</div>

Bumps may get you a later response, as things are usually focused on when they haven’t been responded to in a longer amount of time. I’ll be taking a look at the issue in due time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 13, 2017, 6:14pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/6 "2017-11-13T18:14:44Z")

</div>

You mentioned in your original post that disabling Event Driven Loader doesn’t seem to change anything but, from testing the provided project, I only experience this crash when Event Driven Loader is enabled. Disabling Event Driven Loader isn’t a viable solution, but it could work as a workaround in the meantime. I’m going to test our latest internal build and if it still occurs, I’ll enter a bug report. I’ll keep you updated here.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 15, 2017, 10:00pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/7 "2017-12-15T22:00:33Z")

</div>

Hello MrGreek,

I apologize for the delay on this but I’ve entered a bug for the issue. As mentioned before, disabling EDL would be the best workaround for now. You can find the bug report here: [UE-53538](https://issues.unrealengine.com/issue/UE-53538)

Have a nice day!

---

<div class="post-metadata">

**Author:** ![Ben\_Zeigler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ben\_Zeigler](https://forums.unrealengine.com/u/Ben_Zeigler)\
**Post date:** [January 2, 2018, 5:12pm UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/8 "2018-01-02T17:12:46Z")

</div>

This will be fixed in a future update. I’m not sure how common the crash actually will be, but the fix is pretty simple if you want to do it yourself. Move the call to UGameplayTagsManager::Get() in UEngine::InitializeObjectReferences from the bottom of the function to the top of the function. If you don’t want to do engine changes you could also call that from your game module’s initialization

---

<div class="post-metadata">

**Author:** ![PlainBane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlainBane](https://forums.unrealengine.com/u/PlainBane)\
**Post date:** [January 3, 2018, 8:10am UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/9 "2018-01-03T08:10:08Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![IbrahimAboelsuod\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IbrahimAboelsuod\_1](https://forums.unrealengine.com/u/IbrahimAboelsuod_1)\
**Post date:** [February 14, 2022, 10:15am UTC](https://forums.unrealengine.com/t/gameplay-tag-container-causes-crash-in-packaged-build/408896/10 "2022-02-14T10:15:25Z")

</div>

I had a freezing problem instead of crashing. Rebuilding seems to fix the problem. (4.27)
