Exception with PeriapsisInTargetSOI and asteroid as target
pjwerneck opened this issue ยท 1 comments
MechJeb Dev #633, KSP 1.1.3 x64 on Linux
I added the PeriapsisInTargetSOI to the Rendezvous Info window. Whenever the target is an asteroid in a suborbital trajectory, the window goes blank and I get the following exception spammed on the logs. The window is fine once I removed that info.
[EXC 20:02:21.314] InvalidCastException: Cannot cast from source type to destination type.
MuMech.MechJebModuleInfoItems.PeriapsisInTargetSOI () <0x000a8>
(wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,object) <0x00041>
MuMech.ValueInfoItem/<>c__DisplayClass13_0.<.ctor>b__0 () <0x0001f>
MuMech.ValueInfoItem.DrawItem () <0x0003b>
MuMech.MechJebModuleCustomInfoWindow.WindowGUI (int) <0x00118>
MuMech.DisplayModule.ProfiledWindowGUI (int) <0x0001b>
UnityEngine.GUILayout/LayoutedWindow.DoWindow (int) <0x000df>
UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle) <0x0017c>
In my case, it creates multi-gigabyte log, which can't be sent for analysis.
The ship uses Hyperdrive Mod
Ship used: Asteroid Recovery.zip (single stage to orbit ship with grabbing hook)
Install Hyperdrive Mod
Unpack ZIP file and move its contents to "Kerbal Space Program/Ships/VAB" (for VAB) or "Kerbal Space Program/Ships/VAB" (for SPH)
Start KSP
Open save file
Got to SPH or VAB according to placement of craft file
Reach orbit
Transfer to asteroid