Bug #28266
Argument Out of Range Exception (AOORE) is happening when a pod (root part also) is set to heaviest part and a docking port is set to heaviest part and is moved to the pod with EVA construction..and visualize autostruts is enabled.
0%
Description
KSP 1.12.1 + BG + MH
Do the following:- Have a pod that is root part
- Set Pod to heaviest part
- Attach part below (like a tank)
- Attach 1 docking port to the part below
- Set docking port to heaviest part
- Launch with engineer
- Turn on visualize autostruts
- EVA engineer
- Turn on EVA construction
- Grab docking port and place on pod
Screenshot shows result
AOORE DockingPortPodVisualizeAStrutBugSave.sfs for testing
Doesn't happen if the visualize autostruts is turned off.
Error in log is as follows and keeps spamming until the docking port is moved off the pod:
[EXC 12:21:09.297] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef43179789031239ba8798>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <9577ac7a62ef43179789031239ba8798>:0)
Part.DrawAutoStrutLine () (at <a5c262f7fe724eb9918d4487db8b635e>:0)
Part.LateUpdate () (at <a5c262f7fe724eb9918d4487db8b635e>:0)