Multiplayer Invalid Playerstate

The project uses Steam Advanced Session Plugin and we already have our own Steam AppID.

We use a custom PlayerState ingame, but the default one in the lobby.

Host/Client system.

Seamless travel is true in the lobby, travelmap and ingame.

Sometimes we experience crashes, when servertravel.

I couldn´t find the exact cause of the crashes, but one thing caught my eye.
“LogScriptCore: Warning: Script Msg: DestroySession - Invalid player state

I believe this has something to do with the crashes. My research turned out nothing and I havent found any solutions.
Here is the error log (server):


[2018.06.29-17.51.31:580][512]LogBlueprintUserMessages: [Lobby_GM_C_0] Added PC: Lobby_PC_C_2 Unique ID: 2

[2018.06.29-17.51.31:580][512]LogGameMode: FindPlayerStart: PATHS NOT DEFINED or NO PLAYERSTART with positive rating

[2018.06.29-17.51.31:678][518]LogScriptCore: Warning: Script Msg: DestroySession - Invalid player state
[2018.06.29-17.51.31:678][518]LogScriptCore: Warning: Script Msg: DestroySession - Invalid player state

[link text][1]

Servertravel logic looks like this:

Looks the same when travelling back to lobby. Also tried adding “?listen” to the command line, but had no effect.

Appreciate your help.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

Hi,
I’ve been coming across the same message recently and was wondering if you made any progress.

It always happens to me when I am traveling from my lobby to a new map with a different Game Mode and Player Controller and after the new Player Controllers are created.
I have never experienced a crash when this happens though, the client camera stays in the map and can rotate but can’t do anything else.

Hopefully we can figure this out (:

Link to log

Hi,
sadly I couldn’t find any solution or further information about this.
Since you aren’t experiencing any crashes, which I do, it seems
that the invalid playerstate isn’t the cause of them .

Do you have any problems caused by this? For example your clients
don’t get set up properly sometimes?

Best regards

Also getting:

[2019.01.14-23.14.55:332][452]LogNet: Browse: /Game/Maps/Lobby?listen
[2019.01.14-23.14.55:332][452]LogLoad: LoadMap: /Game/Maps/Lobby?listen
[2019.01.14-23.14.55:333][452]LogScript: Warning: Script Msg: DestroySession - Invalid player state
[2019.01.14-23.14.55:481][452]LogSlate: Slate User Unregistered. User Index 8
[2019.01.14-23.14.55:481][452]LogSlate: Slate User Destroyed. User Index 8, Is Virtual User: 1

Any resolve to this situation? Not sure if its the cause of my connectivity issues or not.

Hi,
it doesn’t seem to cause any issues in my project. The crash was caused by something different.

Remove the “Event End Play” my issue is that the clients will search for the server and join successfully but when server traveling the clients lose the connection and call event end play and go back to the main menu, i guess my server simulation is taking too long to travel so the clients drop themselves i dont really know you should do multiple testing with seamless travel off and steam running and not running etc

@anonymous_user_0622c5b4 and @Max Mittelstädt:
I did not face a crash but I also face a invalid player state. Very much the same setup as yours:

  • Steam Advanced Session Plugin
  • custom PlayerState ingame
  • Host/Client system.
  • Seamless travel is true

Would be very nice if someone of you have an advise: