Jump to content

Index out of range exception when doing science


Recommended Posts

I'm having an issue where whenever i attempt to perform a science experiment, the expected window with the science information never shows up. The button to perform the experiment also disappears until i right click the part again. Whenever this happens, the following appears in the output log:

Spoiler

IndexOutOfRangeException: Array index is out of range.
  at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 
  at DMagic.Part_Modules.DMModuleScienceAnimate.getBiome (ExperimentSituations s) [0x00000] in <filename unknown>:0 
  at DMagic.Part_Modules.DMModuleScienceAnimate.makeScience (ExperimentSituations vesselSituation) [0x00000] in <filename unknown>:0 
  at DMagic.Part_Modules.DMModuleScienceAnimate.runExperiment (ExperimentSituations sit, Boolean silent) [0x00000] in <filename unknown>:0 
  at DMagic.Part_Modules.DMModuleScienceAnimate.gatherScienceData (Boolean silent) [0x00000] in <filename unknown>:0 
  at DMagic.Part_Modules.DMModuleScienceAnimate.DeployExperiment () [0x00000] in <filename unknown>:0 
  at BaseEvent.Invoke () [0x00000] in <filename unknown>:0 
  at UIPartActionButton.OnClick () [0x00000] in <filename unknown>:0 
  at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0 
  at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0 
  at UnityEngine.UI.Button.Press () [0x00000] in <filename unknown>:0 
  at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <filename unknown>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <filename unknown>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()
 
(Filename:  Line: -1)

This seemingly only happens on bodies other than Kerbin, it only fails to work on the Mun and Minmus (as far as i've seen).

The full output log can be found here:

https://www.dropbox.com/s/zdugm0f4jptbeo3/output_log.txt?dl=0

And my modlist (it's a lot, I may have an addiction) can be found here (I do use CKAN):

Edit: Issue is caused by Kopernicus, is a known issue, to be fixed.

Edited by Raven Industries
Link to comment
Share on other sites

1 minute ago, linuxgurugamer said:

You have a problem with pone of DMagic's mods, best to contact him

Perhaps it isn't in the log i provided, but it also happens with stock experiments, such as surface samples and eva reports, so I'm not sure whether it's confined to Dmagic's mods.

This happens when taking a surface sample or EVA report:

Spoiler

IndexOutOfRangeException: Array index is out of range.
  at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 
  at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 
  at ModuleScienceExperiment+<gatherData>c__Iterator87.MoveNext () [0x00000] in <filename unknown>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

 

Link to comment
Share on other sites

1 hour ago, Raven Industries said:

Perhaps it isn't in the log i provided, but it also happens with stock experiments, such as surface samples and eva reports, so I'm not sure whether it's confined to Dmagic's mods.

This happens when taking a surface sample or EVA report:

  Reveal hidden contents

IndexOutOfRangeException: Array index is out of range.
  at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 
  at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 
  at ModuleScienceExperiment+<gatherData>c__Iterator87.MoveNext () [0x00000] in <filename unknown>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

 

It could still be the DMAgic stuff, you need to remove the mods to see if it is still happening in stock

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...