InputSystem
InputSystem copied to clipboard
IndexOutOfRangeException: Index was outside the bounds of the array.
I'm getting this error
IndexOutOfRangeException: Index was outside the bounds of the array.
UnityEngine.Experimental.Input.InputActionMapState.ChangePhaseOfAction (UnityEngine.Experimental.Input.InputActionPhase newPhase, UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger, UnityEngine.Experimental.Input.InputActionPhase phaseAfterPerformedOrCancelled) (at Packages/com.unity.inputsystem/InputSystem/Actions/InputActionMapState.cs:845)
UnityEngine.Experimental.Input.InputActionMapState.ChangePhaseOfInteraction (UnityEngine.Experimental.Input.InputActionPhase newPhase, UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger, System.Boolean remainStartedAfterPerformed) (at Packages/com.unity.inputsystem/InputSystem/Actions/InputActionMapState.cs:752)
UnityEngine.Experimental.Input.InputInteractionContext.Performed () (at Packages/com.unity.inputsystem/InputSystem/Actions/InputInteractionContext.cs:95)
UnityEngine.Experimental.Input.Interactions.PressInteraction.Process (UnityEngine.Experimental.Input.InputInteractionContext& context) (at Packages/com.unity.inputsystem/InputSystem/Actions/Interactions/PressInteraction.cs:38)
UnityEngine.Experimental.Input.InputActionMapState.ProcessInteractions (System.Int32 mapIndex, System.Int32 controlIndex, System.Int32 bindingIndex, System.Double time, System.Int32 interactionStartIndex, System.Int32 interactionCount) (at Packages/com.unity.inputsystem/InputSystem/Actions/InputActionMapState.cs:624)
UnityEngine.Experimental.Input.InputActionMapState.ProcessControlStateChange (System.Int32 mapIndex, System.Int32 controlIndex, System.Int32 bindingIndex, System.Double time, UnityEngine.Experimental.Input.LowLevel.InputEventPtr eventPtr) (at Packages/com.unity.inputsystem/InputSystem/Actions/InputActionMapState.cs:546)
UnityEngine.Experimental.Input.InputActionMapState.UnityEngine.Experimental.Input.LowLevel.IInputStateChangeMonitor.NotifyControlStateChanged (UnityEngine.Experimental.Input.InputControl control, System.Double time, UnityEngine.Experimental.Input.LowLevel.InputEventPtr eventPtr, System.Int64 mapControlAndBindingIndex) (at Packages/com.unity.inputsystem/InputSystem/Actions/InputActionMapState.cs:455)
UnityEngine.Experimental.Input.InputManager.FireStateChangeNotifications (System.Int32 deviceIndex, System.Double internalTime, UnityEngine.Experimental.Input.LowLevel.InputEvent* eventPtr) (at Packages/com.unity.inputsystem/InputSystem/InputManager.cs:2963)
UnityEngine.Experimental.Input.InputManager.OnUpdate (UnityEngine.Experimental.Input.InputUpdateType updateType, UnityEngine.Experimental.Input.LowLevel.InputEventBuffer& eventBuffer) (at Packages/com.unity.inputsystem/InputSystem/InputManager.cs:2693)
UnityEngine.Experimental.Input.LowLevel.NativeInputRuntime+<>c__DisplayClass6_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.Int32 eventCount, System.IntPtr eventPtr) (at Packages/com.unity.inputsystem/InputSystem/NativeInputRuntime.cs:110)
UnityEngineInternal.Input.NativeInputSystem.NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.Int32 eventCount, System.IntPtr eventData) (at C:/buildslave/unity/build/Modules/Input/Private/Input.cs:91)
every time a binding from second action map is performed
Looks similar
IndexOutOfRangeException: Index was outside the bounds of the array.
at UnityEngine.Experimental.Input.InputActionMapState.ChangePhaseOfAction (UnityEngine.Experimental.Input.InputActionPhase newPhase, UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger, UnityEngine.Experimental.Input.InputActionPhase phaseAfterPerformedOrCancelled) [0x000d6] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:845
at UnityEngine.Experimental.Input.InputActionMapState.ProcessControlStateChange (System.Int32 mapIndex, System.Int32 controlIndex, System.Int32 bindingIndex, System.Double time, UnityEngine.Experimental.Input.LowLevel.InputEventPtr eventPtr) [0x00152] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:569
at UnityEngine.Experimental.Input.InputActionMapState.UnityEngine.Experimental.Input.LowLevel.IInputStateChangeMonitor.NotifyControlStateChanged (UnityEngine.Experimental.Input.InputControl control, System.Double time, UnityEngine.Experimental.Input.LowLevel.InputEventPtr eventPtr, System.Int64 mapControlAndBindingIndex) [0x0000f] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:455
at UnityEngine.Experimental.Input.InputManager.FireStateChangeNotifications (System.Int32 deviceIndex, System.Double internalTime, UnityEngine.Experimental.Input.LowLevel.InputEvent* eventPtr) [0x00078] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\InputManager.cs:2963
at UnityEngine.Experimental.Input.InputManager.OnUpdate (UnityEngine.Experimental.Input.InputUpdateType updateType, UnityEngine.Experimental.Input.LowLevel.InputEventBuffer& eventBuffer) [0x00936] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\InputManager.cs:2693
at UnityEngine.Experimental.Input.LowLevel.NativeInputRuntime+<>c__DisplayClass6_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.Int32 eventCount, System.IntPtr eventPtr) [0x00011] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\NativeInputRuntime.cs:110
at UnityEngineInternal.Input.NativeInputSystem.NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.Int32 eventCount, System.IntPtr eventData) [0x00011] in C:\buildslave\unity\build\Modules\Input\Private\Input.cs:91
(Filename: Library/PackageCache/[email protected]/InputSystem/Actions/InputActionMapState.cs Line: 845)
IndexOutOfRangeException: Index was outside the bounds of the array.
at UnityEngine.Experimental.Input.InputActionMapState.GetActionOrNull (UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger) [0x00091] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:985
at UnityEngine.Experimental.Input.InputActionMapState.GetActionOrNoneString (UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger) [0x00001] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:954
at UnityEngine.Experimental.Input.InputActionMapState.ThrowIfPhaseTransitionIsInvalid (UnityEngine.Experimental.Input.InputActionPhase currentPhase, UnityEngine.Experimental.Input.InputActionPhase newPhase, UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger) [0x0006e] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:938
at UnityEngine.Experimental.Input.InputActionMapState.ChangePhaseOfAction (UnityEngine.Experimental.Input.InputActionPhase newPhase, UnityEngine.Experimental.Input.InputActionMapState+TriggerState& trigger, UnityEngine.Experimental.Input.InputActionPhase phaseAfterPerformedOrCancelled) [0x00099] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:837
at UnityEngine.Experimental.Input.InputActionMapState.ProcessControlStateChange (System.Int32 mapIndex, System.Int32 controlIndex, System.Int32 bindingIndex, System.Double time, UnityEngine.Experimental.Input.LowLevel.InputEventPtr eventPtr) [0x00152] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:569
at UnityEngine.Experimental.Input.InputActionMapState.UnityEngine.Experimental.Input.LowLevel.IInputStateChangeMonitor.NotifyControlStateChanged (UnityEngine.Experimental.Input.InputControl control, System.Double time, UnityEngine.Experimental.Input.LowLevel.InputEventPtr eventPtr, System.Int64 mapControlAndBindingIndex) [0x0000f] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\Actions\InputActionMapState.cs:455
at UnityEngine.Experimental.Input.InputManager.FireStateChangeNotifications (System.Int32 deviceIndex, System.Double internalTime, UnityEngine.Experimental.Input.LowLevel.InputEvent* eventPtr) [0x00078] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\InputManager.cs:2963
at UnityEngine.Experimental.Input.InputManager.OnUpdate (UnityEngine.Experimental.Input.InputUpdateType updateType, UnityEngine.Experimental.Input.LowLevel.InputEventBuffer& eventBuffer) [0x00936] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\InputManager.cs:2693
at UnityEngine.Experimental.Input.LowLevel.NativeInputRuntime+<>c__DisplayClass6_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.Int32 eventCount, System.IntPtr eventPtr) [0x00011] in J:\Maze\Library\PackageCache\[email protected]\InputSystem\NativeInputRuntime.cs:110
at UnityEngineInternal.Input.NativeInputSystem.NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.Int32 eventCount, System.IntPtr eventData) [0x00011] in C:\buildslave\unity\build\Modules\Input\Private\Input.cs:91
(Filename: Library/PackageCache/[email protected]/InputSystem/Actions/InputActionMapState.cs Line: 985)
@gj52 Does this still happen on 0.2.6-preview? I don't see it on my end anymore.
0.2.6 works for me, no problems. Thanks.
Good news! Closing this bug.