# Crash opening a BP containing a deleted CustomMacro

**URL:** <https://forums.unrealengine.com/t/crash-opening-a-bp-containing-a-deleted-custommacro/330827>\
**Category:** Platform & Builds\
**Tags:** macro-library, unreal-engine, crash, question\
**Created:** [September 3, 2015, 1:35am UTC](https://forums.unrealengine.com/t/crash-opening-a-bp-containing-a-deleted-custommacro/330827 "2015-09-03T01:35:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [September 3, 2015, 1:35am UTC](https://forums.unrealengine.com/t/crash-opening-a-bp-containing-a-deleted-custommacro/330827/1 "2015-09-03T01:35:20Z")

</div>

Hello,

Got this very annoying crash after I deleted a Macro in an user made Macro Library and then opened a BP that was still referencing it.

1. Create a Blueprint Macro Library
2. Add a Macro (Let’s call it **TestDelete** )
3. Create a Blueprint Pawn
4. Add a Macro and place **TestDelete** macro
5. Restart Editor to make sure it’s well refreshed
6. Open Blueprint macro Library and delete Macro **TestDelete**
7. Save
8. Restart Editor (an error will appear in MessageLog tab)
9. Open Pawn Blueprint
10. Open Macro that was using **TestDelete**. should Crash without possibility to replace missing reference

As a workaround : recreate deleted Macro ( **TestDelete** ), restart editor.

---

<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:** [September 3, 2015, 3:19pm UTC](https://forums.unrealengine.com/t/crash-opening-a-bp-containing-a-deleted-custommacro/330827/2 "2015-09-03T15:19:11Z")

</div>

Hi Genova,

Thanks for report! I was able to reproduce this in 4.9.0 and our internal build, and I’ve entered a bug report for crash (UE-20717). I’ll post here when I see any update on it.

I’m not 100% sure I’m following same steps, however. Just to be sure I’m getting same crash as you, please copy information from Crash Reporter window after this crash occurs, including Machine ID, and paste it here. Be sure to hit Send. Then I’ll be able to compare your call stack to mine and ensure we’re seeing same thing. Thanks!

---

<div class="post-metadata">

**Author:** ![Marooney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marooney](https://forums.unrealengine.com/u/Marooney)\
**Post date:** [September 6, 2015, 1:33am UTC](https://forums.unrealengine.com/t/crash-opening-a-bp-containing-a-deleted-custommacro/330827/3 "2015-09-06T01:33:24Z")

</div>

I actually wanted to reproduce another Macro bug that i will report afterwards and hit crash in different ways when reproducing this one now ^^:

Compiling is problem as far as i can see:

1. I created an empty Macro in Actor inherited Macro Library BP - saved

2. Created an Actor BP and added Macro - **compiled** and saved and closed window

3. I deleted macro - saved

4. Crash when opening Actor BP

Another try:

1. I created an empty Macro in Actor inherited Macro Library BP - saved
2. Created an Actor BP and added Macro - **NOT compiled** and saved and window still opened
3. I deleted macro - saved
4. Macro was renamed from default macro name to “EdGraph\_35” in Actor BP
5. Closed and opened BP again → still EdGraph\_35 node in there
6. **Compile** → Crash - I sent this Crash Report
7. Editor crashes if BP is opened again
8. Adding EdGraph\_35 Macro in Library did not work. Adding original “NewMacro\_0” worked.

I just posted UNDO problem, perhaps it is caused by same issue:

> **[Undo deleted macro causes "Can't save ... Graph is linked to private...](https://forums.unrealengine.com/questions/297729/undo-deleted-macro-causes-cant-save-graph-is-linke.html)**
>
> I reproduced a problem with delete and undo of macros (and even got/reported the same crash mentioned here ^^ : https://answers.unrealengine.com/questions/295880/crash-opening-a-bp-containing-a-deleted-custommacr.html) I created a macro in an...
