Black HDM yet Editor VR Cam Preview AOK...
Every test scene I build (Unity 2020.1.17f) with OpenVR/XR/SteamVR (HDRP 8.3.1) work just fine with Valve Index. No issues.
But when I import the working VR rig into an extant project I was building I get a solid black / grey HMD in scene (can see SteamVR area grid). XR/SteamVR initialize fine, no errors.
But every frame I'm getting a warning error pair that doesn't show in my test scenes, so assuming something in my scene is not compatible. I'm currently stepping through the trial and error of every asset, but thought someone might have some more focused insight into this:
ArgumentOutOfRangeException: Index was out of range... (from Lightloop 1922) XRSystem.releaseFrame() was not called!
Note that my in-editor VR cam preview looks/tracks just fine. But the HMD is black.
Full error:
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at :0) UnityEngine.Rendering.HighDefinition.HDRenderPipeline.GetEnvLightVolumeDataAndBound (UnityEngine.Rendering.HighDefinition.HDProbe probe, UnityEngine.Rendering.HighDefinition.LightVolumeType lightVolumeType, UnityEngine.Matrix4x4 worldToView, System.Int32 viewIndex) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Runtime/Lighting/LightLoop/LightLoop.cs:1922) UnityEngine.Rendering.HighDefinition.HDRenderPipeline.PrepareGPUProbeData (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.HighDefinition.HDCamera hdCamera, UnityEngine.Rendering.CullingResults cullResults, UnityEngine.Rendering.HighDefinition.HDProbeCullingResults hdProbeCullingResults, System.Int32 processedLightCount) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Runtime/Lighting/LightLoop/LightLoop.cs:2497) UnityEngine.Rendering.HighDefinition.HDRenderPipeline.PrepareLightsForGPU (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.HighDefinition.HDCamera hdCamera, UnityEngine.Rendering.CullingResults cullResults, UnityEngine.Rendering.HighDefinition.HDProbeCullingResults hdProbeCullingResults, UnityEngine.Rendering.HighDefinition.DensityVolumeList densityVolumes, UnityEngine.Rendering.HighDefinition.DebugDisplaySettings debugDisplaySettings, UnityEngine.Rendering.HighDefinition.AOVRequestData aovRequest) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Runtime/Lighting/LightLoop/LightLoop.cs:2565) UnityEngine.Rendering.HighDefinition.HDRenderPipeline.ExecuteRenderRequest (UnityEngine.Rendering.HighDefinition.HDRenderPipeline+RenderRequest renderRequest, UnityEngine.Rendering.ScriptableRenderContext renderContext, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.HighDefinition.AOVRequestData aovRequest) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Runtime/RenderPipeline/HDRenderPipeline.cs:2065) UnityEngine.Rendering.HighDefinition.HDRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, UnityEngine.Camera[] cameras) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Runtime/RenderPipeline/HDRenderPipeline.cs:1892) UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera[] cameras) (at :0) UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)