Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Windows standalone doesn't work if the computer has no display.

Discussion in 'General Graphics' started by Ewanuk, Jan 10, 2019.

  1. Ewanuk

    Ewanuk

    Joined:
    Jul 9, 2011
    Posts:
    257
    We want to use a standalone windows unity client to render some video frames for a simulation on a machine that isn't hooked up to a monitor. We use remote desktop to run the simulation and let it render on it's own.

    Unfortunately, this doesn't work all the time. If we startup the standalone executable via remote desktop (no monitor hooked up to the machine) the standalone just launches with a grey screen. We then see this error in the log file:

    IndexOutOfRangeException: Array index is out of range.
    at UnityEngine.Display.RecreateDisplayList (System.IntPtr[] nativeDisplay) [0x00000] in <filename unknown>:0

    We've tried updating video drivers and disabling scaling in the NVIDIA video options, but nothing changes.

    How can we fix this?