Save Game Crash

wik0007 [github] · 4 years ago

Issue description

A number of times the game crashes, usually around time when it tries to do an Auto Save.

This time the save function crashed, but not the game. I was unable to manually save the game either. I was given an undefined object error.

I have attached a screen capture of the error.
Captain of Industry Save Bag

Expected behavior

I expected the game to save either by overwriting an existing file or by saving a new file.

Reproduction steps

Unable to assist. The game randomly does this. The undefined object error is the first time it has happened to me and I do not know how to reproduce it.

Game version

v0.4.9c

Attachments

22-08-08_12-50-02_2003.log
22-08-08_05-11-12_5945.log
22-08-08_05-21-31_0111.log
22-08-08_05-22-15_1114.log
22-08-08_05-26-24_4472.log
22-08-08_05-27-55_2210.log
Player-prev.log
Player.log

22-08-08_06-57-05_8961.log
Captain of Industry Save Issue

9 attachments only for registered users
Captain Zuff Captain Zuff · 4 years ago

This sometimes happens with Windows Ransomware Protection being on
image
image

This can prevent the application from accessing the Documents folder. Could you check and see if that is on? If so, turn it off and see if the issue persist.

wik0007 [github] · 4 years ago

Hi Zuff-Coi,

I have just verified that the controlled folder access is off.

I have also found the crash dumps that may assist
Crash_2022-07-14_102023984_crash.dmp, Crash_2022-07-14_102023984_error.log, Crash_2022-07-14_102023984_Player.log, Crash_2022-07-14_163943498_crash.dmp, Crash_2022-07-14_163943498_error.log, Crash_2022-07-14_163943498_Player.log, Crash_2022-08-07_212149112_crash.dmp, Crash_2022-08-07_212149112_Player.log, Crash_2022-08-09_085253641_crash.dmp, Crash_2022-08-09_085253641_Player.log
.

10 attachments only for registered users
Captain Zuff Captain Zuff · 4 years ago

Thanks wik0007, I've escalated this to the team.

Captain Filip Captain Filip · 4 years ago

There is definitely something bad happening. And I have not seen this before.

Could you please provide us your save files that are hitting this? I for instance see "22-08-08_13-05-autosave.save"

I can see the following in logs:

X 06:47:23,770 S1144589 ~Sim: Exception thrown in event callback.
---> NullReferenceException: Object reference not set to an instance of an object
at Mafi.Core.PathFinding.VehiclePathFinder.continuePathFinding (System.Int32& stepsLeft, System.Boolean newTaskStartedThisSimStep)
at Mafi.Core.PathFinding.VehiclePathFinder.ContinueVehiclePathFinding (System.Int32& iterations, System.Boolean newTaskStartedThisSimStep, System.Boolean isFinalAttempt)
at Mafi.Core.PathFinding.VehiclePathFindingManager.updatePathFindingTasks ()
at Mafi.Core.PathFinding.VehiclePathFindingManager.update ()

X 07:05:23,317 S1155064 ~Mai: Failed to save game.
---> NullReferenceException: Object reference not set to an instance of an object
at Mafi.Serialization.BlobWriter.TryStartClassSerialization[T] (T obj)
at Mafi.Core.PathFinding.ClearancePathabilityProvider+CapabilityChunkData.Serialize (Mafi.Core.PathFinding.ClearancePathabilityProvider+CapabilityChunkData value, Mafi.Serialization.BlobWriter writer)

X 21:26:46,041 S------ ~Mai: Invocation of init action 'initSelf' on 'TerrainManager' failed.
---> TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
at Mafi.Serialization.BlobReader.invokeInit (Mafi.Serialization.BlobReader+InitAfterLoad initData, Mafi.Option1[T] resolver) [0x0018a] at Mafi.Serialization.BlobReader.FinalizeLoading (Mafi.Option1[T] resolver)
---> NullReferenceException: Object reference not set to an instance of an object
at Mafi.Collections.Lyst`1[T].get_Last ()
at Mafi.Base.Terrain.DirtOnRocksTerrainPostProcessor.PostProcessGeneratedIslandMap (Mafi.Core.Map.IslandMap map, Mafi.Core.Terrain.Generation.GeneratedTerrainData terrainData) [0x000c3]
at Mafi.Core.Terrain.Generation.TerrainGenerator.GenerateAndPostProcessTerrain ()
at Mafi.Core.Terrain.TerrainManager.generateTerrain (System.Boolean gameIsBeingLoaded)

8 Showing 1–7 of 7