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
- "Curve" window workspace doesn't update the scale to match the selected curve preset unless reopened
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
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