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
- The tag adder functionality does not work if a space is entered instead of a name
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
- Editor freezes after some time when using NavMeshQuery::Raycast
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