ArgumentOutOfRangeException when no bases or stations available
linuxgurugamer opened this issue ยท 0 comments
Launch crew to station, and resupply resources to a station, are returning an ArgumentOutOfRangeException. I thought it might have been that my test save didn't have any vessels in orbit, but I put one in orbit and it still happens
Here is the error:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <9577ac7a62ef43179789031239ba8798>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
at MissionControllerEC.MissionControllerEC.CrewTransferContract () [0x009b6] in :0
at MissionControllerEC.MissionControllerEC.b__156_4 () [0x00001] in :0
at DialogGUIButton.OptionSelected () [0x00000] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0
at DialogGUIButton.b__23_1 () [0x00000] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0
at UnityEngine.Events.InvokableCall.Invoke () [0x00010] in <12e76cd50cc64cf19e759e981cb725af>:0
at UnityEngine.Events.UnityEvent.Invoke () [0x00022] in <12e76cd50cc64cf19e759e981cb725af>:0
at UnityEngine.UI.Button.Press () [0x0001c] in <5336a8686ff14f17888ce9a9f44f29bc>:0
at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <5336a8686ff14f17888ce9a9f44f29bc>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <5336a8686ff14f17888ce9a9f44f29bc>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00063] in <5336a8686ff14f17888ce9a9f44f29bc>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction
1)
UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()
Also, which may or may not be related, it also generates a couple of NullRefs
This is a snippit showing the nullrefs:
Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at MissionControllerEC.MissionControllerEC..ctor () [0x0005c] in :0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
AddonLoader:StartAddons(Startup)
AddonLoader:OnLevelLoaded(GameScenes)
AddonLoader:OnSceneLoaded(Scene, LoadSceneMode)
UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)
(Filename: Line: 0)
Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at PopupDialog.SpawnPopupDialog (MultiOptionDialog dialog, System.Boolean persistAcrossScenes, UISkinDef skin, System.Boolean isModal, System.String titleExtra) [0x00000] in <39c0323fb6b449a4aaf3465c00ed3c8d>:0
at MissionControllerEC.MissionControllerEC.Awake () [0x00079] in :0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
AddonLoader:StartAddons(Startup)
AddonLoader:OnLevelLoaded(GameScenes)
AddonLoader:OnSceneLoaded(Scene, LoadSceneMode)
UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)
And this is the complete log file: https://www.dropbox.com/s/1yhijluf9opv67e/MissionControllerNullRefLog.zip?dl=0