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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
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