Running simulation app headlessly results in a hang

Hi,
i have a problem with launching Simulation App with Isaac Sim 2023.1.1

I am launching SimulationApp from omni.isaac.kit as in the code example from:
simulation_app_doc

# At top of your application
from omni.isaac.kit import SimulationApp
config = {
     'width': "1280",
     'height': "720",
     'headless': True,
}
simulation_app = SimulationApp(config)

# Rest of the code follows
...
simulation_app.close()

When I launch Simulation App with UI (headless = False) it works, but when i launch it headlessly (headless = True) it results in a hang:

X connection to X@� broken (explicit kill or server shutdown).
2024-05-29 12:42:42 [26,991ms] [Warning] [omni.kit.telemetry.plugin] failed to wait for the extension’s startup tasks to complete. This may result in a hang.

termial_output_headless_true.txt (22.2 KB)