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:

  1. Open the attached project "EditorTextAreaLengthLimitRegression.zip"
  2. 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

  1. 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.

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.