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
- [Linux] Vsync does not work correctly in Game View when using OpenGL
- Edge detection fails, _BlitTexture_TexelSize is 0
- Rotating GameObjects is not possible when transform.up is assigned through script
- [Android] Shadowmap Shadows have graphical errors on Android when the default Screen Recorder setting is turned on
- Editor crashes on physx::PxcDiscreteNarrowPhasePCM or freezes when instantiating many GameObjects
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.