# 4.5.1: Slate loading screen crash / focus issue

**URL:** <https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307>\
**Category:** UI\
**Tags:** Input, unreal-engine, crash, question, UMG\
**Created:** [October 26, 2014, 7:02pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307 "2014-10-26T19:02:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgrieshofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dgrieshofer](https://forums.unrealengine.com/u/dgrieshofer)\
**Post date:** [October 26, 2014, 7:02pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/1 "2014-10-26T19:02:19Z")

</div>

Mouse focus is broken after showing a slate loading screen in 4.5. After level load mouse focus still seems to be on loading screen until player clicks a mouse button to focus game again.

My workaround for now is to call “Set Input Mode Game Only” on begin play in character blueprint. However calling “Set Input Mode Game Only” in BeginPlay event crashes game then. So I had to add a delay before calling it which is not ideal and should be fixed if possible too.

Version: 4.5 or 4.5.1

* * *

How to reproduce (issue #1):

- Create new first person game project

- Add a C++ blueprint function library and add a level loading screen function which is exposed to blueprint. For that you need to modify Build.cs and include movie player header:

- Have a blueprint setup like this in player character:

 ![19332-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/e/aaed6a215412c7730be55d504efda97b589a6971.png)

- Start game as “Standalone Game”
- Press M key
- game crashes now with following crash log: [Crash Log Dump][2]
- It does however not crash if you don’t call show loading screen function before level load

* * *

Related to focus issue (#2):

- Do steps above
- Add back loading screen function
- Remove whole begin play function
- Mouse focus now doesn’t work after loading level (press M key) until player clicks mouse button

---

<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:** [October 27, 2014, 3:58pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/2 "2014-10-27T15:58:47Z")

</div>

Hey dgrieshofer,

Thank you for your report. We have assigned this issue to a member of our support staff, and they will begin investigation as soon as possible. If we are unable to reproduce issue, or we need additional information, our staff member will comment here with additional questions. Otherwise, we will post an ‘Answer’ once we have logged issue in our bug database or we have a solution for it.

In meantime, please be sure to review our suggestions for how to report a bug, and feel free to edit your post if you have additional information to provide:

Please and attach crash log and dump file for your project after a crash.

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 27, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/3 "2014-10-27T18:30:19Z")

</div>

Hello dgrieshofer,

I was unable to reproduce this on my end. I have a few questions for you about this issue that will help us better understand what’s happening. Any additional information will be helpful.

Quick questions:

1. Can you reproduce this issue on a clean project?
2. Can you provide steps to reproduce this issue?
3. Can you provide a screen shot of section of blueprints being referenced?

---

<div class="post-metadata">

**Author:** ![dgrieshofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dgrieshofer](https://forums.unrealengine.com/u/dgrieshofer)\
**Post date:** [October 27, 2014, 10:29pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/4 "2014-10-27T22:29:15Z")

</div>

Hey Rudy, I have looked into this further and it seems like this is rather complicated to replicate but I have added all necessary steps and attached crashlog/dump in original post. Hope it helps, let me know if you need more feedback.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 28, 2014, 6:27pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/5 "2014-10-28T18:27:14Z")

</div>

Hello dgrieshofer,

I have a couple more questions for you.

1. Would please explain how you declared function ShowLevelLoadingScreen?
2. In what blueprint did you put three nodes in second image (Custom event, Level loading and open level)?

---

<div class="post-metadata">

**Author:** ![dgrieshofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dgrieshofer](https://forums.unrealengine.com/u/dgrieshofer)\
**Post date:** [October 28, 2014, 7:31pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/6 "2014-10-28T19:31:22Z")

</div>

I have edited initial post again showing all steps and all required changes needed from first person game template to make it crash. custom event was just a placeholder for a bound key. Btw I have now also found out that mouse focus issue that I am experiencing is also related to that loading screen which would be great to fix too. More info can be seen in origin post. Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 29, 2014, 3:26pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/7 "2014-10-29T15:26:30Z")

</div>

Hello dgrieshofer,

We were able to reproduce issue that you are experiencing. I have filled out a report (UE-4758) and sent it to developers for further investigation. I will provide any more pertinent information as it becomes available. Thank you for your time and assistance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b41c45bd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b41c45bd](https://forums.unrealengine.com/u/anonymous_user_b41c45bd)\
**Post date:** [February 16, 2015, 1:31pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/8 "2015-02-16T13:31:58Z")

</div>

Hi  
I’m experiencing exact same issue. I have same call stack as what he has in crash dump. crash occurs after movie player stops and level is actually about to be loaded. Has this issue been resolved yet?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 18, 2015, 3:18pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/9 "2015-02-18T15:18:26Z")

</div>

Hello ,

After taking a quick look I have found that this has recently been fixed. This crash should be resolved in 4.7 version of engine. I hope that this information helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![BrynBennett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrynBennett](https://forums.unrealengine.com/u/BrynBennett)\
**Post date:** [September 15, 2015, 10:54pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/10 "2015-09-15T22:54:18Z")

</div>

Anything happen with this? I’m on 4.7.6 right now (I know, a bit behind), but I’m having same problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 16, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/11 "2015-09-16T14:39:08Z")

</div>

Hello BrynBennett,

This issue was resolved in 4.8 version of engine. I have included a link to commit in case you are using an engine built from source and you would like to cherry pick solution for your project. I hope this helps.

Commit: [https://github.com/Crtriplett/UnrealEngine/commit/774da3310a3b833688d02dbd1ebd75f204dcdec5](https://github.com/Crtriplett/UnrealEngine/commit/774da3310a3b833688d02dbd1ebd75f204dcdec5)

Make it a great day

---

<div class="post-metadata">

**Author:** ![BrynBennett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrynBennett](https://forums.unrealengine.com/u/BrynBennett)\
**Post date:** [September 16, 2015, 3:14pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/12 "2015-09-16T15:14:21Z")

</div>

Thank you so much Rudy! Unfortunately, those changes already made it into version of engine we are using. Could there be any other commits that fixed issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 16, 2015, 3:42pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/13 "2015-09-16T15:42:07Z")

</div>

Hello BrynBennett,

issue that you are experiencing may not be same issue that was reported in this post. You may want to create a new thread and provide more information on this issue that you are experiencing.

---

<div class="post-metadata">

**Author:** ![BrynBennett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrynBennett](https://forums.unrealengine.com/u/BrynBennett)\
**Post date:** [September 18, 2015, 6:48pm UTC](https://forums.unrealengine.com/t/4-5-1-slate-loading-screen-crash-focus-issue/297307/14 "2015-09-18T18:48:47Z")

</div>

I was calling GetMoviePlayer()-\>PlayMovie() when I didn’t need to. I didn’t know that it would happen automatically. Evidently, that causes a crash. Thanks for your time.
