#[1.0.3-rc3] [1.0] Simulation crash and game freeze - null ref

41 messages · Page 1 of 1 (latest)

molten vigil
#

I had stepped away from the game for a second, and when I came back the main view of the game was a nondescript purple screen. Menus were still responsive and I could view operator levels and such, but the simulation itself had apparently crashed. I was unable to save my game and eventually had to quit without saving, which then triggered the unity crash reporter. Savefile and logfile attached, although if there was a condition in the save that caused this, it's likely not present in this save since the game had crashed and my autosave interval is set low

Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
  at Game.Core.Belts.BeltPath.FastBeltPathLane.CanAcceptItem (IBeltItem itemToTransfer) [0x00030] in <27f05032f927428cb7066f7179dba2fa>:0 
  at BeltPathLane.MoveItem_SAFE (System.Int32 slotIndex, Game.Core.Simulation.Steps steps_S, System.Int32& newSlotIndex) [0x001a0] in <27f05032f927428cb7066f7179dba2fa>:0 
  at BeltPathLane.Update (Game.Core.Simulation.Ticks delta_T) [0x0003e] in <27f05032f927428cb7066f7179dba2fa>:0 
  at Game.Content.BuildingPath.Simulation.ConveyorPathSimulation.Update (Game.Core.Simulation.Ticks startTicks, Game.Core.Simulation.Ticks deltaTicks) [0x00000] in <b31cac0ab19b4e2bb159e02c12cf4edb>:0 
  at Game.Core.Map.Simulation.Clustering.SimulationCluster.Update (Game.Core.Simulation.Ticks deltaTicks) [0x00081] in <2c9dfac3944b455e91e75982a146a8fb>:0 
Rethrow as AggregateException: One or more errors occurred. (ConveyorPathSimulation @ index 18/40
(ConnectableConveyorSimulation @ GlobalChunkCoordinate(527, -376, 0))
2 connected to:
- BeltPortTransferSimulation (19/40)
- BeltPortTransferSimulation (17/40)
runic runeBOT
#

Thank you for reporting this bug! Our team will review your report soon.
Feel free to add more details in follow-up messages — we're also scanning for duplicate reports automatically now.
📨 There are currently 33 reports awaiting team review. Due to the high volume, it may take a little longer for us to get to yours.
⏰ Our team is off on weekends, so it may take a bit longer for us to review your report. Thank you for your patience!

📋 Log files help us investigate issues. You can find yours here:
Windows: %USERPROFILE%\AppData\LocalLow\tobspr Games\shapez 2\Player.log

runic runeBOT
#

[1.0.3-rc3] [1.0] Simulation crash and game freeze - null ref

#

NullReferenceException: Object reference not set to an instance of an object - FastBeltPathLane.CanAcceptItem
Done • Priority: Medium • Fix: Dimension Update [0.1.0] • Game: 0.0.9-rc6 • Resolution: Cannot Reproduce

A NullReferenceException occurs in FastBeltPathLane.CanAcceptItem during Conveyor Belt simulation, specifically at a Space Belt connected to a SpacePathForwarder at coordinates (-1391, -1321, 0). This error repeats every simulation tick (40+ times in the log) and prevents the game from saving, causing both manual and automatic saves to fail. The player lost 1 hour of progress due to the save failure. The null reference originates from BeltItemSerializer.Serialize attempting to serialize an in...

#

StackOverflowException: The requested operation caused a stack overflow error occurred when loading save file
Done • Priority: Highest • Fix: 1.0.0 Release • Game: 1.0.0-beta3 • Resolution: Duplicate

A StackOverflowException occurs when loading a specific savegame, caused by a recursive loop in BeltPathLane.getMaxStepS and SplittingItemDistributor.[token redacted] related to Split machines. The save loads and briefly becomes responsive, but then spams errors repeatedly. In development builds this results in a purple screen of death, while in release builds the game crashes to desktop. The expected behavior is that the savegame loads without errors or crashes. This issue was identified as ...
💬 Threads: [1.0.0-beta2] repeatable crash on loadin

#

'FastBeltPathLane' error spam present on save with multiple trains jumping to Vortex
Done • Priority: Highest • Fix: None • Game: 0.0.9-rc7 • Resolution: Won't Fix

A FastBeltPathLane error spam occurs when loading a Savegame with multiple Trains jumping to The Vortex. The error indicates inconsistent MaxStepS values compared to FirstItemDistanceS in the Conveyor Belt path simulation system. The issue appears for a few seconds after startup on Space Belts and is related to Trains using different timing than other simulations. Items may be discarded when Space Belts are loaded with invalid max_steps values. The bug causes continuous error logs and reporte...
💬 Threads: [0.1.0-PRE8-RC1] Trains jump into vortex

#

Exception: Exception of type 'System.Exception' was thrown. (old Savegame)
Done • Priority: High • Fix: Version 0.0.9 • Game: 0.0.1 • Resolution: Done

Loading an old savegame causes a repeating exception that fills the player log to several hundred MB. The error occurs in the train cargo filling container system when transferring items between belts and train wagons. The issue was caused by fluids being incorrectly deserialized, which proved fatal for train configuration that relies on fluid units. The game becomes unplayable due to the continuous exception spam.

#

Fatal error on launch with a savegame of current Alpha (20)
Done • Priority: Medium • Fix: 4 - Early Access • Game: 0.0.0-alpha20 • Resolution: Done

Fatal error occurs when loading a savegame in Alpha 20. Initial reports suggested the crash happens after unlocking the last Belt Speed upgrade and then restarting the game. However, another user experienced the crash without unlocking speed upgrades, only using Wires. Log analysis reveals a sanity check failure in the Conveyor Belt path system where the belt was empty but had mismatched item distance data, preventing the savegame from loading properly.

molten vigil
#

can't see the full text of the jira issues but it looks like the qa bot hit number 1 seems to match. [SPZ2-3752]

blissful cradle
# molten vigil can't see the full text of the jira issues but it looks like the qa bot hit numb...

Thanks for reporting this issue.
This discord bug report is what SPZ2-3752 is based on:
#1316852417320714251 message
The error supplied was a little different from yours but might be the same.
And even though the report was set to confirmed, it was never reproduced internally.
This screenshot is the location that the error is pointing to. Any way you remember what was there? Perhaps you have an existing blueprint that was in this location?

molten vigil
#

are you sure those are the right coordinates? I haven't built anything there on this save

runic runeBOT
#

✅ Thank you for providing further information, our team will have a look again!

molten vigil
#

the area I was working on is in the vicinity of 1,-F

blissful cradle
molten vigil
#

hmm. yeah idk

#

very odd

blissful cradle
#

The rebuilding of what you lost similar to what you had before?

#

Or you haven't rebuilt it yet?

molten vigil
#

yes - making the trade stations for the final hard milestones

#

no issues since the crash

blissful cradle
# molten vigil no issues since the crash

Are you blocking the analytics with a firewall?
The error log appears to show that the game can't see the analytics servers.
This is what was shown just before the error spam occurred.

molten vigil
#

I have a pihole on my network, might have that domain in the blocklist. lemme check

blissful cradle
#

I just pulled the power out of my switch (disconnecting from the internet), and its coming up with the same thing, but not so many lines.
I am guessing that the analytics was trying to upload the errors before they were displayed in the log file.

molten vigil
#

yeah, unfortunately cdp.cloud.unity3d.com is in the blocklist, but I think this just means that the crash data failed to upload. I don't think it's the cause of the crash itself

#

I can allowlist that host now in case it happens again

blissful cradle
#

@molten vigil How much system ram do you have?

runic runeBOT
#

✅ Thank you for providing further information, our team will have a look again!

blissful cradle
molten vigil
#

not that I’ve seen. I didn’t check at the time of that incident, however 🤦‍♂️

blissful cradle
#

Were you moving around a lot and/or pasting lots of blueprints before it happened?

molten vigil
#

I had just pasted a large blueprint and then stepped afk

#

But not anywhere close to the coordinates that error had

blissful cradle
#

That's right, the save you supplied is smaller than what the game would have had at the time it crashed.

#

Maybe the error was wrong about the location.

#

Doesn't take much to increase the ram usage. I went from 80% to 90% from just pasting a bunch of blueprints.

#

Now I am at maximum ram.

#

That doesn't usually happen in my normal game play.

molten vigil
#

For what it’s worth this hasn’t happened to me again but I’ve moved on to a new save anyway. If it does happen again I’ll be sure to check the process system stats to see memory usage