MechJeb2

MechJeb2

4M Downloads

Error in ascent path window loop breaks the window after 1000s

smjjames opened this issue ยท 1 comments

commented

Edit3: After a bit of investigation, I found a (there may be others, I suspect an SoI change might be one) trigger point.

  1. Start in orbit of Kerbin (my orbit was ~200km).
  2. Create and execute a hohmann transfer to either Mun or Minmus.
  3. Check the edit ascent path window before and after the hohmann transfer. It breaks right around the start of the execution.

when I tried to look at the edit ascent window while in flight around an atmosphereless body (The Mun in this case), I got spammed with exceptions. I'll check how it is on the ground, when I land.

Edit: Same result on the ground, I restarted KSP to doublecheck for sure and same. Also checked Minmus.

edit2: Happens in orbit of Kerbin as well.

screenshot31

Output log: http://sta.sh/0ptj5o7b790

commented

Additional information:

[QUOTE=MOARdV;2064104]I saw this in the log as well in orbit over Kerbin (just a regular orbit - I had lowered Pe to for re-entry, but it was a simple "go to orbit, return" flight.

[code]
[EXC 22:25:14.151] IndexOutOfRangeException: Array index is out of range.
MuMech.MechJebModuleAscentPathEditor.UpdatePathTexture ()
MuMech.MechJebModuleAscentPathEditor.WindowGUI (Int32 windowID)
UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)
UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)
[/code][/QUOTE]

[QUOTE=sarbian;2064373]In how many way can I mess up a simple loop on an array
For now add the "MARK" button (Recorder category) to a custom window and press it to reset the recorder. It should fix the window (for 1000s).
[/QUOTE]