# ShooterGame - CustomShooterGameModeBP crashes inside the BP editor

**URL:** <https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 28, 2017, 10:19pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262 "2017-01-28T22:19:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [January 28, 2017, 10:19pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/1 "2017-01-28T22:19:47Z")

</div>

After some time working on my game using the ShooterGame framework, I came to this issue that is actually blocking me to finish some core features.

I’ve created a custom class, in c++, inherited from ShooterGameMode and created a Blueprint Class from that.  
Whenever I try to open this Blueprint class inside the editor, it loads 100% and crashes the editor, instantly, without leaving a crash report.

After facing this problem, I created another blueprint class, this time inherited from the ShooterGameMode class. Same results, when I open it and load, the editor closes.

So… I have created a clean shootergame project and gave it a try, and it worked fine. The problem is inside my current project.

BUT

The ShooterGameMode class was untouched so far, and I’m facing this crash in an unchanged class, only in my project!

Is it something I should look at the config files? Any ideas of what should be the crash cause here?

---

<div class="post-metadata">

**Author:** ![S-ed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-ed/32/1194558_2.png) [@S-ed](https://forums.unrealengine.com/u/S-ed)\
**Post date:** [January 28, 2017, 11:33pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/2 "2017-01-28T23:33:41Z")

</div>

Would You mind to attach a crash report?

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [January 30, 2017, 10:38pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/3 "2017-01-30T22:38:35Z")

</div>

Sorry for the delay.

The editor just closes, not displaying any crash report. I’m still having this issue, even recompiling the entire project on a different PC.

---

<div class="post-metadata">

**Author:** ![S-ed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-ed/32/1194558_2.png) [@S-ed](https://forums.unrealengine.com/u/S-ed)\
**Post date:** [January 31, 2017, 12:13am UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/4 "2017-01-31T00:13:33Z")

</div>

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [January 31, 2017, 1:30am UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/5 "2017-01-31T01:30:49Z")

</div>

Thanks for the reply, again.

My last crash simulation opened the crash report window, thus I could gather the info needed:

AppCrash:  
link text -

Editor Log:  
link text

---

<div class="post-metadata">

**Author:** ![S-ed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-ed/32/1194558_2.png) [@S-ed](https://forums.unrealengine.com/u/S-ed)\
**Post date:** [January 31, 2017, 1:29pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/6 "2017-01-31T13:29:30Z")

</div>

Looks like Thread tried to access protected memory. But I see no major issues except:

`LogUObjectGlobals:Warning: Failed to find object 'Class None.' `

and

`LogCrashTracker: Crashtracker disabled due to settings.`

Try to enable it by typing `crashreports` in console.

Also move the topic into Bug Reports category, so Epic Staff could help You.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [January 31, 2017, 7:29pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/7 "2017-01-31T19:29:52Z")

</div>

Hey Gbr-

I tried testing your issue and was not able to reproduce this in a new project either. For another test, can you try making a copy of your project and convert it to 4.14 and let me know if the crash still occurs there as well? Additionally, can you run the project in Visual Studio debug mode and cause the crash? This should force the project to kick back to Visual Studio and display the crash callstack. Please copy/paste the callstack here for additional information.

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [January 31, 2017, 10:36pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/8 "2017-01-31T22:36:48Z")

</div>

, **thank you** for your promptitude.

I believe I need Epic’s support as you said.  
Anyway, trying to enable _crashreports_ does not seem to change the fail Log I came up facing and nor showing more relevant messages. Gotta try the suggestions.

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [January 31, 2017, 10:56pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/9 "2017-01-31T22:56:27Z")

</div>

Hi, .

I could not run the project inside 4.14, came through a new issue detailed in [this post][1].

I need your guidance inside the Visual Studio for this attempt you suggested. I’m still under 4.13’s project. Here’s the break point:

 ![124403-vserror.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/5/a35cd15222f183adae93d11b1c73e22bc97e0049.png)

Didnt find any useful information after this, where should I go from here?

---

<div class="post-metadata">

**Author:** ![S-ed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-ed/32/1194558_2.png) [@S-ed](https://forums.unrealengine.com/u/S-ed)\
**Post date:** [February 1, 2017, 2:01am UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/10 "2017-02-01T02:01:00Z")

</div>

Yeah it’s fine. Sorry this is gone beyond my level of awesomeness.

Good luck with it, hope You’ll find a solution soon.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [February 1, 2017, 7:14pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/11 "2017-02-01T19:14:58Z")

</div>

Based on the screenshot it only shows an error with the editor directly. In the Epic Games Launcher, please try clicking the dropdown arrow for your engine version (4.13.2) and select the Verify option to ensure all engine files are built correctly. If you still get a crash when opening your blueprint, please send a copy of your project so that I can view the crash locally.

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [February 2, 2017, 7:13pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/12 "2017-02-02T19:13:49Z")

</div>

Hi ,

I’ve done everything you asked me to do.

After downloading the Editor Debug symbols (This last weekend I’ve formatted my and forgot to download the symbols), I came to these new messages (too long to post in this reply: [https://codepaste.net/2eqyic](https://codepaste.net/2eqyic))

Maybe it can be useful.

About the 4.14 update: after updating to 4.14.3 and simulated the crash, it still occurs. Crash log also indicates the same function (GameMode::StartMatch()).

Please tell me if you’re still gonna need my project.

Thanks for your attention.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [February 17, 2017, 6:44pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/13 "2017-02-17T18:44:38Z")

</div>

Hey Gbr-

I apologize for the delayed response. I have not been able to reproduce your crash locally yet. It may help me understand the cause by seeing the issue on my end, if it’s still possible for you to provide a copy of your project.

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [February 24, 2017, 5:10pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/14 "2017-02-24T17:10:14Z")

</div>

Surely, here it goes:  
[https://drive.google.com/file/d/0B389WdSTmsVRbE9qRld4MDZEYzA/view?usp=sharing](https://drive.google.com/file/d/0B389WdSTmsVRbE9qRld4MDZEYzA/view?usp=sharing)

Looking forward for your response.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [February 24, 2017, 9:56pm UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/15 "2017-02-24T21:56:36Z")

</div>

Hey Gbr-

Thank you for the project. I was able to follow the stack trace from the crash to where `StartMatch();` had been added in `AShooterGameMode::PreInitializeComponents();`. When this call is made, it is then crashing on `if (GameSession->HandleStartMatchRequest())` because GameSession at this point (opening the blueprint) is null. Commenting out the call to StartMatch prevents the crash from occurring. Depending on the reason this call is being made, you may need to make the call elsewhere, or at the very least check `if(GameSession)` prior to calling `StartMatch();`

Cheers

---

<div class="post-metadata">

**Author:** ![StarfireDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Post date:** [February 25, 2017, 11:59am UTC](https://forums.unrealengine.com/t/shootergame-customshootergamemodebp-crashes-inside-the-bp-editor/383262/16 "2017-02-25T11:59:28Z")

</div>

It worked! Thanks, .
