What's causing a PCSwap network message?

We have a problem where ULocalPlayers get deleted when another player spawns in the network.
For example if we have a ListenServer and one client. The client spawns first and works correctly, then the listenserver spawns → the clients Player is removed, the PlayerController and Pawn still exist though.
At about the same time LogNet says this:

LogNet:Verbose: Level server received: PCSwap
LogNet: Received invalid swap message with child index -1

I’m not sure what would cause that. I found the location in the source code where that happens but I don’t understand what exactly is happening.
Any ideas?

I have the same problem with my game this is so strange.
Please some one help me

My problem was with reliable multicast in player controller.
You can not multi cast in player controller because not every clients have all player controller object reference.

This is my issue as well. What should be done in this case then? Should we just create the multicast event in the GameState?

Yes game state is very good for multicast the events.

I had the same problem.

My problem was with reliable multicast in player controller. You can not multi cast in player controller because not every clients have all player controller object reference.

I use Gamestate for multicasting the events.

I can confirm this fix is valid. I had exact same issue and fixed it by moving multicast code out of player controller.