Search Issue Tracker
By Design
Votes
0
Found in
2022.3.12f1
2023.1.19f1
2023.2.0a19
Issue ID
UUM-54667
Regression
No
"A VisualElement of type 'UnityEngine.UIElements.TextElement' attempted to allocate 105528 vertices, which exceeds the limit of 65535 vertices per VisualElement" is thrown when TextField is annotated with TextAreaAttribute and is too long
How to reproduce:
- Open the attached project "EditorTextAreaLengthLimitRegression.zip"
- Select SampleScene>LotsOfText in the Hierarchy window
Expected results: No errors are thrown
Actual results: "A VisualElement of type 'UnityEngine.UIElements.TextElement' attempted to allocate 105528 vertices, which exceeds the limit of 65535 vertices per VisualElement" is thrown
Reproducible with: 2022.3.12f1, 2023.1.19f1, 2023.2.0a19
Not reproducible with: 2021.3.31f1, 2023.2.0a20, 2023.2.0b16, 2023.3.0a11
Reproducible on: Windows 10 22H2
Not reproducible on: No other environment tested
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
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
Resolution Note:
This is a known limitation of TextCore (used by IMGUI text fields), in 2022.x. 2023+ removes this limitation. The fix, however is not simple and is too risky to backport to 2022.
Note, also, that even in 2021, as far as I know, the limitation was still there. Text would just be cut off at the end after too many characters. The only difference was that there was no error to let you know this was happening.