Search Issue Tracker

Fixed in 7.3.1

Votes

1

Found in [Package]

7.2.1, 7.1.8, 7.1.7

Issue ID

1220832

Regression

Yes

[HDRP] "Volume" gameObject is destroyed and "MissingReferenceException" are thrown when Post Process volume is added to Look Dev

Package: Scriptable Render Pipeline HD

-

Game and Scene view renders black with "Missing reference exception" thrown continuously when Post Process volume or Sky and Fog Volume gameObject is added to Look dev window. Refer the attached video

Steps to reproduce:
1) Create a new project with HDRP template
2) Window > Render Pipeline > Look Dev
3) Drag Post Process Volume gameObject to Look Dev window

Actual result: Game and Scene view renders black with "Missing reference exception" thrown continuously

Expected result: No errors should be thrown

Occurring on: 2020.1.0a24, 2019.3.2f1, 2019.3.0a1
Working fine on: 2019.2.11f1

Occurring on HDRP Package version: 7.2.1, 7.1.8, 7.1.7
Working fine on HDRP Package version: 6.9.2

Environment: Both Windows and Mac

Workaround: Restart the project or play the scene

Stack trace:

MissingReferenceException: The object of type 'Volume' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Rendering.VolumeManager.Update (UnityEngine.Rendering.VolumeStack stack, UnityEngine.Transform trigger, UnityEngine.LayerMask layerMask) (at Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Volume/VolumeManager.cs:322)
UnityEngine.Rendering.VolumeManager.Update (UnityEngine.Transform trigger, UnityEngine.LayerMask layerMask) (at Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Volume/VolumeManager.cs:273)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.ExecuteRenderRequest (UnityEngine.Rendering.HighDefinition.HDRenderPipeline+RenderRequest renderRequest, UnityEngine.Rendering.ScriptableRenderContext renderContext, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.HighDefinition.AOVRequestData aovRequest) (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.1.8/Runtime/RenderPipeline/HDRenderPipeline.cs:1854)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, UnityEngine.Camera[] cameras) (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.1.8/Runtime/RenderPipeline/HDRenderPipeline.cs:1727)
UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera[] cameras) (at <94c5f4c38cdc42d2b006f8badef04394>:0)
UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at <94c5f4c38cdc42d2b006f8badef04394>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Comments (2)

  1. acakebread

    Sep 07, 2020 11:57

    this is a more or less global issue - get this a lot at run time when switching scenes

  2. SunnyChow

    Mar 09, 2020 04:37

    Unity 2019.3.3f1 HDRP 7.2.1

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.