Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.3.X

Votes

0

Found in

2021.3.30f1

2022.3.10f1

2023.1.14f1

2023.2.0b10

2023.3.0a6

Issue ID

UUM-49349

Regression

Yes

TextMeshPro throws an ArgumentOutOfRangeException when glyph's id is greater than the sprite array

--

-

Reproduction steps:
1. Open the “Repro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Select the “Text (TMP)” GameObject located under the “Canvas” GameObject in the Hierarchy window
4. Observe the Console

Expected result: No errors are present
Actual result: “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index” error is logged

Reproducible with: 3.2.0-pre.4, 3.2.0-pre.5 (2021.3.30f1, 2022.3.10f1, 2023.1.14f1), 3.2.0-pre.5 (2023.2.0b10, 2023.3.0a6)
Not reproducible with: 3.0.6, 3.2.0-pre.3 (2021.3.30f1, 2022.3.10f1, 2023.1.14f1)
Couldn’t test with: 4.0.0-pre.1, 4.0.0-pre.2 - due to errors in the project

Reproducible on: Windows 10 Pro (22H2)
Not reproducible on: No other environment tested

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.