Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug 2022 LTS URP Blackscree on Oculus 2

Discussion in 'VR' started by GamerTobbe, Jun 9, 2023.

  1. GamerTobbe

    GamerTobbe

    Joined:
    Apr 4, 2019
    Posts:
    23
    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
     
    Last edited: Jun 9, 2023
    MattiasOlsson likes this.
  2. unity-chris

    unity-chris

    Unity Technologies

    Joined:
    Nov 10, 2022
    Posts:
    29
    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.
     
  3. chebe123

    chebe123

    Joined:
    Jan 24, 2020
    Posts:
    18
    Did you manage to fix the issue ?
     
  4. chebe123

    chebe123

    Joined:
    Jan 24, 2020
    Posts:
    18
    Im having the same error:

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2.       at UnityEngine.Rendering.Universal.UniversalRenderPipeline.SetupPerFrameShaderConstants () [0x00089] in <761be4ba94274c22b7b9efaba7276815>:0
    3.       at UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) [0x00065] in <761be4ba94274c22b7b9efaba7276815>:0
    4.       at UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List`1[T] cameras) [0x0001c] in <408bffb6a1ed40e88e7c0bb9191c551a>:0
    5.       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
     
  5. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    22
    Any additional details on the packages/assets used? We don't usually see these kinds of null ref errors on URP.
     
  6. GamerTobbe

    GamerTobbe

    Joined:
    Apr 4, 2019
    Posts:
    23
    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
     
  7. chebe123

    chebe123

    Joined:
    Jan 24, 2020
    Posts:
    18
    The issue rsolved itself after updating unity to 2022.3.7f