Search Issue Tracker
Won't Fix
Votes
0
Found in
6000.2.0b5
Issue ID
UUM-108975
Regression
No
Errors “Render Graph Execution error“ and “ArgumentNullException: Value cannot be null.“ are present, and the Game view is black when opening a Scene and using RenderGraph.AddBlitPass
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/URLCustomPass/URPCustomPassScene.unity” Scene
3. Observe the Console and Game view
Expected result: No Errors exist, and post-processing effects are applied in Game view
Actual result: Game view is black, and Errors “Render Graph Execution error“ and “ArgumentNullException: Value cannot be null.“ are present
Reproducible with: 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Could not test with: 2022.3.62f1 (Assets\URLCustomPass\Scripts\BlurRenderPass.cs(4,29): error CS0234: The type or namespace name 'RenderGraphModule' does not exist in the namespace 'UnityEngine.Rendering')
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- Workaround is to enter the Play Mode, pause it, and exit Play Mode
- At the time the Scene is opened, the mesh of the static member within the Blitter is either being destroyed or set to null
- Reproducible with other Scenes
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note:
When opening a scene, BlurRendererFeature.Create() is not called. The material is not serialized, so it becomes null.
This can be resolved by checking for null in BlurRendererFeature.AddRenderPasses(), re-creating the material, and setting it to the BlurRenderPass, as follows:
if (material == null)
{
material = new Material(shader);
blurRenderPass.SetMaterial(material);
}
renderer.EnqueuePass(blurRenderPass);