Search Issue Tracker
Fixed in 9.0.0-preview.1
Votes
0
Found in [Package]
7.1.2
Issue ID
1196651
Regression
Yes
[URP] NullReferenceException error is thrown on deleting Renderer Feature object in CustomForwardRendererData asset
NullReferenceException error is thrown on deleting Renderer Feature object in CustomForwardRendererData asset after removing the object from its preset.
Note: Workaround is to first select a valid "Renderer Feature" for the item which shows "missing" and then remove the item.
Steps to repro:
1. Create a new project.
2. Windows > Package Manager > Universal RP > Install.
3. Project Window > Right Click > Create > Rendering.
4. Universal Render Pipeline > Forward Renderer > Add Renderer features.
5. Create its Preset > Delete Renderer Features.
6. Select "CustomForwardrendererData" asset.
7. Delete the missing object from Renderer Features list.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No errors in the console.
Reproducible on:
2020.1.0a12, 2019.3.0b10, 2019.2.0f1, 2019.2.0b1 (with LWRP 6.7.1)
Working Fine in:
2019.2.0a14.
Tested on Package Version: 7.1.2, 7.1.1, LWRP 6.7.1
Environment:
Windows 10 & Mac 10.14.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.Universal.ScriptableRendererDataEditor.RemovePass (UnityEditorInternal.ReorderableList list) (at library/packagecache/com.unity.render-pipelines.universal@7.1.2/editor/scriptablerendererdataeditor.cs:231)
UnityEditorInternal.ReorderableList+Defaults.DrawFooter (UnityEngine.Rect rect, UnityEditorInternal.ReorderableList list) (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditorInternal.ReorderableList.DoListFooter (UnityEngine.Rect footerRect) (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditorInternal.ReorderableList.DoLayoutList () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEditor.Rendering.Universal.ScriptableRendererDataEditor.OnInspectorGUI () (at library/packagecache/com.unity.render-pipelines.universal@7.1.2/editor/scriptablerendererdataeditor.cs:175)
UnityEditor.Rendering.Universal.ForwardRendererDataEditor.OnInspectorGUI () (at library/packagecache/com.unity.render-pipelines.universal@7.1.2/editor/forwardrendererdataeditor.cs:56)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <b43e6d4802d64ea8bbdaa0bf64614d3b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
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
- 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
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 9.0.0-preview.1):
Presets are disabled for the ForwardRenderer asset as they are not needed, also missing or empty entries can be removed if necessary without error now.