Search Issue Tracker
Duplicate
Votes
0
Found in
6000.0.5f1
Issue ID
UUM-73827
Regression
No
KeyNotFoundException error thrown in the Console when clicking on a button in a UIDocument
Reproduction steps:
1. Open the attached "ReproProj" project
2. Click on the “Load scenario maps” button to the left of the Play mode button
3. Click the “Edit map Test.Scenario” button
4. In the Game view, click on the “Triggers” button
5. Observe the Console logs
Expected Result: KeyNotFoundException error thrown in the Console
Actual Result: No errors thrown in the Console
Reproducible with: 6000.0.5f1
Could not test with: 2021.3.39f1, 2022.3.32f1 (due to errors when downgrading)
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Notes:
- The error is continuously thrown even after leaving the Play mode
- Full error message: “KeyNotFoundException: The given key 'ObservableValue: True' was not present in the dictionary.”
-
Resolution Note:
Same underlying issue that was reported earlier from https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-72490.
The issue was that the ObservableValue class was using a hash code that was computed from the value, so when a struct/struct-like value was used, it wouldn't be found in the cached dictionary.
This should be fixed in version Unity 6000.0.6f1.
Duplicate of another internal issue: UUM-69322: “InvalidOperationException” errors are thrown when changing property elements and attempting to access them during runtime
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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
This is a duplicate of issue #UUM-69322