Unity Issue Tracker - NullReferenceException and ArgumentException errors are thrown after entering and exiting Play mode when UI Document component is used in the Scene
Closed
UUM-24716
NullReferenceException and ArgumentException errors are thrown after entering and exiting Play mode when UI Document component is used in the Scene
Unity: UI Toolkit Framework
Won't Fix
2023.2.X
2022.2.X
2021.3.X
Unable to reproduce in 2023.2.0a12
As the description state it is Fixed in 2023.1.0a1.
Unable to reproduce in 2022.2.16f1.
Unable to reproduce the issue, possibly already fixed.
Reproduction steps:
1. Open the attached “TransitionBug.zip“ project
2. Open “SampleScene” scene
3. Enter Play mode
4. Exit Play mode and observe the Console window
Expected result: Console window shows no errors
Actual result: Console window shows errors
Reproducible with: 2021.3.17f1, 2022.2.0a16, 2022.2.3f1
Not reproducible with: 2023.1.0a26
Could not test with: 2020.3.44f1 (Due to error in the Console window)
Fixed in: 2023.1.0a1
Reproduced on: macOS Monterey 12.6 (Intel)
Errors:
NullReferenceException: Object reference not set to an instance of an object
ArgumentException: An item with the same key has already been added
Note: Script error is related to the UI Document component bug
Prioritise and Follow this issue
Have a workaround or additional info about this issue?