# Failed to cast to game instance?

**URL:** <https://forums.unrealengine.com/t/failed-to-cast-to-game-instance/460180>\
**Category:** Getting Started & Setup\
**Tags:** game-instance, unreal-engine, crash, question\
**Created:** [January 4, 2020, 6:55am UTC](https://forums.unrealengine.com/t/failed-to-cast-to-game-instance/460180 "2020-01-04T06:55:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axebeard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axebeard](https://forums.unrealengine.com/u/Axebeard)\
**Post date:** [January 4, 2020, 6:55am UTC](https://forums.unrealengine.com/t/failed-to-cast-to-game-instance/460180/1 "2020-01-04T06:55:21Z")

</div>

I just set up a save/load system and while testing PIE had a random crash. After reloading my project, I started getting notified that my Game Instance failed to cast. What could be causing this? MainGameInstance is what’s selected in Project Settings too.

 ![294781-crash.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/3/6c395c490d737639946e9505c9f16fbfd7cbedb6.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 4, 2020, 8:53am UTC](https://forums.unrealengine.com/t/failed-to-cast-to-game-instance/460180/2 "2020-01-04T08:53:22Z")

</div>

Sounds like you’ve run into an elusive bug. Try removing it from the Project Settings → Compile and add it back in.

---

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [February 13, 2022, 5:59pm UTC](https://forums.unrealengine.com/t/failed-to-cast-to-game-instance/460180/3 "2022-02-13T17:59:05Z")

</div>

It happens in 4.27 so, this is no necro. I had same problem. Yesterday all works smooth, today casting fails. I follow you solution and it works - in setting, my game instance was missing, I add it again and all works - thanks.
