Repository navigation
Verify Windows virtual display capture before launch or resume - #819
Roboatlas21 wants to merge 1 commit into
Conversation
The capture check can pass on the physical desktop while the session's virtual display is still missing. Moonlight then connects and times out waiting for video. Probe the session's active virtual display directly. If it is missing or disappears during capture setup, retry the check after the existing recovery attempt. Return a retryable error if capture is still unavailable.
|
Please keep the exact-output check and the bounded attempt to recover the virtual display. Before merging, I’d like launch and resume to fall back to a working physical monitor and reserve a capture-related I found two gaps in
When physical capture works, please give virtual setup and recovery one shared five-second budget. Switch sooner if recovery fails early. Select the physical monitor as the session’s actual capture target, send the existing fallback warning, and cancel that session’s pending virtual recovery so a late virtual display can’t take over the stream. On a headless host, preserve bounded virtual recovery. In a controlled-clock test, a virtual display ready at 4.5 seconds succeeded under either policy. One ready at 6 seconds succeeded with the current recovery path, while a hard five-second cutoff rejected it before the capture check. The Windows case I’d like covered is a fresh launch and a resume with the virtual screen missing and a physical monitor available. Verify the client receives a frame from that monitor, record the time to the first decoded frame, and bring the virtual screen back to confirm the stream stays on physical. Please also cover a headless host whose virtual screen appears after five seconds and the case where neither output can be captured. |
Problem
On Windows, the capture check for launch and resume could succeed on the physical desktop while the session’s virtual display was still missing. Vibepollo would accept the connection, leaving the client waiting for video from a display Windows had yet to make available for capture.
In one failed launch, the client connected at
09:47:27.274. The requested display was missing from the capture list, and capture only became available at09:47:39.845. That was 12.6 seconds after connection, past the 10-second startup limit used by Moonlight’s shared video code. The client recorded zero decoded frames during the test.Change
Resolve the session’s virtual display to its active Windows output and probe that exact output before accepting launch or resume. If the display is missing or disappears while capture opens, use the existing bounded recovery attempt and check the session’s display again. If it remains unavailable, return a retryable GameStream
503with a clear error message.Validation
Attached logs
virtual-display-before.txt
virtual-display-live-validation.txt
virtual-display-regression.txt