Search Unity

Question Previously working project has blackscreen on startup on oculus quest

Discussion in 'AR/VR (XR) Discussion' started by Desoxi, Sep 9, 2020.

  1. Desoxi

    Desoxi

    Joined:
    Apr 12, 2015
    Posts:
    195
    Hey,

    after an uprade to v2020.1.1f1 i wanted to build and run my project and had a blackscreen on startup.
    I started a logcat to debug the problem and was confronted with these messages:

    Code (CSharp):
    1. 9-09 16:19:11.309 10019 10034 E Unity   : NullReferenceException: Object reference not set to an instance of an object.
    2. 09-09 16:19:11.309 10019 10034 E Unity   :   at UnityEngine.Rendering.Universal.Internal.PostProcessPass.Render (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.Universal.RenderingData& renderingData) [0x00000] in <00000000000000000000000000000000>:0
    3. 09-09 16:19:11.309 10019 10034 E Unity   :   at UnityEngine.Rendering.Universal.Internal.PostProcessPass.Execute (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.RenderingData& renderingData) [0x00000] in <00000000000000000000000000000000>:0
    4. 09-09 16:19:11.309 10019 10034 E Unity   :   at UnityEngine.Rendering.Universal.ScriptableRenderer.ExecuteRenderPass (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.ScriptableRenderPass renderPass, UnityEngine.Rendering.Universal.RenderingData& renderingData, System.Int32 eyeIndex) [0x00000] in <00000000000000000000000000000000>:0
    5. 09-09 16:19:11.309 10019 10034 E Unity   :   at UnityEngine.Rendering.Universal.ScriptableRenderer.ExecuteBlock (System.Int32 blockIndex, Unity.Collections.NativeArray`1[T] blockRanges, UnityEng
    6. 09-09 16:19:11.401 10019 10034 W Unity   : Material LiberationSans SDF Material doesn't have _Stencil property
    7. 09-09 16:19:11.401 10019 10034 W Unity   : UnityEngine.Logger:Log(LogType, Object, Object)
    8. 09-09 16:19:11.401 10019 10034 W Unity   : UnityEngine.Debug:LogWarning(Object, Object)
    9. 09-09 16:19:11.401 10019 10034 W Unity   : UnityEngine.UI.StencilMaterial:Add(Material, Int32, StencilOp, CompareFunction, ColorWriteMask, Int32, Int32)
    10. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TMP_SubMeshUI:GetModifiedMaterial(Material)
    11. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TMP_MaterialManager:GetMaterialForRendering(MaskableGraphic, Material)
    12. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TMP_SubMeshUI:UpdateMaterial()
    13. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TMP_SubMeshUI:SetMaterialDirty()
    14. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TextMeshProUGUI:SetArraySizes(UnicodeChar[])
    15. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TextMeshProUGUI:OnPreRenderCanvas()
    16. 09-09 16:19:11.401 10019 10034 W Unity   : TMPro.TextMeshProUGUI:Rebuild(CanvasUpdate)
    17. 09-09 16:19:11.401 10019 10034 W Unity   : UnityEngine.UI.CanvasUpdateRegistry:PerformUpdate()
    18. 09-09 16:19:11.401 10019 10034 W Unity   : UnityEngine.WillRenderCanvases:Invoke()
    19. 09-09 16:19:11.401 10019 10034 W Unity   :
    20. 09-09 16:19:11.401 10019 10034 W Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
     
  2. Desoxi

    Desoxi

    Joined:
    Apr 12, 2015
    Posts:
    195
    Ok i managed to fix this by upgrading the oculus integration version to the latest one.