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

Question InvalidOperationException during event processing of Dynamic update; resetting event buffer

Discussion in 'Input System' started by PiGameDev, Feb 4, 2022.

  1. PiGameDev

    PiGameDev

    Joined:
    Mar 3, 2019
    Posts:
    5
    Hello,
    I'm having trouble with the Unity input system.
    In the editor, everything works great. However, on the android device I'm getting exceptions when I click on the button:
    Code (CSharp):
    1. 2022.02.04 15:01:18.115 21115 21931 Error Unity InvalidOperationException: Event 'id=218191 type=
    2. 2022.02.04 15:01:18.115 21115 21931 Error Unity   at UnityEngine.InputSystem.LowLevel.InputEvent.GetNextInMemoryChecked (UnityEngine.InputSystem.LowLevel.InputEvent* currentPtr, UnityEngine.InputSystem.LowLevel.InputEventBuffer& buffer) [0x00000] in <00000000000000000000000000000000>:0
    3. 2022.02.04 15:01:18.115 21115 21931 Error Unity   at UnityEngine.InputSystem.LowLevel.InputEventBuffer.AdvanceToNextEvent (UnityEngine.InputSystem.LowLevel.InputEvent*& currentReadPos, UnityEngine.InputSystem.LowLevel.InputEvent*& currentWritePos, System.Int32& numEventsRetainedInBuffer, System.Int32& numRemainingEvents, System.Boolean leaveEventInBuffer) [0x00000] in <00000000000000000000000000000000>:0
    4. 2022.02.04 15:01:18.115 21115 21931 Error Unity   at UnityEngine.InputSystem.LowLevel.InputEventStream.Advance (System.Boolean leaveEventInBuffer) [0x00000] in <00000000000000000000000000000000>:0
    5. 2022.02.04 15:01:18.115 21115 21931 Error Unity   at UnityEngine.InputSystem.InputManager.OnUpdate (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) [0x00000] in <0000000000000000000000000000000
    6. 2022.02.04 15:01:18.117 21115 21931 Error Unity InvalidOperationException during event processing of Dynamic update; resetting event buffer
    7. 2022.02.04 15:01:18.117 21115 21931 Error Unity UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    8. 2022.02.04 15:01:18.117 21115 21931 Error Unity UnityEngineInternal.Input.NativeUpdateCallback:Invoke(NativeInputUpdateType, NativeInputEventBuffer*)
    Here is my button:
    upload_2022-2-4_15-13-5.png
    and my binding:
    upload_2022-2-4_15-13-29.png

    What am I doing wrong?
    Why do I get the exception on the android device?
    Please help.
     
  2. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    Try latest unity update and input system 1.3.0, there were some memory corruption issues on android that we were fixing recently.
     
  3. PiGameDev

    PiGameDev

    Joined:
    Mar 3, 2019
    Posts:
    5
    Thank you for the suggestion, I will try it and let you know.
     
  4. wanfei

    wanfei

    Joined:
    Dec 22, 2018
    Posts:
    19
    1.3.0 This problem still exists. When will the bug be fixed?
     
    SeizenPass likes this.
  5. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    The fix here is on the native side. Should work with a recent Unity version.
     
  6. wanfei

    wanfei

    Joined:
    Dec 22, 2018
    Posts:
    19
    Thanks for your reply. Can you tell me which version and when?
     
  7. SeizenPass

    SeizenPass

    Joined:
    Jan 28, 2021
    Posts:
    1
    Hello. Which version of Unity solves the issue? I mean, can I use 2021 LTS for that?
     
  8. wanfei

    wanfei

    Joined:
    Dec 22, 2018
    Posts:
    19
    Can you tell me which version it is? We will not upgrade the engine, but we have the source code of the engine. Can you tell me where to change it
     
  9. BraindanceDev

    BraindanceDev

    Joined:
    Oct 25, 2022
    Posts:
    3
    Sorry for necro'ing but still happening in unity 2020.3.22 aswell as 2023.1.14 (Android)