Search Issue Tracker

Fixed in 10.2.X

Votes

0

Found in [Package]

10.1.0.

Issue ID

1286936

Regression

Yes

[HDRP] [Compositor] NullReferenceException errors are thrown continuously on enabling Compositor in Basic(Built-in) scene

Package: Scriptable Render Pipeline HD

-

-Unable to use Compositor in Basic (Built-in) scene, the game view does not render anything.
-NullReferenceException errors are thrown continuously on enabling Compositor.

Steps to repro:
1. Create a new HDRP project.
2. File > New Scene > Basic(Built-in) > Create.
3. Windows > Render Pipeline > Graphics Compositor.
4. Enable Compositor checkbox.

Actual Result:
NullReferenceExceptions are thrown in the console.

Expected Result:
No errors in the console.

Reproducible in:
2020.2.0b9, 2020.2.0b8 with Package version 10.1.0.

Working Fine in:
2020.2.0b9, 2020.2.0b8 with Package version 10.0.0-preview.27.

Note: Package Version 10.1.0 is not available in 2021.1.

Environment:
Occurring on Windows 10 & Mac 10.15.

Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.Compositor.CompositorLayer.SetupLayerCamera (UnityEngine.Rendering.HighDefinition.Compositor.CompositorLayer targetLayer, System.Int32 layerPositionInStack) (at library/packagecache/com.unity.render-pipelines.high-definition@10.1.0/runtime/compositor/compositionlayer.cs:659)
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager.SetLayerRenderTargets () (at library/packagecache/com.unity.render-pipelines.high-definition@10.1.0/runtime/compositor/compositionmanager.cs:666)
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager.SetupCompositorLayers () (at library/packagecache/com.unity.render-pipelines.high-definition@10.1.0/runtime/compositor/compositionmanager.cs:388)
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager.Init () (at library/packagecache/com.unity.render-pipelines.high-definition@10.1.0/runtime/compositor/compositionmanager.cs:312)
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager.Start () (at library/packagecache/com.unity.render-pipelines.high-definition@10.1.0/runtime/compositor/compositionmanager.cs:330)

  1. Resolution Note (fix version 10.2):

    Fixed in Package version 10.2.0.

  2. Resolution Note (fix version 10.2):

    Fixed in Package version 10.2.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.