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