Search Unity

  1. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  2. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  3. Dismiss Notice
  4. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Editor and Game window objects disapper - IndexOutOfRangeException: renderPassIndex

Discussion in 'VR' started by wenzy, Jun 3, 2020.

  1. wenzy

    wenzy

    Joined:
    Nov 17, 2015
    Posts:
    34
    hi, community.
    I have meet this issue recently and not sure is it a bug or sth else? I use the newest version of Unity(2019.3.14) in URP mode and try to develop an Oculus quest. After I run the Unity for more then 10 or 20 minute.When I click play to enter the PlayMode. It will suddenly come out this message:

    ndexOutOfRangeException: renderPassIndex
    UnityEngine.XR.XRDisplaySubsystem.GetRenderPass (System.Int32 renderPassIndex, UnityEngine.XR.XRDisplaySubsystem+XRRenderPass& renderPass) (at <91c065673d8142a7809c0b1b4d212eff>:0)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline.CanXRSDKUseSinglePass (UnityEngine.Camera camera) (at Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Runtime/UniversalRenderPipeline.cs:517)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline.InitializeStackedCameraData (UnityEngine.Camera baseCamera, UnityEngine.Rendering.Universal.UniversalAdditionalCameraData baseAdditionalCameraData, UnityEngine.Rendering.Universal.CameraData& cameraData) (at Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Runtime/UniversalRenderPipeline.cs:559)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline.InitializeCameraData (UnityEngine.Camera camera, UnityEngine.Rendering.Universal.UniversalAdditionalCameraData additionalCameraData, UnityEngine.Rendering.Universal.CameraData& cameraData) (at Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Runtime/UniversalRenderPipeline.cs:500)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera baseCamera) (at Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Runtime/UniversalRenderPipeline.cs:396)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, UnityEngine.Camera[] cameras) (at Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Runtime/UniversalRenderPipeline.cs:219)
    UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera[] cameras) (at <f44e57e4965f4efaac783455b4a81a8e>:0)
    UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at <f44e57e4965f4efaac783455b4a81a8e>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    and then in the scene window and game window, everything disappear and just show the background color.When I select an object on Hierarchy I can show the transform arrow on the scene but without the object. No matter what I do( Exit playmode or enter playmode), this issue still exist.I have to restart this editor then everything fix.

    Hope anyone can give some tips? It's a very annoying issue
     
unityunity