Search Issue Tracker
Fixed in 2021.3.X
Votes
0
Found in
2021.2.11f1
2021.3.1f1
Issue ID
1420033
Regression
Yes
[UI Builder] Invalid Operation Exception when adding new elements to Hierarchy
Reproduction steps:
1. Open the project attached in report
2. Open SampleScene
3. In Hierarchy select UI
4. Double click the source asset to open it in UI Builder
5. Drag a text field into Hierarchy
Expected result: there are no errors in the console
Actual result: "InvalidOperationException: Collection was modified; enumeration operation may not execute." errors are thrown
Reproducible with: 2021.2.11f1, 2021.3.1f1
Not reproducible with: 2021.2.10f1, 2022.1.0b16, 2022.2.0a11
Could not test with 2019.4, 2020.3 (downgrading issues)
Error:
InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () (at <6073cf49ed704e958b8a66d540dea948>:0)
System.Collections.Generic.List`1+Enumerator[T].MoveNext () (at <6073cf49ed704e958b8a66d540dea948>:0)
UnityEngine.UIElements.UIElementsRuntimeUtility.UpdateRuntimePanels () (at <a1bb4781672a473da2508a63172fb75e>:0)
UnityEngine.UIElements.UIElementsRuntimeUtilityNative.UpdateRuntimePanels () (at <15a98e5804a14d9abff4fca9f4f7603a>:0)
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Resolution Note (fix version 2021.3):
Fixed in 2021.3.2f1