Steps to reproduce:
- Create a new project
- Create a new USS file (Create > UI Toolkit > Style Sheet (USS))
- Create two UI Documents, name them "parent" and "child" (Create > UI Toolkit > UI Document (USS))
- Open each Document in UI Builder
- Click "+" > Add Existing USS and add previously created USS (on both Documents)
- Open the "parent" in UI Builder and navigate to Project tab in Library tab
- Expand the Assets foldout to find "child.uxml" and drag it into Hierarchy
- Save the "parent.uxml" and drag it into the main Editor Hierarchy
- From the Hierarchy, click on the arrow next to "parent.uxml" to open it In Context (Make sure UI Authoring is enabled in Project Settings)
- In the opened context, press the arrow again next to "child.uxml"
- From the Project window, rename the "parent.uxml"
- Observe the Project window and Console
Actual results: "ArgumentNullException: Value cannot be null.
Parameter name: key" errors are thrown and the Project window freezes
Expected results: No errors and the Project window does not freeze
Reproducible with versions: 6000.7.0a3
Not reproducible with versions: 6000.6.0b5, 6000.7.0a2 (only warnings present)
Can't test with: 6000.5.5f1 (In Context editing not available)
Tested on (OS): macOS 26.5
Notes:
- Other windows remain functional. To recover Editor functionality after reproduction, navigate back from the "child.uxml"
- A separate console warning was also observed once - "SelectorAccelerationCache: ... has changed but change was not notified to SelectorAccelerationCache, please report a bug" - triggered by navigating back via breadcrumbs after reproduction. This did not reproduce consistently on retry