Search Issue Tracker
Fixed in 3.2.0-pre.2
Votes
1
Found in [Package]
3.0.6
Issue ID
1385888
Regression
No
IndexOutOfRangeException is thrown when typing into TextMeshPro Input Field with Truncated Text
How to reproduce:
1. Open the user's attached project
2. Open scene Scenes/test
3. Go to the Game view and press the Play button
4. Left-click to select the Input Field in the middle of the Game view
5. Type any text
Expected result: no exceptions are thrown and text is input into the field
Actual result: IndexOutOfRangeException: Index was outside the bounds of the array. TMPro.TMP_InputField.GenerateCaret (UnityEngine.UI.VertexHelper vbo, UnityEngine.Vector2 roundingOffset) <...>
Reproducible with: 2.1.6 (2019.4.34f1), 3.0.6 (2020.3.26f1, 2021.2.8f1, 2022.1.0b4, 2022.2.0a2)
Could not test with: 3.2.0-pre.1, 3.2.0-pre.2, 4.0.0-pre.1 (TMP errors (Cannot implicitly convert type 'UnityEngine.Vector4[]' to 'UnityEngine.Vector2[]' <...>))
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note (fix version 3.2.0-pre.2):
Fixed in TextMeshPro 3.2.0-pre.2 available for Unity 2020.3.0f1 and up