# Hot reload blueprint reinstancing issue

**URL:** <https://forums.unrealengine.com/t/hot-reload-blueprint-reinstancing-issue/396196>\
**Category:** Blueprint\
**Tags:** UE4-16, reproducible-bug, unreal-engine, question, hot-reload\
**Created:** [June 15, 2017, 2:23pm UTC](https://forums.unrealengine.com/t/hot-reload-blueprint-reinstancing-issue/396196 "2017-06-15T14:23:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c5d5991f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c5d5991f](https://forums.unrealengine.com/u/anonymous_user_c5d5991f)\
**Post date:** [June 15, 2017, 2:23pm UTC](https://forums.unrealengine.com/t/hot-reload-blueprint-reinstancing-issue/396196/1 "2017-06-15T14:23:46Z")

</div>

I’ve found a bug on 4.16 that seems to be a regression with relation to hot reload. These are the steps to reproduce it:

- Create an empty C++ project
- Create in C++ a UCLASS that extends APlayerController
- Create in C++ a UCLASS that extends AGameModeBase
- Compile
- Create a Blueprint object that extends your C++ Game Mode class
- Set the default player controller for that blueprint object as your own APlayerController subclass. Save
- Create a level and set that game mode as the default game mode for that world. Save
- Go back to C++, and add a UPROPERTY (can be anything) to both classes you created
- Hit compile on the editor
- When the code finished compiling and hot reloading, check the blueprint game mode class. The default player controller will be set to None instead of your C++ PlayerController subclass

This only happens if both the game mode and player controller changed their properties (needing to be reinstanced) in the same compilation

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e815e8ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e815e8ea](https://forums.unrealengine.com/u/anonymous_user_e815e8ea)\
**Post date:** [June 30, 2017, 2:41am UTC](https://forums.unrealengine.com/t/hot-reload-blueprint-reinstancing-issue/396196/2 "2017-06-30T02:41:53Z")

</div>

humble bump

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [July 26, 2017, 5:59pm UTC](https://forums.unrealengine.com/t/hot-reload-blueprint-reinstancing-issue/396196/3 "2017-07-26T17:59:01Z")

</div>

Hi waneck,

Sorry for not looking at this sooner. I was able to reproduce the issue in 4.16.2, as well as in 4.15.3, so I don’t believe it is a regression. I was able to find an existing ticket (UE-37694) that may be talking about what is going on here. In order to verify that is the case, could you provide the exact names that you are using for the new `APlayerController` and `AGameModeBase` classes that you are creating at the beginning of your repro steps?

If the name of your `AGameModeBase` class would come before the name of your `APlayerController` class alphabetically, could you please try the same repro with names that would have the `APlayerController` class come first alphabetically and see if you get the same result?

---

<div class="post-metadata">

**Author:** ![Mellnik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mellnik](https://forums.unrealengine.com/u/Mellnik)\
**Post date:** [September 21, 2018, 7:42pm UTC](https://forums.unrealengine.com/t/hot-reload-blueprint-reinstancing-issue/396196/4 "2018-09-21T19:42:11Z")

</div>

I have the same issue in 4.20. After hot-reloading, it says “failed to resolve archetype object”. Once that happens the blueprint is somehow corrupt and I have to rollback. Appears to be unfixable for me.
