Search Issue Tracker

Fixed in 1.4.2 & 2.0.2



Found in [Package]

1.4.0 - preview.1b

Issue ID




[TextMeshPro] IndexOutOfRangeExceptions in TMP_InputField.cs are thrown when entering Chinese text in TMP Input Field

Package: TextMeshPro


To reproduce:

1. Download attached "" project and open in Unity
2. Open "Repro" scene
3. Change your Keyboard input source to Chinese (Pinyin - Simplified)
4. Enter to Play mode
5. Enter random characters and press the Spacebar fast

Expected results: No Errors or Exceptions occur
Actual results: IndexOutOfRangeExceptions are thrown:

"IndexOutOfRangeException: Index was outside the bounds of the array.
TMPro.TMP_InputField.GenerateCaret (UnityEngine.UI.VertexHelper vbo, UnityEngine.Vector2 roundingOffset) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_InputField.cs:3307)
TMPro.TMP_InputField.OnFillVBO (UnityEngine.Mesh vbo) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_InputField.cs:3275)
TMPro.TMP_InputField.UpdateGeometry () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_InputField.cs:3213)
TMPro.TMP_InputField.Rebuild (UnityEngine.UI.CanvasUpdate update) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_InputField.cs:3188)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at /Volumes/External/Applications/2019.3/Unity 2019.3.0a7_ec42ba0792fd/

- This issue appears both on Windows and macOS
- This Error is not 100% reproducible, so, it's necessary to repeat multiple times 4 and 5 steps in order to generate the Issue
- It is hard to find is there are regression because Project always corrupts itself if I try to change Package to 1.3.0 so I referencing regression from case 1146626

Reproducible on Package versions: 1.4.0 - preview.1b and 2.0.1
Not Reproducible with package versions: 1.3.0

Reproduced on Unity 2018.4.3f1, 2019.1.8f1, 2019.2.0b7 and 2019.3.0a7

  1. Response avatar

    Resolution Note (fix version 1.4.2 & 2.0.2):

    The issue has been resolved. The fix for this issue will be included in the next release of the TMP package which will be version 1.4.2 for Unity 2018.4 and 2.0.2 for Unity 2019.x.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.