Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
3.0.6
Issue ID
TMPB-122
Regression
No
MissingReferenceException and IndexOutOfRangeException are thrown when there is an undefined char in TextMeshPro (TMP) text and entering or exiting Play mode
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)
Notes:
- 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
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
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are enabled
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.