Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.0.0-preview.11
Issue ID
1305483
Regression
Yes
NullReferenceException gets thrown in the Console when the Label Text value contains CJK characters and text wrap is enabled
How to reproduce:
1. Open the attached '1305483.zip' project
2. In the Project window double-click on the 'Test' Asset
3. Observe the Console
Expected result: No visible errors present
Actual result: The 'NullReferenceException' errors appear in the Console
Reproducible with: UI Toolkit 1.0.0-preview.11 (2020.1.17f1, 2020.2.2f1), 1.0.0-preview.13 (2020.1.17f1, 2020.2.2f1)
Not reproducible with: UI Toolkit 1.0.0-preview.9 (2020.1.17f1)
Cannot test with: UI Toolkit 1.0.0-preview.9 (2018.4.30f1, 2019.4.18f1, 2020.2.2f1, 2021.1.0b2, 2021.2.0a1), 1.0.0-preview.13 (2018.4.30f1, 2019.4.18f1, 2021.1.0b2, 2021.2.0a1)(due to package errors)
Notes:
- The issue reproduces with Japanese, Chinese, and Korean characters
- The issue does not reproduce with Belarussian, Sanskrit, Arabic, Divehi, Odia, and Latin characters
- The following error gets thrown in the Console: 'NullReferenceException: Object reference not set to an instance of an object'
- The issue is also reproducible when changing the Text value via a Script
- The issue does not reproduce if the text wrap is disabled
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
- Basic UI Toolkit panels do not render when using URP+RenderGraph+D3D12
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
Resolution Note:
Fixed in: 2021.2.0a6