Bug #3273
Undo for sole part causes crash/hang
100%
Description
As reported in the Support (unmodded installs) forum by super, the following steps cause a crash (Win) or hang (Mac) in KSP 0.24.2:
- Enter the editor
- Choose a part
- Remove the part
- Choose another part
- Undo part placement with Ctrl-z/Cmd-z
- Launch the no-parts craft
The game crashes or hangs with two Exceptions: @ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
at System.Collections.Generic.List`1[Part].get_Item (Int32 index) [0x00000] in <filename unknown>:0
at ShipConstruction.RestoreBackup (Int32 index) [0x00000] in <filename unknown>:0
at EditorLogic.UndoRedo () [0x00000] in <filename unknown>:0
at EditorLogic.UpdatePartMode () [0x00000] in <filename unknown>:0
at EditorLogic.Update () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component:InternalGetGameObject ()
at UnityEngine.Component.get_gameObject () [0x00000] in <filename unknown>:0
at ShipConstruct.SaveShip () [0x00000] in <filename unknown>:0
at ShipConstruction.CreateBackup (.ShipConstruct ship) [0x00000] in <filename unknown>:0
at EditorLogic.launchVessel () [0x00000] in <filename unknown>:0
(Filename: Line: -1)@
KSP: 0.24.2 Mac OS X 10.9.5
History
#1 Updated by Master_Tao about 10 years ago
Accidentally hit Create while trying to Preview:
As reported in the Support (unmodded installs) forum by super, the following steps cause a crash (Win) or hang (Mac) in KSP 0.24.2:
- Enter the editor
- Choose a part
- Remove the part
- Choose another part
- Undo part placement with Ctrl-z/Cmd-z
- Launch the no-parts craft
The game crashes or hangs with two Exceptions:
ArgumentOutOfRangeException: Argument is out of range. Parameter name: index at System.Collections.Generic.List`1[Part].get_Item (Int32 index) [0x00000] in <filename unknown>:0 at ShipConstruction.RestoreBackup (Int32 index) [0x00000] in <filename unknown>:0 at EditorLogic.UndoRedo () [0x00000] in <filename unknown>:0 at EditorLogic.UpdatePartMode () [0x00000] in <filename unknown>:0 at EditorLogic.Update () [0x00000] in <filename unknown>:0 (Filename: Line: -1) NullReferenceException at (wrapper managed-to-native) UnityEngine.Component:InternalGetGameObject () at UnityEngine.Component.get_gameObject () [0x00000] in <filename unknown>:0 at ShipConstruct.SaveShip () [0x00000] in <filename unknown>:0 at ShipConstruction.CreateBackup (.ShipConstruct ship) [0x00000] in <filename unknown>:0 at EditorLogic.launchVessel () [0x00000] in <filename unknown>:0 (Filename: Line: -1)
KSP: 0.24.2 Mac OS X 10.9.5
Mods installed: none
Output log: Player.log attached
Workaround: Only use undo when multiple parts are placed, or don't choose Launch immediately afterwards.
#2 Updated by RexKramer almost 10 years ago
I am not able to get a crash or hang in 0.90, OS X 10.10.1. I am still getting the ArgumentOutOfRangeException, and some strange behavior in the VAB, so the bug is still present in 0.90.
#3 Updated by TriggerAu over 8 years ago
- Status changed from New to Needs Clarification
#4 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