Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

InvalidOperationException: Cannot query value of control

Discussion in 'Input System' started by whitexroft, Jun 4, 2020.

  1. whitexroft

    whitexroft

    Joined:
    Oct 22, 2012
    Posts:
    48
    While stress testing we are getting the following exeptions:

    Code (CSharp):
    1. InvalidOperationException during event processing of Dynamic update; resetting event buffer
    Code (CSharp):
    1. InvalidOperationException: Cannot query value of control '/DualShock4GamepadHID/buttonNorth' before 'DualShock4GamepadHID' has been added to system!
    ... and a ton of similar errors

    As it can handle switching controls runtime alright, it seems that InputSystem have it complicated when user switches off controller WHILE holding a button on the controller.

    The controls scheme is very simple and as follows:
    upload_2020-6-4_15-3-43.png

    Is there anything that we are missing?
    We are running on 2019.3 with InputSystem 1.0.0
     
  2. whitexroft

    whitexroft

    Joined:
    Oct 22, 2012
    Posts:
    48
    Additionaly, if doing so when Input Debugger with dualshock screen open, unity basically breaks
     
  3. jiannis_hs

    jiannis_hs

    Joined:
    Apr 26, 2016
    Posts:
    8
    did you find a solution to this one? we're having the exact same issue
     
  4. victor_apihtin

    victor_apihtin

    Unity Technologies

    Joined:
    Mar 2, 2021
    Posts:
    28
    can't believe this hasn't been addressed yet
     
  5. victor_apihtin

    victor_apihtin

    Unity Technologies

    Joined:
    Mar 2, 2021
    Posts:
    28
    for anyone having this issue:
    In our case our actions were having 2 separate interactions for "Press" and for "Release"
    Setting it to a single "Press and Release" fixes the issue