Search Issue Tracker

Fixed

Fixed in 1.4.1

Votes

3

Found in [Package]

1.3.0

Issue ID

ISXB-156

Regression

No

InputSystem.onAnyButtonPress.Call outputs errors in the Console when a button is pressed in the Play mode

Package: New Input System Bugs

-

How to reproduce:
1. Open the attached "Input.zip" project from the Google Drive
2. Enter Play mode
3. Press any button and observe the console

Expected results: The console outputs the name of the button that was pressed
Actual results: The console outputs the name of the button that was pressed and errors

Reproducible with: 1.1.1 (2019.4.39f1, 2020.3.35f1), 1.2.0 (2019.4.39f1, 2020.3.35f1), 1.3.0 (2019.4.39f1, 2020.3.35f1, 2021.3.3f1, 2022.1.2f1, 2022.2.0a13)
Could not test with: 1.0.2 (2019.4.39f1) - onAnyButtonPress does not exist

Reproducible on: macOS 11.6.5 (Intel)

Errors:
ArgumentException: Event must be a StateEvent or DeltaStateEvent but is a TEXT instead
Parameter name: eventPtr
UnityEngine.InputSystem.InputControlExtensions.EnumerateControls (UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr, UnityEngine.InputSystem.InputControlExtensions+Enumerate flags, UnityEngine.InputSystem.InputDevice device, System.Single magnitudeThreshold) (at Library/PackageCache/com.unity.inputsystem@1.3.0/InputSystem/Controls/InputControlExtensions.cs:1023)
UnityEngine.InputSystem.InputControlExtensions.GetFirstButtonPressOrNull (UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr, System.Single magnitude, System.Boolean buttonControlsOnly) (at Library/PackageCache/com.unity.inputsystem@1.3.0/InputSystem/Controls/InputControlExtensions.cs:1105)
UnityEngine.InputSystem.InputSystem+<>c.<get_onAnyButtonPress>b__79_0 (UnityEngine.InputSystem.LowLevel.InputEventPtr e) (at Library/PackageCache/com.unity.inputsystem@1.3.0/InputSystem/InputSystem.cs:2404)
UnityEngine.InputSystem.LowLevel.SelectObservable`2+Select[TSource,TResult].OnNext (TSource evt) (at Library/PackageCache/com.unity.inputsystem@1.3.0/InputSystem/Utilities/Observables/SelectObservable.cs:43)
UnityEngine.InputSystem.LowLevel.InputEventListener+ObserverState.<.ctor>b__2_0 (UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr, UnityEngine.InputSystem.InputDevice device) (at Library/PackageCache/com.unity.inputsystem@1.3.0/InputSystem/Events/InputEventListener.cs:127)
UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue1,TValue2] (UnityEngine.InputSystem.Utilities.CallbackArray`1[System.Action`2[TValue1,TValue2]]& callbacks, TValue1 argument1, TValue2 argument2, System.String callbackName, System.Object context) (at Library/PackageCache/com.unity.inputsystem@1.3.0/InputSystem/Utilities/DelegateHelpers.cs:71)
UnityEngine.InputSystem.LowLevel.<>c_{_}DisplayClass7_0:<set_onUpdate>b{_}_0(NativeInputUpdateType, NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) (at /Users/bokken/buildslave/unity/build/Modules/Input/Private/Input.cs:120)

Workaround: Input is still detected when pressed.

  1. Resolution Note (fix version 1.4.1):

    Can't reproduce with 1.4.1 anymore

Comments (2)

  1. Chrueschsch1e

    Jun 09, 2022 11:07

    I have the same issue (Unity v. 2021.3.4 LTS, InputSystem v. 1.3.0).

  2. aydin_khp

    Jun 06, 2022 18:44

    I am experiencing the same problem.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.