Rendering in -batchmode

Hello! I’m trying to get my project to render in -batchmode (windowless). This works in non-HDRP if I render the camera with camera.Render(), but in HDRP i get this error in the Log output:

Error getting system window info: Invalid window
Unsupported windowing backend 0
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEngine.Rendering.ScriptableRenderContext:Submit_Internal ()
UnityEngine.Rendering.ScriptableRenderContext:Submit () (at /home/bokken/buildslave/unity/build/Runtime/Export/RenderPipeline/ScriptableRenderContext.cs:110)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline:Render (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera[ ]) (at /home/lucas/Prueba_Video/Library/PackageCache/com.unity.render-pipelines.high-definition@10.2.2/Runtime/RenderPipeline/HDRenderPipeline.cs:2280)
UnityEngine.Rendering.RenderPipeline:InternalRender (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera[ ]) (at /home/bokken/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipeline.cs:37)
UnityEngine.Rendering.RenderPipelineManager:smile:oRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,System.Collections.Generic.List`1<UnityEngine.Camera/RenderRequest>) (at /home/bokken/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:90)
renderer:Update () (at /home/lucas/Prueba_Video/Assets/renderer.cs:22)

This happens in the first Render call in the first Update. Is there any way to fix this? Is it possible to render HDRP in batchmode?

Thanks in advance!!

2 Likes

Any updates?
I have same error log for -batchmode and vulkan, but in my case HDRP is not used.