o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.89k stars 2.22k forks source link

[MultiplayerSample]Client can not connect to Server after disconnect #8862

Closed xiapeng78 closed 2 years ago

xiapeng78 commented 2 years ago

Describe the bug MultiplayerSample project. Client can not connect to Server after disconnect.

Steps to reproduce Steps to reproduce the behavior:

  1. Run MultiplayerSample.ServerLauncher.exe process
  2. Run MultiplayerSample.GameLauncher.exe process as player A, player A can connect to server
  3. Run another MultiplayerSample.GameLauncher.exe process as player B, player B can connect to server
  4. Open console window on player B, execute 'disconnect' and 'unloadlevel' command by sequence, player B can leave game
  5. Then execute 'connect' command in console window on player B, but player B can not connect to server again

Expected behavior Client can connect to Server after disconnect

Found in Branch Branch: development

Desktop/Device (please complete the following information):

Additional context Add any other context about the problem here.

junbo75 commented 2 years ago

I was able to repro this issue locally with two players/clients connected to the server. Attached are the client and server side logs. Server - Copy.log Game - Copy.log Game(1) - Copy.log

junbo75 commented 2 years ago

Note that I can get a different type of error when test this issue with the following steps (reconnect a single client/player to the server):

  1. Run MultiplayerSample.ServerLauncher.exe process
  2. Run MultiplayerSample.GameLauncher.exe process as player A and connect to the server
  3. Open console window on player A, execute 'disconnect' and 'unloadlevel' command by sequence, player A can leave game
  4. Then execute 'connect' command in console window on player A, but player A can not connect to server again

Client and server log attached. Server - Copy (2).log Game(2) - Copy.log

lmbr-pip commented 2 years ago

Second reported issue with final player leaving is by design.

lmbr-pip commented 2 years ago

Accepted as major, could raise to critical based on investigation

junbo75 commented 2 years ago

The fix for this issue has been merged into the stabilization branch.