Search Issue Tracker

Fixed in 10.1.0-preview.2

Votes

0

Found in [Package]

10.0.0 preview.27

Issue ID

1268147

Regression

Yes

[URP][Serialization] ArgumentOutOfRangeException errors are thrown on undoing after removing Render feature

Package: Scriptable Render Pipeline Universal

-

ArgumentOutOfRangeException errors are thrown continuously on undoing after removing Render feature.

Steps to repro:
1. Create a new URP template project
2. Project Window > Click on "+" > Rendering.
3. Universal Render Pipeline > Forward Renderer > Add Renderer Feature.
4. Screen Space Ambient Occlusion > Remove > CTRL + Z.

Actual Result:
ArgumentOutOfRangeException errors in the console.

Expected Result:
No errors in the console.

Reproducible in:
2020.2.0a20 with Package version 10.0.0 preview.27.

Working Fine in:
2020.2.0a20 with Package version 9.0.0 preview.35.

Note: Package Version 10.0.0 preview.27. is available only in 2020.2.0a20.

Environment:
Occurring on Windows 10 & Mac 10.15.

Stacktrace:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <fb001e01371b4adca20013e0ac763896>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <fb001e01371b4adca20013e0ac763896>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <fb001e01371b4adca20013e0ac763896>:0)
UnityEditor.Rendering.Universal.ScriptableRendererDataEditor.DrawRendererFeature (System.Int32 index, UnityEditor.SerializedProperty& renderFeatureProperty) (at library/packagecache/com.unity.render-pipelines.universal@10.0.0-preview.26/editor/scriptablerendererdataeditor.cs:98)
UnityEditor.Rendering.Universal.ScriptableRendererDataEditor.DrawRendererFeatureList () (at library/packagecache/com.unity.render-pipelines.universal@10.0.0-preview.26/editor/scriptablerendererdataeditor.cs:76)
UnityEditor.Rendering.Universal.ScriptableRendererDataEditor.OnInspectorGUI () (at library/packagecache/com.unity.render-pipelines.universal@10.0.0-preview.26/editor/scriptablerendererdataeditor.cs:57)
UnityEditor.Rendering.Universal.ForwardRendererDataEditor.OnInspectorGUI () (at library/packagecache/com.unity.render-pipelines.universal@10.0.0-preview.26/editor/forwardrendererdataeditor.cs:71)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <4a010c27075a4c2daedf3ee971af3236>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

  1. Resolution Note (fix version 10.1.0-preview.2):

    Fixed in 10.1.0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.