Failed to save due to lack of of memory despite having sufficient memory

Player setup Saves & Loading
cw64 [github] · 1 year ago

Issue description

Failed to save the game!:
Failed to save the game 'C:\Users\0\AppData\Roaming\Captain of Industry\Saves\Hopeful Sanctuary\1.save': Out of memory

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.

System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int)
at System.IO.MemoryStream.set_Capacity (System.Int32 value) [0x00051] in <e19fb1224222436ca0871ff12e7fb293>:0
at System.IO.MemoryStream.EnsureCapacity (System.Int32 value) [0x0005c] in <e19fb1224222436ca0871ff12e7fb293>:0
at System.IO.MemoryStream.WriteByte (System.Byte value) [0x0003b] in <e19fb1224222436ca0871ff12e7fb293>:0
at System.IO.BinaryWriter.Write (System.Byte value) [0x00000] in <e19fb1224222436ca0871ff12e7fb293>:0
at Mafi.Serialization.BlobWriter.WriteUInt (System.UInt32 value) [0x0003e] in <893d4badfcb24024bdfdc6aea2a32ce2>:0
at Mafi.Core.Terrain.TerrainMaterialThicknessSlim.Serialize (Mafi.Core.Terrain.TerrainMaterialThicknessSlim value, Mafi.Serialization.BlobWriter writer) [0x00000] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Core.Terrain.TerrainManager+TerrainData.<Serialize>g__writeTile|54_0 (System.Int32 absI, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass54_0& ) [0x001b2] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Core.Terrain.TerrainManager+TerrainData.<Serialize>g__writeChangedTiles|54_1 (System.Int32 index, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass54_0& ) [0x00022] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Core.Terrain.TerrainManager+TerrainData.Serialize (Mafi.Core.Terrain.TerrainManager+TerrainData value, Mafi.Serialization.BlobWriter writer) [0x00150] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Core.Terrain.TerrainManager.SerializeData (Mafi.Serialization.BlobWriter writer) [0x0003c] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Core.Terrain.TerrainManager+<>c.<.cctor>b__401_0 (System.Object obj, Mafi.Serialization.BlobWriter writer) [0x00000] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Serialization.BlobWriter.FinalizeSerialization () [0x0001c] in <893d4badfcb24024bdfdc6aea2a32ce2>:0
at Mafi.Core.SaveGame.GameSaver.StartSave (Mafi.DependencyResolver resolver, Mafi.Core.SaveGame.SaveCompressionType saveCompressionType) [0x000b8] in <9df539b50b204ac7bb573dab5dd233d4>:0
at Mafi.Core.SaveGame.SaveManager.startGameSave () [0x00030] in <9df539b50b204ac7bb573dab5dd233d4>:0

Image

Reproduction steps

No idea

Game version and build number

v0.7.9 b495

Operating system

Windows

Attachments

25-09-06_11-07-58_3572.log, 25-09-02_15-10-34_9027.log, 25-09-05_15-14-41_5521.log

Player-prev.log, Player.log

%USERPROFILE%/AppData/Local/Temp/Mafi Games/Captain of Industry/Crashes does not exist (Temp is empty)

5 attachments only for registered users
poltime poltime · 1 year ago

How much free space is there on the C: drive?

16 Showing 1–3 of 3