Search Unity

TMP_TextInputField crashs on Unity WSA

Discussion in 'UGUI & TextMesh Pro' started by wagenheimer, Apr 9, 2020.

  1. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    323
    I have some crashs on Unity IL2CPP WSA when clicking on a TMP_TextInputField. It does not happens always, but it always happens the first time I run the game.

    Code (csharp):
    1. Exception thrown at 0x00007FFFD4E12D3E (UnityPlayer.dll) in Secrets of Magic 2 Witches and Wizards.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
    2.  
    The Debugger shows this :
    Code (csharp):
    1.  
    2. IL_0032:
    3.     {
    4.         // if (isFocused)
    5.         bool L_7 = TMP_InputField_get_isFocused_m133B627EE5B8F1C544B8E2000258F1DB39CFD161_inline(__this, /*hidden argument*/NULL);
    6.         if (!L_7)
    7.         {
    8.             goto IL_006c;
    9.         }
    10.     }
    11.     {
    12.         // if (m_SoftKeyboard != null && !m_SoftKeyboard.active)
    13.         TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * L_8 = __this->get_m_SoftKeyboard_19();
    14.         if (!L_8)
    15.         {
    16.             goto IL_006c;
    17.         }
    18.     }
    19.     {
    20.         TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * L_9 = __this->get_m_SoftKeyboard_19();
    21.         NullCheck(L_9);
    22.         bool L_10 = TouchScreenKeyboard_get_active_m35A2928E54273BF16CB19D11665989D894D5C79D(L_9, /*hidden argument*/NULL);
    23.         if (L_10)
    24.         {
    25.             goto IL_006c;
    26.         }
    27.     }
    28.     {
    29.         // m_SoftKeyboard.active = true;
    30.         TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * L_11 = __this->get_m_SoftKeyboard_19();
    31.         NullCheck(L_11);
    32.         TouchScreenKeyboard_set_active_m8D5FDCFA997C5EAD7896F7EB456165498727792D(L_11, (bool)1, /*hidden argument*/NULL);
    33.         // m_SoftKeyboard.text = m_Text;
    34.         TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * L_12 = __this->get_m_SoftKeyboard_19();
    35.         String_t* L_13 = __this->get_m_Text_53();
    36.         NullCheck(L_12);
    37.         TouchScreenKeyboard_set_text_mF72A794EEC3FC19A9701B61A70BCF392D53B0D38(L_12, L_13, /*hidden argument*/NULL);
    38.     }
    39.  
    The crash is on this line :
    Code (csharp):
    1.  
    2. TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * L_12 = __this->get_m_SoftKeyboard_19();
    3.  
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    What version of the TMP package are you using?

    If not the latest (Preview 8) please be sure to test with that version.