Search Issue Tracker
Active
Under Consideration for 6000.6.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}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Entering “NaN” or “Infinity” values in Game Object Brush Orientation value fields spams Quaternion-related errors in the Console and persists unless value is undone in Tile Palette window
- An InvalidOperationException is thrown in the Editor when using On-Tile Rendering with the Mock HMD plug-in
- Unity UI does not trigger "OnFocusLost" and doesn't refresh when focusing on other Windows in the Editor
- Project Auditor's settings cannot be searched in the Preferences window
- Crash on SerializableManagedRef::CallMethod when performing various Unity operations
Add comment