Unity Issue Tracker - Error NullReferenceException: Object reference not set to an instance of an object when an UI Element contains a very large specific type of character set
Closed
UUM-31372
Error NullReferenceException: Object reference not set to an instance of an object when an UI Element contains a very large specific type of character set
Unity: Text (TextCore)
Won't Fix
2023.1.X
2022.3.X
2022.2.X
2022.1.X
2022.1.0a11 onwards
The main issue has been fixed, and the underlying issue of performance impact is being addressed in future versions (2023.3 and forward).
Reproduction steps
1. Open the “UIElementBug” project
2. Press the “test” Button in the “TestWindow” Window
Expected result: Text is displayed in the Window
Actual result: No text is displayed in the Window and two identical errors (NullReferenceException: Object reference not set to an instance of an object) are displayed in the console
The issue does not occur when resizing the window a little and reopening it
Pressing the button rapidly makes the issue disappears
The issue disappears when resizing the window a lot
Sub-menu items of “Test” all produce different windows with very similar results. The key difference is with the “test” sub-menu item producing the issue
Prioritise and Follow this issue
Have a workaround or additional info about this issue?