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
-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)
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
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
Resolution Note (fix version 10.2):
Fixed in Package version 10.2.0.
Resolution Note (fix version 10.2):
Fixed in Package version 10.2.0.