Search Issue Tracker
Fixed in 2019.1.X
Votes
0
Found in
2019.1.0a12
Issue ID
1108699
Regression
Yes
MeasureVisualElementTextSize in MeasureVisualElementTextSize
Calling UnityEngine.UIElements.TextElement.MeasureVisualElementTextSize results in a nullpointer.
example of a failing call:
var width = label2.MeasureTextSize(label2.text, label2.style.width.value.value, VisualElement.MeasureMode.Undefined, 20, VisualElement.MeasureMode.Exactly).x;
Repro steps:
1. Download attached Editor.zip
2. Create new project
3. Extract Editor.zip into empty project
4. Open Window > UIElements > BrokenTextMeasurements
Expected: The window opens without errors.
Actual: NullReferenceException thrown in UnityEngine.UIElements.TextElement.MeasureVisualElementTextSize
Reproducible with: in 2019.1.0a12
Not reproducible with: in 2019.1.0a11, 2018.3.0b12
Fixed in 2019.1.0a14
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
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
- A memory leak occurs in Play mode when using Direct3D12 Graphics API
Resolution Note (fix version 2019.1):
Fixed in 2019.1.0a14