Jump to content

NullReferenceException in AssignmentGroupController.OnSpawn


ersterletzter
  • Branch: Live Branch Version: Linux Pending

When loading the attached save file, the game crashes with following message:

Error in HabitatModuleMediumComplete: Survey Hope.AssignmentGroupController.OnSpawn 
System.NullReferenceException: Object reference not set to an instance of an object
  at PassengerRocketModule.RefreshOrders () [0x0011a] in <95c88166ab1441559f908f52d985fb0e>:0 
  at PassengerRocketModule.OnAssignmentGroupChanged (System.Object data) [0x00000] in <95c88166ab1441559f908f52d985fb0e>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x000a7] in <2de6f0e1664e452d9e1e59668a598814>:0 
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00026] in <2de6f0e1664e452d9e1e59668a598814>:0 
  at AssignmentGroup.AddMember (IAssignableIdentity member) [0x0001f] in <95c88166ab1441559f908f52d985fb0e>:0 
  at AssignmentManager.AddToAssignmentGroup (System.String group_id, IAssignableIdentity member) [0x0001d] in <95c88166ab1441559f908f52d985fb0e>:0 
  at AssignmentGroupController.RestoreGroupAssignees () [0x00044] in <95c88166ab1441559f908f52d985fb0e>:0 
  at AssignmentGroupController.OnSpawn () [0x00006] in <95c88166ab1441559f908f52d985fb0e>:0 
  at KMonoBehaviour.Spawn () [0x0005d] in <2de6f0e1664e452d9e1e59668a598814>:0 

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <a83e096d0ba5413da59ce235b648c30c>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <2de6f0e1664e452d9e1e59668a598814>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <2de6f0e1664e452d9e1e59668a598814>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <2de6f0e1664e452d9e1e59668a598814>:0 
  at KMonoBehaviour.Spawn () [0x00000] in <2de6f0e1664e452d9e1e59668a598814>:0 
  at KMonoBehaviour.Start () [0x00000] in <2de6f0e1664e452d9e1e59668a598814>:0 
Build: U47-562984-SD


Steps to Reproduce
  1. Download save file
  2. Open game, load save file
  3. Game should crash with same message as above

SANDBOX Space 6.sav




User Feedback


I have a similar crash log, where there is a error caused by the rocket. I have done some testing to what this might be, and found out that as soon as I assign a crew of duplicants to the module (click on the "crew" button and tick the dupes I want to send on a mission), then wait until an autosave occurs (or even save manually) and for the final step, I open the pause menu, and load the same savefile. Same behavior occurs when I freshly start the game and load the save via the start menu.

I have to admit that I am experimenting with "out-of-bound" rocket designs, meaning that I have melted the walls and expanded the available rocket interior space. But I didn't experience any bugs or crashes while working this way, it seems to behave orderly.

Share this comment


Link to comment
Share on other sites

I did some further testing. The same design, with the same parameters, on a freshly created map didn't crash the game after some tweaking. I found out that the lowest tiles should not contain pipes/cables/conveyors that connect "upwards" because they get severed during a reload. I once crashed the game when trying to connect a gas pipe from the lowest tile to the one below. But this was not a reload crash.

Even after assigning duplicants to crew, and removing the assignment, saving, reloading no crashes were observed.

On the old map where the savefile corruption would happen consistently, assigning duplicants to be crew of another rocket had the same effect. Creating a new rocket, and assigning the duplicants produced a corrupted save file too.

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...