# Editor Freeze if possesing pawn with AI controller

**URL:** <https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999>\
**Category:** Blueprint\
**Tags:** freeze, reproducible-bug, unreal-engine, crash, bug-report, question, Blueprint\
**Created:** [February 11, 2018, 7:25am UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999 "2018-02-11T07:25:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Master\_Dino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master\_Dino](https://forums.unrealengine.com/u/Master_Dino)\
**Post date:** [February 11, 2018, 7:25am UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/1 "2018-02-11T07:25:13Z")

</div>

- A bit of UPD on my question.
- Here is what i found, if i try to  
posses an already existing,  
uncontrolled character with AI  
controller on server (from actor  
component) while in multiplayer mode,  
editor keeps freezing and never gets  
back until i destroy it by task  
manager.
- To reproduce \> simply follow the screenshots.
- The bug persist even if i create  
server custom event instead of func.
- All the steps to reproduce this, you  
can see in the screenshots below.(open in new tab for resolution)

1st. create actor component, and add single function and ai controller variable, below.

 ![230344-screenshot-19.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/d/28d2fe03eeaeac26833f08c5eed2b8b1b7b57c20.png)

2nd. create a pawn, and add that component to him, and making beginplay with delay, if server, and check if not player and call that func.

 ![230345-screenshot-17.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c3fc1b2f558be0bfac59f475a7300bdd9b8d708.png)

3rd. set players numbers to 2, then set the pawn as default in game mode, and add some pawns into level as ai bots, where the events should actually call.

 ![230346-screenshot-18.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/a/03afaedc77833f91572a9009ef8a45dc53ceb26a.jpeg)

4th. click beginplay and after 2 seconds whole editor freeze, then just destroy it by task manager because it never gets back.

P.S it is 4.19 and yet no fix, here is ready project below, just set players to 2 or more on test map and click play.

> **[bug\_test](http://www.mediafire.com/file/92n30ye687z6gug/bug_test.rar/file)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

---

<div class="post-metadata">

**Author:** ![GlassBeaver](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glassbeaver/32/551492_2.png) [@GlassBeaver](https://forums.unrealengine.com/u/GlassBeaver)\
**Post date:** [February 12, 2018, 7:36am UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/2 "2018-02-12T07:36:35Z")

</div>

If this were a c++ project you could try attaching the Visual Studio debugger to the editor and check if any exceptions are being raised in the Output window of VS. That could help pinpoint the source of the problem.

---

<div class="post-metadata">

**Author:** ![Master\_Dino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master\_Dino](https://forums.unrealengine.com/u/Master_Dino)\
**Post date:** [February 12, 2018, 7:44am UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/3 "2018-02-12T07:44:33Z")

</div>

yep, but yet i am not using c++, just the bug is ridiculous and annoying, ue4 staff should really look into it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_943e62f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_943e62f0](https://forums.unrealengine.com/u/anonymous_user_943e62f0)\
**Post date:** [February 12, 2018, 8:10pm UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/4 "2018-02-12T20:10:33Z")

</div>

Hey,

This was fixed in 4.19

---

<div class="post-metadata">

**Author:** ![Master\_Dino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master\_Dino](https://forums.unrealengine.com/u/Master_Dino)\
**Post date:** [February 12, 2018, 8:17pm UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/5 "2018-02-12T20:17:52Z")

</div>

Thank you very much for answer, i was afraid it was not. Do you have any approximate release date for 4.19?

---

<div class="post-metadata">

**Author:** ![Master\_Dino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master\_Dino](https://forums.unrealengine.com/u/Master_Dino)\
**Post date:** [March 16, 2018, 9:21pm UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/6 "2018-03-16T21:21:15Z")

</div>

Hey guys i want to reopen this question, because you said it was fixed in 4.19, i just downloaded 4.19 and created the same logic again, and NO it didn’t, Staff please, why you told me it was fixed if it does crash-freeze the engine again in 4.19?  
When it will be really actually fixed?

---

<div class="post-metadata">

**Author:** ![Master\_Dino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master\_Dino](https://forums.unrealengine.com/u/Master_Dino)\
**Post date:** [March 17, 2018, 6:26am UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/7 "2018-03-17T06:26:51Z")

</div>

Here is created example project with bug can be seen in 4.19 link to project below, just open and set players to 2, or more, and catch the freeze.

> **[bug\_test](http://www.mediafire.com/file/92n30ye687z6gug/bug_test.rar/file)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_943e62f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_943e62f0](https://forums.unrealengine.com/u/anonymous_user_943e62f0)\
**Post date:** [March 19, 2018, 7:43pm UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/8 "2018-03-19T19:43:37Z")

</div>

Thanks for bringing this back to our attention. We’ll be looking into this issue and you can track it at [UE-56276](https://issues.unrealengine.com/issue/UE-56276)

---

<div class="post-metadata">

**Author:** ![Marc\_Audy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marc_audy/32/710746_2.png) [@Marc\_Audy](https://forums.unrealengine.com/u/Marc_Audy)\
**Post date:** [March 19, 2018, 10:18pm UTC](https://forums.unrealengine.com/t/editor-freeze-if-possesing-pawn-with-ai-controller/416999/9 "2018-03-19T22:18:29Z")

</div>

The AIController is created with an Owner of the Pawn but then you possess the Pawn with that Controller. This is creating an infinite loop when trying to determine the NetConnection which is why it hangs.

Disconnecting that Owner pin when spawning the ai controller resolves the loop.

I don’t yet know if there is a reasonable code fix for this, but hopefully not setting up that relationship should resolve your issue.
