# Editor freezes when starting sequence recording from SButton

**URL:** <https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, sequence, bug-report, editor, CPP, question\
**Created:** [February 9, 2017, 12:57am UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350 "2017-02-09T00:57:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b1b1873](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b1b1873](https://forums.unrealengine.com/u/anonymous_user_3b1b1873)\
**Post date:** [February 9, 2017, 12:57am UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350/1 "2017-02-09T00:57:25Z")

</div>

Hi there!

If a sequence recording is directly triggered from a slate callback (like SButton) it will freeze the current window so that it does not receive any more events (like clicking stop recording for example 😉 )

```
	auto & recorder = FModuleManager::LoadModuleChecked< ISequenceRecorder >("SequenceRecorder");
    recorder.StartRecording(ActorsToRecord,
			FOnRecordingStarted::CreateRaw(this, &Class::OnRecordStart),
			FOnRecordingFinished::CreateRaw(this, &Class::OnRecordEnd));

```

However if this is being called through a command (like done in the sequence recorder toolbar it will not freeze the current window.

To recreate just create a plugin with a window and add a SButton with a callback containing the above code. Of course you will have to create the ActorsToRecord array. Click the button and the window wont react to input anymore.

I suggest docking the window in the main unreal editor window for maximum fun and profit.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b1b1873](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b1b1873](https://forums.unrealengine.com/u/anonymous_user_3b1b1873)\
**Post date:** [February 14, 2017, 7:59am UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350/2 "2017-02-14T07:59:39Z")

</div>

Hi again!

Quick update:  
I figured out that the same things seems to happen when creating **ULevelSequencePlayer** s in C++.

[You can find an example project here](https://answers.unrealengine.com/questions/562713/ulevelsequenceplayer-handles-spawnables-incorrectl.html)

**To reproduce**

1. Download and open the project
2. Enter play in editor
3. Open the plugin window
4. Click Create Player in the plugin window
5. The current window will freeze

Cheers

---

<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:** [February 14, 2017, 7:21pm UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350/3 "2017-02-14T19:21:32Z")

</div>

Hi,

Thank you for the sample project. When I was trying to reproduce this myself, I think I may have been going a little bit too simple. I was able to reproduce this issue, and have entered [UE-41949](https://issues.unrealengine.com/issue/UE-41949) to have it investigated further.

I am still looking into the issues that you mentioned in your other post.

---

<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:** [February 14, 2017, 11:05pm UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350/4 "2017-02-14T23:05:58Z")

</div>

Hi,

While we were looking into the issues you had brought up in your second post, we did some additional testing on this issue as well. It turns out that this is actually already a known issue reported in [UE-28065](https://issues.unrealengine.com/issue/UE-28065) (this ticket didn’t appear in any of my searches for possible known issues related to what you described).

The issue that is actually occurring is that the button does not release focus since it is disabled before the Mouse Up event occurs.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b1b1873](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b1b1873](https://forums.unrealengine.com/u/anonymous_user_3b1b1873)\
**Post date:** [February 15, 2017, 10:38pm UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350/5 "2017-02-15T22:38:54Z")

</div>

Hi !

Thank you! - But could you please update the ticket so it affects the current engine versions too? 😉

---

<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:** [February 16, 2017, 7:31pm UTC](https://forums.unrealengine.com/t/editor-freezes-when-starting-sequence-recording-from-sbutton/384350/6 "2017-02-16T19:31:27Z")

</div>

Thanks for pointing that out. I have updated the original ticket with the versions I confirmed this is still happening in.
