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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug NullReferenceException in SendTouchScreenKeyboardStatusChanged on Android and IOS devices in 3.0.6

Discussion in 'UGUI & TextMesh Pro' started by TheBsetSeal, Jul 19, 2022.

  1. TheBsetSeal

    TheBsetSeal

    Joined:
    Jan 23, 2021
    Posts:
    1
    I keep getting NullReferenceException in SendTouchScreenKeyboardStatusChanged on Android and IOS devices. According to recent logs it is occuring while trying to access
    m_SoftKeyboard.status
    at this method:
    Code (CSharp):
    1.  
    2. protected void SendTouchScreenKeyboardStatusChanged()
    3.         {
    4.             if (onTouchScreenKeyboardStatusChanged != null)
    5.                 onTouchScreenKeyboardStatusChanged.Invoke(m_SoftKeyboard.status);
    6.         }
    7.  
    and error stack trace here:

    Code (CSharp):
    1. [1916,3740 0,0190] [0 +0] [ Mem: 455,78 +0,0000] [TMPro.TMP_InputField]. Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    2.   at TMPro.TMP_InputField.SendTouchScreenKeyboardStatusChanged () [0x00000] in <000000000000
    3. 00000000000000000000>:0
    4.   at TMPro.TMP_InputField.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0
    5. FxGames.Core.Logging.UnityConsoleLogger:Log(fxLogLevels, String, Exception, T)
    6. FxGames.Core.Logging.FxLogProvider:Log(fxLogLevels, String, Exception, T)
    7. FxGames.Core.Logging.FxUnityLogger:LogException(Exception, Object)
    8. UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
    Am I right that this bug was fixed at [1.6.0-preview.1] - 2021-08-06? Seems that same problem still exists at unity 2021.3.5f1 at package version 3.0.6.
    upload_2022-7-19_15-9-9.png