In Unity 2023.1.0b5 I create a new project using the HDRP core preset, then when the HDRP Wizard pops up, I select the HDRP + DXR tab and hit “Fix All”.
After restarting, the console is spammed with the following warning and error:
Render Pipeline error : the XR layout still contains active passes. Executing XRSystem.EndLayout() right now.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.UpdateShaderVariablesRaytracingCB (UnityEngine.Rendering.HighDefinition.HDCamera hdCamera, UnityEngine.Rendering.CommandBuffer cmd) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@15.0.4/Runtime/RenderPipeline/HDRenderPipeline.cs:1082)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.UpdateGlobalConstantBuffers (UnityEngine.Rendering.HighDefinition.HDCamera hdCamera, UnityEngine.Rendering.CommandBuffer cmd) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@15.0.4/Runtime/RenderPipeline/HDRenderPipeline.cs:990)
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@15.0.4/Runtime/RenderPipeline/HDRenderPipeline.cs:2304)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@15.0.4/Runtime/RenderPipeline/HDRenderPipeline.cs:2107)
UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List`1[T] cameras) (at <e932915392764e5aa3442ba792104a92>:0)
UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, UnityEngine.Object renderRequest, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at <e932915392764e5aa3442ba792104a92>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
The editor is dead, and I cannot do anything useful. Weird thing, if I enter the Package Manager and remove a random unused package, everything is fine again. Until the next time I restart the project, so this is not a solution.
I am on Windows, 4090 RTX card. HDRP + DXR works fine in 2022.
Any known workarounds?