Open

#451 [0.91 preview 586] Cloning complex component causes client 'freeze'

area: building
GameBugby @sgalatis6 months ago

This has happened several times where I try to clone a board with several components on it. on paste, everything in the world disappears, except the cloned component I just pasted. The client seems to be doing something because I can still move the camera around and every 2-3 seconds, a temporary lag spike. The client UI is unresponsive though. Cannot get to game menu, switch item via mouse/keyboard, nothing. I have to kill the process and restart the game. Restarting does not lose the change I made thankfully.

While going through my logs, I found this:

2022-12-01T14:31:21Z | ERROR | [SceneAndNetworkManager] going to error screen with message: "Specified argument was out of the range of valid values.
Parameter name: index"
2022-12-01T14:31:21Z | INFO  | [Lidgren network client] Disconnecting from server: client disconnecting
2022-12-01T14:31:21Z | INFO  | [Integrated server output] > [Network manager] Shutting down server: server closed
2022-12-01T14:31:21Z | INFO  | [Integrated server output] [Lidgren network server] Shutting down server: server closed
2022-12-01T14:31:21Z | INFO  | [Integrated server output] [Server] Stopping server...
2022-12-01T14:31:21Z | INFO  | [Integrated server output] [Network manager] Shutting down server: server closed
2022-12-01T14:31:21Z | INFO  | [Integrated server output] [Lidgren network server] Shutting down server: server closed
2022-12-01T14:31:21Z | INFO  | [Integrated server output] [Game chat] Bobby #866772 left the game
2022-12-01T14:31:21Z | INFO  | [Integrated server output] saved game (249.4 KB)
2022-12-01T14:31:21Z | INFO  | [Integrated server output] 
2022-12-01T14:31:21Z | INFO  | [Game network] Disconnected from server! client disconnecting
2022-12-01T14:31:21Z | ERROR | [SceneAndNetworkManager] going to error screen with message: "Object reference not set to an instance of an object"
2022-12-01T14:31:21Z | ERROR | [SceneAndNetworkManager] going to error screen with message: "Object reference not set to an instance of an object"
2022-12-01T14:31:21Z | ERROR | [SceneAndNetworkManager] going to error screen with message: "Object reference not set to an instance of an object"
2022-12-01T14:31:21Z | ERROR | [SceneAndNetworkManager] going to error screen with message: "Object reference not set to an instance of an object"
2022-12-01T14:31:21Z | ERROR | [SceneAndNetworkManager] going to error screen with message: "Object reference not set to an instance of an object"

there were many thousand duplicates of that last message (the log file was almost half a megabyte in size). Even though the first line said it was going to the error screen, I never saw this on my client…the game kept going like nothing happened.


1 comments
@JimmyDeveloper5 months ago

Do you know a way to reliably reproduce this?

In the next preview (623) I’ve fixed a related issue (#437), so hopefully that fix also fixed this bug…