# Using blueprint macro library causes crash

**URL:** <https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000>\
**Category:** UI\
**Tags:** macro-library, unreal-engine, bug-report, question, Blueprint, UMG\
**Created:** [November 27, 2014, 2:12pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000 "2014-11-27T14:12:49Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nevermind\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nevermind\_1](https://forums.unrealengine.com/u/Nevermind_1)\
**Post date:** [November 27, 2014, 2:12pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/1 "2014-11-27T14:12:49Z")

</div>

Here’s a link to project with reproducing bug: [https://dl.dropboxusercontent.com/u/3440976/TestMacroProject](https://dl.dropboxusercontent.com/u/3440976/TestMacroProject).

On an empty project, you can do this to reproduce:

1. Create a blueprint (I’ve used Player Controller) with a variable.
2. Create a blueprint macro library. Add a macro that uses said variable (mine just prints it to log)
3. Create a widget blueprint with a single TextBlock
4. Bind a function to TextBlock’s content. This function should call macro from step 2.
5. Add widget to game (I’ve used GameMode’s BeginPlay event)
6. Change blueprint from step 1. Simply adding a second variable will do.
7. Run game using `UE4Editor.exe myproject.uproject -game` command line. game would crash.

log says something along lines of:

> ‘TestPlayerController\_C\_0’ is of class ‘TestPlayerController\_C’ however property ‘BoolProperty\_22’ belongs to class ‘TRASHCLASS\_TestPlayerController\_39’

It would seem that blueprint for player controller got recompiled, but macro that referenced it somehow retained reference to old, pre-recompilation property. And crashed when trying to access it.

I’ve been able to reproduce this easily with widget blueprints. Using macros in regular blueprints seems to _generally_ work, however, in bigger project I’m working on, I have a regular blueprint with this behaviour. I can’t reproduce it in a sample project, however.

---

<div class="post-metadata">

**Author:** ![Slonopotamus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slonopotamus](https://forums.unrealengine.com/u/Slonopotamus)\
**Post date:** [November 28, 2014, 3:34pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/2 "2014-11-28T15:34:03Z")

</div>

I confirm that blueprint does get recompiled by BlueprintGeneratedClass::ConditionalRecompileClass (and during recompilation property is moved to trash class by KismetCompiler::CleanAndSanitizeClass). problem is that TestPlayerController is recompiled _after_ TestWidget. Sadly, I don’t know UE internals enough to be able to create a fix for this bug.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 28, 2014, 5:15pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/3 "2014-11-28T17:15:32Z")

</div>

Hey Nevermind,

Thanks for report! We have assigned this issue to a member of our support staff, and they will begin investigation as soon as possible. If we are unable to reproduce issue, or we need additional information, our staff member will comment here with additional questions. Otherwise, we will post an ‘Answer’ once we have logged issue in our bug database or we have a solution for it.

In meantime, please be sure to review our suggestions for how to report a bug, and feel free to edit your post if you have additional information to provide:

For a crash, we generally like to get a crash log and dump file for project. Please and attach files here.

Thanks!

---

<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:** [December 1, 2014, 5:04pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/4 "2014-12-01T17:04:47Z")

</div>

Hello Nevermind,

I was unable to reproduce issue that you stated above. I could not get your blueprints to compile because your binding was not a pure function. After checking following check box I was able to compile and game launched smoothly. Could you tell me what version of engine it is that you are using?

 ![22637-macroissue.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/c/41cc7b0106710968cd1b1a935004495ccbc8063c.png)

---

<div class="post-metadata">

**Author:** ![Nevermind\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nevermind\_1](https://forums.unrealengine.com/u/Nevermind_1)\
**Post date:** [December 2, 2014, 7:43am UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/5 "2014-12-02T07:43:14Z")

</div>

Hi Rudy,

I’m using 4.5.1, but I’ve also asked a coworker (Slonopotamus) to confirm crash on latest version from github, which he did. On my version at least, blueprint compiles even without “Pure” checkbox; I’ve tried checking it and crash happens anyway.

Please note that it’s not _editor_ that crashes - only game. I.e. you have to launch it with `-game` command line .

I’m also attaching log and dmp files from crash, just in case.  
link text

---

<div class="post-metadata">

**Author:** ![Slonopotamus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slonopotamus](https://forums.unrealengine.com/u/Slonopotamus)\
**Post date:** [December 9, 2014, 8:59am UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/6 "2014-12-09T08:59:13Z")

</div>

Hi, Rudy. Any progress with this bug?

---

<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:** [December 17, 2014, 7:00pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/7 "2014-12-17T19:00:59Z")

</div>

Hello Slonopotamus,

I was unable to reproduce this issue. Have you tried to reproduce this in current version of engine (4.6.1)?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1d3559f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1d3559f](https://forums.unrealengine.com/u/anonymous_user_f1d3559f)\
**Post date:** [December 18, 2014, 8:44am UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/8 "2014-12-18T08:44:17Z")

</div>

I make widget function pure (4.5 → 4.6 migration) and upload project:  
[https://cloud.mail.ru/public/95d8dac663f1/TestMacroProject](https://cloud.mail.ru/public/95d8dac663f1/TestMacroProject).

Uploaded project reproduce this bug with -game flag.

---

<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:** [January 26, 2015, 7:59pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/9 "2015-01-26T19:59:13Z")

</div>

Hello Nevermind,

I meant to get back to you sooner. I was able to reproduce issue that you were describing in your post. A report (UE-8314) was submitted to developers for further consideration. I will provide updates with any pertinent information as it becomes available.

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1d3559f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1d3559f](https://forums.unrealengine.com/u/anonymous_user_f1d3559f)\
**Post date:** [April 22, 2015, 7:50am UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/10 "2015-04-22T07:50:15Z")

</div>

This problem is still present on master version of April 21, 2015.

---

<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:** [April 22, 2015, 12:40pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/11 "2015-04-22T12:40:27Z")

</div>

Hello ,

I went ahead and double checked on this issue for you. However, this issue’s status has not been updated to resolved at this time. I will be sure to bump up community interest for this issue. Thank you for your time and information.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [May 3, 2015, 2:22am UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/12 "2015-05-03T02:22:38Z")

</div>

It is very sad that this report is 6 months old and its still not fixed.  
I had a hard time finding this post and figuring out what causes my continous crashes. I spent my whole day with this :S

After replacing all macros in my 10+ blueprints. (They were quite big)  
project is no longer crashing.

_‘WhyIsThisNotWorkingGameMode\_C\_0’ is of class ‘WhyIsThisNotWorkingGameMode\_C’ however property ‘ObjectProperty\_1795’ belongs to class ‘TRASHCLASS\_WhyIsThisNotWorkingGameMode\_497’_

Also:

> **[MachineId:B11B58CE4152A38B2D884EB4788852ABEpicAccountId:40dd2988f279471f82aefa...](https://pastebin.com/qjgnAVMx)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<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:** [May 4, 2015, 1:49pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/13 "2015-05-04T13:49:51Z")

</div>

Hello ,

We are still looking into this issue, however we do not have any new information to provide regarding its status. I will be sure to bump community interest for this report. Thank you for your information and time.

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c0687f281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Post date:** [July 8, 2015, 5:03pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/14 "2015-07-08T17:03:44Z")

</div>

Just lost 6 hours due to that bug, almost went crazy. Was a simple wrapper which used a reference to player pawn inside. Used that macro in a class referenced from same player pawn. This lead to a random crash depending on order of when I recompiled individual blueprints.

---

<div class="post-metadata">

**Author:** ![Slonopotamus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slonopotamus](https://forums.unrealengine.com/u/Slonopotamus)\
**Post date:** [August 3, 2015, 11:54am UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/15 "2015-08-03T11:54:25Z")

</div>

Still broken in 4.8 and 4.9.

---

<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:** [August 3, 2015, 1:07pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/16 "2015-08-03T13:07:59Z")

</div>

Hello Slonopotamus,

I went ahead and double checked on this issue for you and you are correct. This issue’s status has not been updated to fixed as of this time. However, I have bumped up community interest for this issue. Thank you for your time and information.

Make it a great day

---

<div class="post-metadata">

**Author:** ![JRed\_3760](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JRed\_3760](https://forums.unrealengine.com/u/JRed_3760)\
**Post date:** [May 26, 2025, 7:52pm UTC](https://forums.unrealengine.com/t/using-blueprint-macro-library-causes-crash/300000/17 "2025-05-26T19:52:42Z")

</div>

a decade later and running into this lol
