Search Issue Tracker
Fixed
Fixed in 6000.6.0a7
Fix In Review for 6000.3.19f1, 6000.5.1f1
Under Consideration for 6000.0.X, 6000.4.X
Votes
0
Found in
6000.0.75f1
6000.3.15f1
6000.4.6f1
6000.5.0b7
6000.6.0a6
Issue ID
UUM-141990
Regression
Yes
"InvalidOperationException" is thrown when clicking "Ctrl+Z" after opening Gradient Editor
Steps to reproduce:
- Create a new 3D URP project
- Drag the attached "Gradient.cs" script into the Project window
- In the Hierarchy, create a new GameObject and drag the script onto it
- Select the created GameObject
- In the Inspector, click on the Gradient field
- Press "Ctrl+Z"
- Observe the Console
Actual results: "InvalidOperationException: Collection was modified; enumeration operation may not execute." error is thrown
Expected results: No Console errors are thrown
Reproducible with versions: 6000.0.49f1, 6000.0.75f1, 6000.3.15f1, 6000.4.7f1, 6000.5.0b8, 6000.6.0a4
Not reproducible with versions: 6000.0.48f1
Tested on (OS): Windows 11, macOS 26.4
Error:
{code:java}
InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () (at <4ea9c5843f6c401888efb0bdc93eda21>:0)
System.Collections.Generic.List`1+Enumerator[T].MoveNext () (at <4ea9c5843f6c401888efb0bdc93eda21>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <b684b671bbe94fa7880860517fcd126d>:0)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler(){code}
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
- AdaptiveLOD sample has missing prefabs and throws missing prefab errors when the AdaptiveLOD sample is imported and the AdaptiveLOD scene is opened
- Error "transform.position assign attempt for 'x' is not valid" is logged when Moving Game Object to View while a Scene is multi selected
- [Desktop] Plastic move detection mixes up identical files
- SVG Icon has tessellation issues in "Antialiased Arc Encodings", ok with "Basic Triangulation"
- "You may not pass null objects" and "Maximized serialized file backup not found" errors are thrown when maximizing and minimizing docked Multiplayer Play Mode window after Multiplayer Play Mode package is uninstalled
Resolution Note:
Fixed in 6000.6.0a7
Resolution Note (fix version 6000.6.0a7):
Fixed in 6000.6.0a7
Resolution Note (fix version 6000.5.1f1):
Fixed in 6000.5.1f1
Resolution Note (fix version 6000.3.19f1):
Fixed in 6000.3.19f1