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

Clicking on a UI "Input Field" on android crashes\bugs out the whole game (InputDispatcher error)

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

  1. BlackBunnyCrankn

    BlackBunnyCrankn

    Joined:
    Mar 21, 2020
    Posts:
    21
    As soon as i click on a UI input field i get a crash\bug that only happens on android.
    I ran a Log and i think this is the error:

    2022/02/04 22:51:39.403 1599 6286 Error InputDispatcher Window handle Window{5b4bff4 u0 com.DefaultCompany.Zombie/com.unity3d.player.UnityPlayerActivity} has no registered input channel

    I have tried upgrading my unity version to 2020.3.27f1 thinking it might of been a bug. I also tried rebuilding, clearing the data folder and reinstalling restarting etc. Nothing seems to work.

    The bug is strange, basically some parts of the UI still work but other things just freeze in place with only that error.
     
    Last edited: Feb 4, 2022
  2. BlackBunnyCrankn

    BlackBunnyCrankn

    Joined:
    Mar 21, 2020
    Posts:
    21
    Found out what was happening i have a manager that has this peice of code to handle when the game is out of focus: void OnApplicationFocus(bool focusStatus)

    Basically for some silly reason when a input field is used on android this onApplicationFocus(true) is called even though the game is still technically playing. Is this a bug because this seems a bit weird to me
     
  3. won-gyu

    won-gyu

    Joined:
    Mar 23, 2018
    Posts:
    25
    Did you fix this issue?