Search Issue Tracker
Fixed in 1.1-pre.6
Votes
0
Found in [Package]
1.0.0
Issue ID
1291709
Regression
No
[InputSystem] Exception thrown continuously when Undo operation is performed with Supported Devices list in the Project Settings
When the Supported Devices list is added under Input System Package Settings in the Project Settings window and Undo operation is performed then it causes the editor to throw ArgumentOutOfRangeException continuously, Also the added input devices are not removed from the list, Refer attached video.
Steps to reproduce:
1. Create a new project
2. Window > Package Manager > Input System > Install
3. Edit > Project Settings > Input System Package > Create settings asset
4. Supported Device > Add (Joystick, Mouse, Keyboard, etc.)
5. Edit > Undo Inspector
Actual Result:
ArgumentOutOfRangeException is thrown continuously on performing Undo operation with Supported Device List under Input System Project Settings
Expected Result:
Undo operation is performed gracefully
Reproducible in:
2021.1.0a5, 2020.2.0b11, 2020.1.12f1, 2019.4.14f1, 2018.4.29f1 with package version 1.0.0, 0.2.1-preview
Environment:
Windows10 and macOS 10.15
Stack trace:
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
UnityEngine.InputSystem.Utilities.ReadOnlyArray`1[TValue].get_Item (System.Int32 index) (at Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Utilities/ReadOnlyArray.cs:117)
UnityEngine.InputSystem.Editor.InputSettingsProvider+<>c__DisplayClass12_0.<InitializeWithCurrentSettings>b__3 (UnityEngine.Rect rect, System.Int32 index, System.Boolean isActive, System.Boolean isFocused) (at Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Editor/Settings/InputSettingsProvider.cs:284)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect, UnityEngine.Rect visibleRect) (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEditorInternal.ReorderableList.DoLayoutList () (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEngine.InputSystem.Editor.InputSettingsProvider.OnGUI (System.String searchContext) (at Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Editor/Settings/InputSettingsProvider.cs:126)
UnityEditor.SettingsWindow.DrawControls () (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
UnityEngine.InputSystem.Utilities.ReadOnlyArray`1[TValue].get_Item (System.Int32 index) (at Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Utilities/ReadOnlyArray.cs:117)
UnityEngine.InputSystem.Editor.InputSettingsProvider+<>c__DisplayClass12_0.<InitializeWithCurrentSettings>b__3 (UnityEngine.Rect rect, System.Int32 index, System.Boolean isActive, System.Boolean isFocused) (at Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Editor/Settings/InputSettingsProvider.cs:284)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect, UnityEngine.Rect visibleRect) (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEditorInternal.ReorderableList.DoLayoutList () (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEngine.InputSystem.Editor.InputSettingsProvider.OnGUI (System.String searchContext) (at Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Editor/Settings/InputSettingsProvider.cs:126)
UnityEditor.SettingsWindow.DrawControls () (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at <20090764902e4293871cd9b1a16b42f1>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <ea9e8ac7e3ff427f8b124b300d3b8a68>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <f2a59ed0ea0d4e54baa7d077aaf5393a>:0)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 1.1-pre.6):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1332