Crash on save load

Fixed
PHENlCUS [github] · 1 year ago

Issue description

Crashed while loading save

Reproduction steps

Crashed while loading

Game version and build number

v0.6.4d b347

Operating system

Windows

Attachments

The game failed to initialize. Please file a bug report if this issue persists.

Mafi.Serialization.CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Terrain.Trees.TreesManager+TreeDistanceChunk' (type 'TreeDistanceChunk'. Previous deserialized object: Mafi.Core.Terrain.Trees.TreesManager+TreeDistanceChunk (type TreeDistanceChunk) ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Mafi.Serialization.BlobReader.ReadArray[T] () [0x00022]
at Mafi.Core.Terrain.Trees.TreesManager+TreeDistanceChunk.DeserializeData (Mafi.Serialization.BlobReader reader) [0x0000c]
at Mafi.Core.Terrain.Trees.TreesManager+TreeDistanceChunk+<>c.<.cctor>b__17_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__30.MoveNext () [0x00062]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__30.MoveNext () [0x000f3]
at Mafi.Core.SaveGame.GameLoader+<FinishGameLoadAndDisposeTimeSliced>d__7.MoveNext () [0x002ae]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__3.MoveNext () [0x002e8]
at Mafi.Unity.GamePlayScene+<loadGame>d__21.MoveNext () [0x00296]
at Mafi.Unity.GamePlayScene+<Initialize>d__18.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__70.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dc]

25-01-21_12-45-26_7648.log

1 attachment only for registered users
Captain Filip Captain Filip · 1 year ago

It could be a corruption in the save file before we added full checksums, hard to say. However, since issues like this were not reported for a couple of months, it seems like this have been fixed. Let us know if it happens again and attach the save file.

Closed as ✅ Fixed

5 Showing 1–2 of 2