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