Editor Freeze if possesing pawn with AI controller

  • 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.

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.

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.

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.

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.

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

Hey,

This was fixed in 4.19

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

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?

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.

Thanks for bringing this back to our attention. We’ll be looking into this issue and you can track it at UE-56276

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.