2022 LTS URP Blackscree on Oculus 2

2022 LTS builds wont render with URP, Android 12L req. > OpenXR

NullReferenceException: Object reference not set to an instance of an object.
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.SetupPerFrameShaderConstants () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, UnityEngine.Object renderRequest) [0x00000] in <00000000000000000000000000000000>:0

1 Like

Can you provide us with more info regarding your development environment? Ie Unity version (like 2022.1.30), packages used and their version numbers, Quest 2 firmware version.

Did you manage to fix the issue ?

Im having the same error:

NullReferenceException: Object reference not set to an instance of an object
      at UnityEngine.Rendering.Universal.UniversalRenderPipeline.SetupPerFrameShaderConstants () [0x00089] in <761be4ba94274c22b7b9efaba7276815>:0
      at UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) [0x00065] in <761be4ba94274c22b7b9efaba7276815>:0
      at UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List`1[T] cameras) [0x0001c] in <408bffb6a1ed40e88e7c0bb9191c551a>:0
      at UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, UnityEngine.Object renderRequest) [0x00046] in <408bffb6a1ed40e88e7c0bb9191c551a>:0

Android, project is fairly new, ported to urp,`

`unity 2022.3.4

Any additional details on the packages/assets used? We don't usually see these kinds of null ref errors on URP.

Hey sorry I have not been checking this thread for a while. We found out this happens when we changed URP settings files in runtime (we used to do it in 2021, we ended to work around it in 2022), 2022.3.0 LTS

The issue rsolved itself after updating unity to 2022.3.7f