Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
3.0.0
Issue ID
1061370
Regression
No
[LWRP] Opaque Texture 4x Box downscale returns null ref, fails to render
When trying to set the opaque texture downsampling setting to 4x box, an error is thrown and rendering fails.
Error:
MissingReferenceException: The object of type 'Material' 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.Material.SetFloat (System.Int32 nameID, System.Single value) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Shader.cs:524)
UnityEngine.Experimental.Rendering.LightweightPipeline.CopyColorPass.Execute (UnityEngine.Experimental.Rendering.ScriptableRenderContext& context, UnityEngine.Experimental.Rendering.CullResults& cullResults, UnityEngine.Experimental.Rendering.LightweightPipeline.RenderingData& renderingData) (at /Users/andremcgrail/Library/Unity/cache/packages/staging-packages.unity.com/com.unity.render-pipelines.lightweight@3.0.0-preview/LWRP/Passes/CopyColorPass.cs:47)
UnityEngine.Experimental.Rendering.LightweightPipeline.LightweightForwardRenderer.Execute (UnityEngine.Experimental.Rendering.ScriptableRenderContext& context, UnityEngine.Experimental.Rendering.CullResults& cullResults, UnityEngine.Experimental.Rendering.LightweightPipeline.RenderingData& renderingData) (at /Users/andremcgrail/Library/Unity/cache/packages/staging-packages.unity.com/com.unity.render-pipelines.lightweight@3.0.0-preview/LWRP/LightweightForwardRenderer.cs:120)
UnityEngine.Experimental.Rendering.LightweightPipeline.LightweightPipeline.Render (UnityEngine.Experimental.Rendering.ScriptableRenderContext context, UnityEngine.Camera[] cameras) (at /Users/andremcgrail/Library/Unity/cache/packages/staging-packages.unity.com/com.unity.render-pipelines.lightweight@3.0.0-preview/LWRP/LightweightPipeline.cs:148)
UnityEngine.Experimental.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Experimental.Rendering.IRenderPipelineAsset pipe, UnityEngine.Camera[] cameras, System.IntPtr loopPtr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:32)
Steps:
1. Open project(BoatDemo or Template)
2. On the pipeline asset(in graphics settings) set the opaque texture downsampling setting to 4x Box
Expected: The opaque texture is scaled down to 1/4 resolution and a box filtering is performed
Actual: An error is thrown and the pipeline fails to keep rendering resulting in a black screen
Repos in LWRP 3.0.0 works in 2.0.5
Note: Assume it was forgotten in the recent pass refactor
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
This is a duplicate of issue #1061353