Unity Issue Tracker - "UnityException" error is thrown and UI Document is not rendered when using World space rendering and saving the scene
Closed
UUM-110163
"UnityException" error is thrown and UI Document is not rendered when using World space rendering and saving the scene
Unity: UI Toolkit Graphics
Won't Fix
6.6.X
6.5.X
6.4.X
6.3.X
6.2.X
6000.2.0a7 onwards
6.0.X
6000.2 will not receive further update, hence the bug will not be fixed.
Unity 6000.2 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
How to reproduce:
1. Open the attached “IN-104603” project
2. Open the “SampleScene”
3. Save the scene
4. Observe the Scene view and the Console
Expected result: The UI Document is rendered, no errors in the Console
Actual result: The UI Document is not rendered, “UnityException” error is thrown
Reproducible with: 6000.2.0a7, 6000.2.0b6
Not reproducible with: 6000.0.51f1, 6000.1.8f1, 6000.2.0a6
Couldn’t test with: 2021.3.53f1, 2022.3.63f1 (World space rendering not implemented)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
An “UnityException: GetPtrFromInstanceID can only be called from the main thread.” error is thrown
Error is repeatedly thrown while the “UIDocument” is in any Camera's view and moving the mouse cursor
Only reproducible when Font asset is used in the Font property of the UXML
Prioritise and Follow this issue
Have a workaround or additional info about this issue?