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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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