Search Issue Tracker

Won't Fix



Found in [Package]


Issue ID




MissingReferenceException and IndexOutOfRangeException are thrown when there is an undefined char in TextMeshPro (TMP) text and entering or exiting Play mode

Package: TextMeshPro


To reproduce:
1. Open the user’s project
2. Open the “Minimal scene with text and buttons” Scene
3. Enter Play mode, note that there are no errors, and exit Play mode
4. Expand Canvas and activate “Text (TMP) BUG (standalone)” in the Hierarchy
5. Enter Play mode, exit Play mode, and note the errors in the Console
6. Deactivate the “Text (TMP) BUG (standalone)” GameObject
7. Activate “Button targeting text with BUG” in the Hierarchy
8. Enter Play mode, exit Play mode, and note the errors in the Console
9. Activate “Text (TMP) BUG (standalone)” GameObject
10. Enter Play mode, exit Play mode, and note the errors in the Console
11. Deactivate “Text (TMP) BUG (standalone)” and “Button targeting text with BUG” GameObjects
12. Enter Play mode

Expected result: There are no errors in the Console
Actual result: There is an error “IndexOutOfRangeException: Index was outside the bounds of the array” spam in the Console on entering and exiting the Play mode

Reproducible with: 3.0.6 (2020.3.39f1, 2021.3.9f1, 2022.1.16f1, 2022.2.0b8, 2023.1.0a10)

Reproduced on: macOS Monterey 12.5.1 (Intel)

- Error at the 5th and 7th steps is “MissingReferenceException: The object of type 'Material' has been destroyed but you are still trying to access it”
- Note the Fonts folder, which contains a font without special chars like hyphens and brackets, as well as the TMP font asset generated from it

  1. Resolution Note:

    Thank you for bringing this issue to our attention. After careful consideration, we have determined that this issue is not aligned with our current development priorities and focus areas (UI Toolkit). As such, we have decided not to invest time and resources into addressing it. We appreciate your input and understanding, and please let us know if you have any other concerns or issues you would like to report in the future.

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.