Failed to save the game

Crash Saves & Loading
zsbbalitto [github] · 2 months ago

Issue description

I am not using any mods. But using an intel i9 13900k, so this might cause the issue, just like when loading the game.
Maybe related: the game sometimes crashes to desktop when it's trying to autosave. Happens mostly if I either move the camera at the same time or when trying to put down pipes while it's trying to autosave.
Issue is not persistent, it happens maybe every 5-10h of gametime

Failed to save the game 'C:\Users\username\AppData\Roaming\Captain of Industry\Saves\Emergent Retreat\26-08-02_13-56-autosave.save': Object reference not set to an instance of an object

If you are using mods, please ensure they are compatible with the current game version. Otherwise, file a bug report including this error message and your logs, so we can investigate.

at Mafi.Serialization.BlobWriter.TryStartClassSerialization[T] (T obj) [0x0007f] in <48fa3e43f2944300911acc07428f2bc4>:0
at Mafi.Collections.Lyst1[T].Serialize (Mafi.Collections.Lyst1[T] value, Mafi.Serialization.BlobWriter writer) [0x00000] in <48fa3e43f2944300911acc07428f2bc4>:0
at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Collections.Lyst1&lt;Mafi.Core.Factory.Transports.Transport/TransportClearingBuffer>,Mafi.Serialization.BlobWriter) at Mafi.Serialization.BlobWriter.WriteGeneric[T] (T obj) [0x00032] in <48fa3e43f2944300911acc07428f2bc4>:0 at Mafi.Option1[T].Serialize (Mafi.Option`1[T] value, Mafi.Serialization.BlobWriter writer) [0x00021] in <48fa3e43f2944300911acc07428f2bc4>:0
at Mafi.Core.Factory.Transports.Transport.SerializeData (Mafi.Serialization.BlobWriter writer) [0x00043] in <82c0d12eda814ac9b9850f6fe852b028>:0
at Mafi.Core.Factory.Transports.Transport+<>c.<.cctor>b__219_0 (System.Object obj, Mafi.Serialization.BlobWriter writer) [0x00000] in <82c0d12eda814ac9b9850f6fe852b028>:0
at Mafi.Serialization.BlobWriter.FinalizeSerialization () [0x0001f] in <48fa3e43f2944300911acc07428f2bc4>:0
at Mafi.Core.SaveGame.GameSaver.StartSave (Mafi.DependencyResolver resolver, Mafi.Core.SaveGame.SaveCompressionType saveCompressionType) [0x000be] in <82c0d12eda814ac9b9850f6fe852b028>:0
at Mafi.Core.SaveGame.SaveManager.startGameSave () [0x00033] in <82c0d12eda814ac9b9850f6fe852b028>:0

Reproduction steps

  1. play the game
  2. wait for autosave

Game version and build number

v0.8.6c (b612)

Operating system

Windows

17 Showing 1–2 of 2