Search Unity

Question "ArgumentException while executing"

Discussion in 'Input System' started by laurentlavigne, Mar 2, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    using Input action map in c# gen mode, I just started running into this, what causes this?
    I turned off PlayerInput, removed events that were empty, still happening.
    also the console error doesn't link to anything in my code so what's the fix?
    Code (CSharp):
    1. ArgumentException while executing 'canceled' callbacks of 'UI/outfit[/XInputControllerWindows/dpad/left]'
    2. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    3. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    4.  
    followed by that
    Code (CSharp):
    1. ArgumentException: method arguments are incompatible
    2. System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) (at <9577ac7a62ef43179789031239ba8798>:0)
    3. System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at <9577ac7a62ef43179789031239ba8798>:0)
    4. UnityEngine.Events.InvokableCall..ctor (System.Object target, System.Reflection.MethodInfo theFunction) (at <bad59441812943c7b8d5a5ba85795810>:0)
    5. UnityEngine.Events.PersistentCall.GetRuntimeCall (UnityEngine.Events.UnityEventBase theEvent) (at <bad59441812943c7b8d5a5ba85795810>:0)
    6. UnityEngine.Events.PersistentCallGroup.Initialize (UnityEngine.Events.InvokableCallList invokableList, UnityEngine.Events.UnityEventBase unityEventBase) (at <bad59441812943c7b8d5a5ba85795810>:0)
    7. UnityEngine.Events.UnityEventBase.RebuildPersistentCallsIfNeeded () (at <bad59441812943c7b8d5a5ba85795810>:0)
    8. UnityEngine.Events.UnityEventBase.PrepareInvoke () (at <bad59441812943c7b8d5a5ba85795810>:0)
    9. UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <bad59441812943c7b8d5a5ba85795810>:0)
    10. UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.InlinedArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at Library/PackageCache/com.unity.inputsystem@1.1.0-preview.3/InputSystem/Utilities/DelegateHelpers.cs:51)
    11. UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    12. UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
    13.  
     

    Attached Files: