Search Issue Tracker
Fixed in 10.1.X
Votes
0
Found in [Package]
10.0.0-preview.27, 9.0.0-preview.54
Issue ID
1285351
Regression
No
[HDRP][Compositor] Objects of the Hierarchy are deleted with errors on undoing after adding Input filters in Basic(Built-in)scen
All objects of the Hierarchy are deleted along with MissingReferenceException on undoing after adding Input filters in Basic(Built-in) scene.
Steps to repro:
1. Create a new HDRP project.
2. File > New Scene > Select > Basic (Built-in) scene.
3. Windows > Render Pipeline > Graphics Compositor > Enable Compositor.
4. Render Schedule > Select Camera SubLayer > Add ChromaKeying Input Filter.
5. Press "CTRL + Z" 4-5 times.
Actual Result:
-All objects of the Hierarchy are deleted.
-MissingReferenceException error is thrown in the console.
Expected Result:
-No objects are deleted from the Hierarchy.
-No errors in the console.
Reproducible in:
2020.2.0b8, 2020.2.0a15 with Package Version 10.0.0-preview.27, 9.0.0-preview.54, 9.0.0-preview.33.
Note: Basic (Built-in) scene option is available from 2020.2.0a15.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stacktrace:
Camera to copy from must not be null
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager:Update ()
MissingReferenceException: The object of type 'Camera' 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.Component.GetComponent[T] () (at <7c72a31c6717401a8f3a6328e904d4c3>:0)
UnityEngine.Rendering.HighDefinition.Compositor.CompositorLayer.UpdateOutputCamera () (at library/packagecache/com.unity.render-pipelines.high-definition@10.0.0-preview.27/runtime/compositor/compositionlayer.cs:476)
UnityEngine.Rendering.HighDefinition.Compositor.CompositorLayer.Update () (at library/packagecache/com.unity.render-pipelines.high-definition@10.0.0-preview.27/runtime/compositor/compositionlayer.cs:488)
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager.Update () (at library/packagecache/com.unity.render-pipelines.high-definition@10.0.0-preview.27/runtime/compositor/compositionmanager.cs:509)
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 10.1):
Fixed in Package version 10.1.0.