Bug #3044
"ArgumentOutOfRangeException: Argument is out of range." when adding maneuver node to Landed vessel
100%
Description
When adding a maneuver node to a landed vessel (at the launch pad at the start of a mission, have not tried landed vessels elsewhere yet) via a plugin, the following message spams the debug log at least one per frame:
[Exception]: ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[PatchRendering].get_Item (Int32 index)
OrbitTargeter.ReferencePatchSelect ()
OrbitTargeter.LateUpdate ()
Additionally, it looks like the DV assigned to the maneuver node increases rapidly from whatever value you start it with.
Here's how to reproduce:
1) Create a new plugin with the following in the Update() method:
Vector3d deltaV = new Vector3d(1.0, 1.0, 1.0);
double UT = 0.0;
ManeuverNode isUseNode = FlightGlobals.ActiveVessel.patchedConicSolver.AddManeuverNode(UT);
isUseNode.OnGizmoUpdated(deltaV, UT);
2) Load the plugin into KSP.
3) Start a new game. I used sandbox mode.
4) Load a ship onto the launchpad, check debug log for error message. It should be everywhere.
I've tested this on KSP 0.24.2, Win32 edition. The bug may not be limited to that edition or version, though. Let me know if I can provide more info.
History
#1 Updated by TriggerAu over 8 years ago
- Status changed from New to Needs Clarification
#2 Updated by TriggerAu over 8 years ago
- Status changed from Needs Clarification to Closed
- % Done changed from 0 to 100
Closing this report out for now. If you find it is still occuring in the latest version of KSP please open a new report (and this one can be linked to it.) For best results, the wiki contains really useful info for when creating a report http://bugs.kerbalspaceprogram.com/projects/ksp/wiki.
You can also ask questions about the bug cleanup in the forum here: http://forum.kerbalspaceprogram.com/index.php?/topic/143980-time-to-clean-up-the-bug-tracker/ and tag @TriggerAu to get my attention