I turned on the “Launch Separate Server” option and the “Run As Client” option, and executed the game in 2-player mode. While the game was running (approximately after 3 seconds), the server process window and the client window suddenly closed. I checked the logs, but there was no information related to crashes. However, intermittently, there are instances of success (when playing for more than 3 seconds). In such cases, both the server and client remain active, and the game proceeds normally.
In the logs, there were differences between the cases of success and failure:
In successful cases:
...
[2023.11.22-08.38.58:233][119]LogEngine: Server switch level: /PvPDemo/Maps/Parking_NoBG?Name=Player
[2023.11.22-08.38.58:233][119]LogNet: Browse: /PvPDemo/Maps/Parking_NoBG?Name=Player
[2023.11.22-08.38.58:233][119]LogLoad: LoadMap: /PvPDemo/Maps/Parking_NoBG?Name=Player
[2023.11.22-08.38.58:233][119]LogWorld: BeginTearingDown for /PvPDemo/Maps/Parking_NoBG
[2023.11.22-08.38.58:234][119]LogNet: World NetDriver shutdown IpNetDriver_0 [GameNetDriver]
[2023.11.22-08.38.58:234][119]LogNet: DestroyNamedNetDriver IpNetDriver_0 [GameNetDriver]
[2023.11.22-08.38.58:235][119]LogExit: GameNetDriver IpNetDriver_0 shut down
... and then successfully playing ...
In unsuccessful cases:
...
[2023.11.22-06.28.31:498][101]LogEngine: Server switch level: /PvPDemo/Maps/Parking_NoBG?Name=Player
[2023.11.22-06.28.31:498][101]LogNet: Browse: /PvPDemo/Maps/Parking_NoBG?Name=Player
[2023.11.22-06.28.31:498][101]LogLoad: LoadMap: /PvPDemo/Maps/Parking_NoBG?Name=Player
[2023.11.22-06.28.31:498][101]LogWorld: BeginTearingDown for /PvPDemo/Maps/Parking_NoBG
[2023.11.22-06.28.31:498][101]LogNet: World NetDriver shutdown IpNetDriver_0 [GameNetDriver]
[2023.11.22-06.28.31:499][101]LogNet: DestroyNamedNetDriver IpNetDriver_0 [GameNetDriver]
[2023.11.22-06.28.31:499][101]LogNet: UNetConnection::SendCloseReason:
... and then shutdown server and client playing ...
Could you please provide insights on what might be causing the issue in both cases?