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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.