This object is in archive! 

Double-Connection crashes game

Cornelius shared this bug 22 months ago
Won't Fix

Dear devs,


I have a dedicated server for Space Engineers running on my LAN that can be successfully accessed from outside the LAN via STEAM. Unfortunately, it now happens very often that the client cannot connect and the game crashes back to the desktop.


In the server logs I see the following entries when this happens:

 
16:29:56.8876 [INFO]   Keen: OnConnectedClient [IN-S] Xanamu attempt
16:29:57.1867 [INFO]   MultiplayerManagerDedicated: Connection attempt by xxx61197997456xxx from 192.168.178.26
16:29:57.2030 [INFO]   MultiplayerManagerBase: Player [IN-S] Xanamu joined (xxx61197997456xxx)
16:30:01.9691 [INFO]   Keen: World request received: [IN-S] Xanamu
16:30:41.1963 [INFO]   MultiplayerManagerDedicated: Connection attempt by xxx61197997456xxx from 0.0.0.0
16:30:41.1963 [WARN]   MultiplayerManagerDedicated: Player xxx61197997456xxx has already joined!
16:30:41.2143 [INFO]   Keen: User left [IN-S] Xanamu
16:30:41.2153 [INFO]   MultiplayerManagerBase: [IN-S] Xanamu (xxx61197997456xxx) Disconnected.
16:30:56.2215 [INFO]   Keen: Peer2Peer_ConnectionFailed [007...850], Timeout
16:30:56.2317 [INFO]   Keen: User left [007...850]
16:30:56.2317 [INFO] MultiplayerManagerBase: [007...850] (xxx61197997456xxx) Disconnected.As you can see, in this case two connections seem to be established - the first is successful, but the second is rejected with "already connected". As a result, the client crashes.

This behavior occurs with LAN internal connection attempts as well as with external ones. In any case, the IP 0.0.0.0 is listed for the second connection.

I would be happy to provide more information or test different scenarios if desired. What we have already tested:

- Checking the game files does not help in this case. The double connection still occurs.

- Also, it makes no difference if there are already players on the server or not.

Best,

Cornelius

Replies (9)

photo
1

A Server-Reboot fixes it for the first connection. after logging out and logging in again, same behaviour.

Is there some internal logging/saving of player/Ip data? maybe something broken here?

photo
1

leaving a comment here, so the ticket wont get closed.

photo
1

Hello, Engineer!

Thank you for writing to us.

Could you provide us with some additional information?

Are there any active MODs on your DS server? If yes, kindly deactivate all the MODs and recheck if the issue persists.

If the issue still exists, kindly send us the unmodded (no active MODs) world save file, the server, and the client's crash log.

  • You can access your saved files by typing %appdata% into your Windows search bar and you will be redirected to the hidden Roaming folder. After that just follow: \Roaming\SpaceEngineersDedicated\Saves.
  • Please zip the file and attach it here. If you are having difficulty attaching files you can optionally use Google Drive. When sharing a google drive link please make sure it is set to be downloadable by anyone with the link.
  • You can access your log files by typing %appdata% into your Windows search bar, and you will get redirected to the hidden Roaming folder. After that, follow: \Roaming\SpaceEngineersDedicated. Clients can find their logs in the \Roaming\SpaceEngineers folder.

We are looking forward to assisting you with this issue.

Kind Regards,

Keen Software House: QA Department

photo
1

19:07:00.6023 [INFO]   Torch.Server.Managers.MultiplayerManagerDedicated: Connection attempt by 76561197971741165 from 178.84.136.71

19:07:00.6254 [INFO]   Torch.Managers.MultiplayerManagerBase: Player [IN-S] Cyllin joined (76561197971741165)

19:09:20.0874 [INFO]   Torch.Server.Managers.MultiplayerManagerDedicated: Connection attempt by 76561197971741165 from 0.0.0.0

19:09:20.0874 [WARN]   Torch.Server.Managers.MultiplayerManagerDedicated: Player 76561197971741165 has already joined!

19:09:20.1054 [INFO]   Torch.Managers.MultiplayerManagerBase: [IN-S] Cyllin (76561197971741165) Disconnected.

19:09:35.1053 [INFO]   Torch.Managers.MultiplayerManagerBase: [007...165] (76561197971741165) Disconnected.
I've had the same issues. Log from the Server:

Attached is also the log file from the event.


The last lines are:

2023-01-06 20:07:36.142 - Thread:   1 ->  TORCH MOD: Mod communication registered successfully.2023-01-06 20:07:36.144 - Thread:   1 ->  GC Memory: 1573.53 / 1573.53 MB2023-01-06 20:07:36.538 - Thread:   1 ->  RequestRespawn2023-01-06 20:07:36.944 - Thread:   1 ->  Warning: Server failed to update game inventory items.2023-01-06 20:07:38.237 - Thread:  62 ->  Model Models\Characters\Astronaut\SE_astronaut.mwm - Found too many collision shapes, only the first 10 will be used2023-01-06 20:07:38.560 - Thread:  62 ->  Initialized large grid Caravan 13829 PCU2023-01-06 20:07:39.894 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:39.993 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.026 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.099 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.144 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.146 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.198 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.200 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.778 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.877 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:40.887 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.898 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.938 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.940 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.941 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.949 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:40.950 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.951 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.988 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:40.995 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:41.003 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:41.006 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.012 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.013 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.014 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.016 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.372 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:41.376 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.381 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.387 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.390 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.610 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:41.683 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.692 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.695 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:True data?: True2023-01-06 20:07:41.706 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.710 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:41.710 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:42.031 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:42.068 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:42.069 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 20:07:43.317 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True

photo
1

We switched from steam to EOS and were able to reproduce the issue (first time login after reboot -> OK, log out, restart game, login -> crash)


after switching to EOS, i got the following exception in the logs:


Loading voxel storage from file 'D:\Programme\SteamClient\steamapps\common\SpaceEngineers\Content\VoxelMaps\Laika5_128_128_128.vx2'2023-01-06 22:36:45.493 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 22:36:45.529 - Thread:   1 ->  MyVoxelReplicable.OnLoad - isUserCreated:False isFromPrefab:True contentChanged:False data?: True2023-01-06 22:36:46.134 - Thread:   6 ->  Error: Error creating buffer: SharpDX.SharpDXException: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: Die GPU-Geräteinstanz wurde angehalten. Verwenden Sie GetDeviceRemovedReason, um die erforderliche Aktion zu bestimmen.   at SharpDX.Result.CheckError()   at SharpDX.Direct3D11.Device.CreateBuffer(BufferDescription& descRef, Nullable`1 initialDataRef, Buffer bufferOut)   at SharpDX.Direct3D11.Buffer..ctor(Device device, IntPtr dataPointer, BufferDescription description)   at VRage.Render11.Resources.Buffers.MyBufferInternal.Init(String name, BufferDescription& description, Nullable`1 initData, MyMemorySystem memorySystem, Boolean isGlobal)Name: MyGenericBufferDebug name: <Undefined>BufferDescription: [2023-01-06 22:36:46.135 - Thread:   6 ->     Error: BindFlags = VertexBuffer, IndexBuffer2023-01-06 22:36:46.135 - Thread:   6 ->     Error: CpuAccessFlags = None2023-01-06 22:36:46.135 - Thread:   6 ->     Error: OptionFlags = None2023-01-06 22:36:46.135 - Thread:   6 ->     Error: SizeInBytes = 435522023-01-06 22:36:46.135 - Thread:   6 ->     Error: StructureByteStride = 162023-01-06 22:36:46.135 - Thread:   6 ->     Error: SizeInBytes = 435522023-01-06 22:36:46.135 - Thread:   6 ->     Error: Usage = Default2023-01-06 22:36:46.135 - Thread:   6 ->  Error: ]

photo
1

Hello, Engineer!

Thank you for providing the logs.


Could you help us with further information about the issue?

Is this issue not happening anymore on the Steam networked Dedicated Server? As requested in our previous response, we still need the dedicated server's log (both Steam & EOS networked) when the issue occurred.

Does every player (client) try to join your DS experiencing the same issue? If possible, could you provide some other client's log who had experienced the same issue and also the log of a client who could join your DS successfully?


We noticed the Graphic Card crash error in the provided log, which can get resolved by selecting a lower screen resolution and the correct Video Adapter. To do so, choose Options from the main menu > click on Display > in the Display Settings, kindly change your Video Mode to lower screen resolution (recommended aspect ratio 16:9), and make sure that the correct graphic adapter and/or monitor has been selected in the Video Adapter setting. Save the changes, restart the game if required and try to play/join the DS.

If the DS server join/game crash issue persists, kindly send us the latest logs and the unmodded (no active MODs) world save you are playing with on the said dedicated server.


Kind Regards,

Keen Software House: QA Department

photo
1

logs attached

photo
1

Perhaps an update. We've tried a long list of things:

* Disabled Torch & all mods

* Tried Steam/EOS

* Attempted with several reboots


The issue is consistent: after a reboot, a person can join without a problem. If that player leaves and rejoins, he will get crashes to desktop or the game will hang on loading screen. This is consistent and 100% reproducible. The logs are not very clear on what exactly is happening, but the sudden CTD indicates the GPU is closing down the application.

photo
1

Attached 2 logs:

One from the first join (success) 20230106_225231941

One from the second join (crash) 20230106_225511228

photo
1

Hello, Engineer!

Thank you for writing to us.


Could you help us with further information about the issue?

Does every player (client) try to join the said DS experience the same issue? If possible, could you provide some other clients' logs who had experienced the same issue and also the log of a client who could join the DS successfully?

While investigating the provided logs, we noticed an active Plugin loader in the game and consistent "TryChangeToFullscreen failed" errors. Kindly deactivate/remove plugins, and to fix the error, from the game's Main menu, click on Options, then select Display, in the Display settings, change Window Mode from current to Window/Fullscreen Window/Fullscreen mode and Video Mode to lower resolution (Recommended aspect ratio 16:9). Save the changes and restart the game if prompted, try to join the DS.

If the issue persists, kindly send us the server log (whole text file), the latest crash log, and the unmodded (no active MODs) world save you are playing with on the said dedicated server.


Kind Regards,

Keen Software House: QA Department

photo
1

Hello, Engineers!

Because there is no new comment from you, and we are unable to reproduce the issue on our own, I will close this thread now as outdated.

If you or any other player will experience this issue again, please make a new thread and provide all needed info there.

Thank you for understanding.

Kind Regards

Keen Software House: QA Department

Replies have been locked on this page!