# Cast to game instance makes editor crash at startup

**URL:** <https://forums.unrealengine.com/t/cast-to-game-instance-makes-editor-crash-at-startup/633822>\
**Category:** Blueprint\
**Tags:** casting, unreal-engine, UE5-0, Blueprint\
**Created:** [August 25, 2022, 2:29am UTC](https://forums.unrealengine.com/t/cast-to-game-instance-makes-editor-crash-at-startup/633822 "2022-08-25T02:29:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [August 25, 2022, 6:40pm UTC](https://forums.unrealengine.com/t/cast-to-game-instance-makes-editor-crash-at-startup/633822/2 "2022-08-25T18:40:57Z")

</div>

Hey @MoKeT79, welcome to the forums!  
I think you may have a memory leak. You most likely just have a nullptr that trying to be accessed. Here’s a link to a solved forum post about it, you may find the steps you need to fix it in there: [[SOLVED] Access violation - code c0000005 (first/second chance not available) - #2 by ExtraLifeMatt](https://forums.unrealengine.com/t/solved-access-violation-code-c0000005-first-second-chance-not-available/122905/2)

I hope this can help!  
-Zen

---

_[View the full topic](https://forums.unrealengine.com/t/cast-to-game-instance-makes-editor-crash-at-startup/633822)._
