Skip to content

Vibepollo 2.24.16 (Nightly)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Dec 07:48
· 43 commits to master since this release

This is a nightly release of Vibepollo and contains several bug fixes and may contain new features. Check the commit log for more information.

Windows installer · Linux (Arch x86_64)

Nightly Windows installers are unsigned and include self-signed gamepad components. They may cause false-positive antivirus alerts.

Commit log

Source: 9dec154484b1

Since the preceding successfully published nightly 2.24.14: compare exact sources.

6010b4da9b82

fix(rtsp): stop pending launches being dropped before the stream starts (#571)

* fix(rtsp): stop pending launches being dropped before the stream starts

Three fixes for RTSP launches failing before their stream starts, plus a
refactor that makes the pending-launch bookkeeping testable:

- Keep a pending launch alive through a slow ANNOUNCE startup. A claimed
  launch cannot expire while its startup worker owns it, and a started
  session gets a fresh ping_timeout for PLAY and the control connection.
  Reproduced with Moonlight to the same host: 5 of 5 failed before, 5 of
  5 connected after.
- Extract the bookkeeping into launch_registry_t (src/rtsp_launch_registry.h),
  a header-only template with no locks or timers, with component tests
  that replay the failing timeline.
- Keep pending launches through broadcast shutdown, which previously
  cancelled a launch queued for the next stream. Found by code analysis
  and not reproduced; covered by a unit test of the loop policy.
- When a session stops during startup, return from recv_ping as soon as
  its shutdown event is raised and answer the ANNOUNCE with 503 instead
  of 200, so the client fails fast instead of reporting a blocked-UDP
  error. Reproduced with fault injection: 3 of 3 fixed.

Rebased onto upstream master. Upstream's retain_pending_runtime_holds()
treated a launch as gone once its original deadline passed, which would
have rejected exactly the slow startups the first fix keeps alive; it
now uses the registry's is_live(). Removed launches are also collected
so their audio and display-power holds are released, as upstream does.
Verified on the rebased tree with a Moonlight stream to the same host
and test_rtsp_launch_registry / test_rtsp_pending_policy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): clear a renewed launch when its session stops before the control stream

finish_launch_startup() renews a launch whose stream session started, so
the entry survives until PLAY and the control stream attach, and the
control stream's attach then clears it. If the session stopped first,
nothing cleared it: the launch stayed live until the renewed deadline,
and a plaintext retry from the same source address was refused as a
duplicate (409), where the original deadline would already have expired
it.

Clear exactly that launch, by ID, in both places a started session can
stop before its control stream attaches: the ANNOUNCE reply that reports
the stop with 503 clears it before replying, and the RTSP loop's
stopped-session cleanup clears it after joining a session whose control
stream never attached. Unrelated pending launches are untouched, and the
broadcast-shutdown path that preserves launches for the next stream is
unchanged. The loop posts the clear to the io_context, because
session_clear() takes the lifecycle gate and some callers of clear()
already hold it.

A registry test replays the case: a launch renewed by a successful
startup refuses a same-source retry until it is cleared, after which the
retry is accepted and a separate pending launch survives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): clear a stopped session's launch during broadcast shutdown too

A broadcast shutdown runs clear(true, true), which removes every session
but keeps pending launches for the next broadcast. A session that stopped
there after ANNOUNCE 200 but before its control stream attached kept its
renewed launch, so a same-source plaintext retry was refused as a
duplicate. Clear that session's launch by ID, as an ordinary stopped
session already does, and leave launches queued for the next broadcast.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): pause the app when a stopped session's launch is the only one pending

A session stopped after ANNOUNCE 200 but before its control stream attached
still holds its renewed launch while clear() joins it, and clear() releases
that launch only afterwards. The last-session join saw it as pending and
skipped proc::proc.pause(true), and the later session_clear() never retried
it, so pause commands and terminate_on_pause could be skipped. Ignore the
joined session's own launch in that decision; launches queued for the next
broadcast still defer the pause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): ignore the whole teardown batch's launches at the last-session pause

clear() joins every session in its batch before it posts any of their
session_clear() calls. With two sessions stopped before their control
streams attached, the last join ignored only its own renewed launch, saw the
first session's as a pending next launch, and skipped proc::proc.pause(true).
clear() now marks the launch IDs it is joining until all the joins finish,
and the pause decision ignores those too. A launch queued for the next
broadcast still defers the pause.

The host stream terminal composition no longer compiled against this
branch's launch registry; it now uses the real registry, announce reply and
clear policies, runs the production pause query in its join, and covers
broadcast shutdown and stopped-session reaping of two sessions without
control, with and without a next launch pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): keep a departed session's launch out of the pause until it is cleared

clear() posts session_clear() for each removed session whose control
stream never attached, but dropped that launch's mark as soon as it
returned. Two clear() calls can remove sessions separately: a
stopped-session reap joins A and posts session_clear(A), and before that
callback runs, a broadcast shutdown or a later reap joins the last
session B. B's last-session check then saw A's retained launch as a next
launch and skipped proc::proc.pause(true), and nothing retried it.

A launch that clear() hands to a posted session_clear() now stays marked
as departing until session_clear() removes it from the registry, under
the same lock. The other launches of the batch are unmarked when clear()
returns, as before. A genuinely new launch is never marked, so it still
defers the pause.

The terminal composition test covers a reap followed by a broadcast
shutdown or a second reap with the first launch's cleanup delayed, each
with and without a separate pending launch. Its reset() now also drops
marks, since it discards the queued callbacks that own them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): retire departed launches at admission and retry a deferred pause

Two teardown races left by keeping a stopped session's launch until its
posted cleanup runs:

- A same-source plaintext retry could be refused with 409. If a session
  stops after ANNOUNCE 200 but before its control stream attaches, and a
  /resume from the same source takes the lifecycle gate before the
  posted session_clear() runs, admission still saw the old launch as a
  live duplicate source. session_raise() now first retires every launch
  whose session clear() removed (those in _departing_launch_ids). It
  handles them like expired launches: their holds are released and the
  shared runtime is finalized. This happens before the duplicate check,
  so neither the check nor plaintext routing sees them. The posted
  session_clear() then only drops the departing mark. Launches of other
  sessions are untouched.

- A preserved launch that never started could skip the pause forever.
  After a broadcast shutdown preserves a distinct pending launch, the
  last join leaves the app running for that launch's stream. If the
  launch then expired, nothing paused the app, so with terminate_on_pause
  the game kept running without a stream. The join now records whether
  it deferred the pause to a pending launch. When a launch expires or is
  cleared, and no RTSP session, pending launch or startup remains, the
  server runs the deferred pause through
  stream::session::pause_after_abandoned_launch(), unless WebRTC owns the
  app. This runs under the lifecycle gate, like the join. A launch whose
  stream starts keeps the pause deferred to that stream's own join.

The terminal composition test now compiles the real session_raise(),
retire_departed_launch_sessions_locked() and
retry_deferred_last_session_pause(). It adds a same-source retry admitted
while the stopped launch's cleanup is held, for both a stopped-session
reap and a broadcast shutdown, with an unrelated launch that survives.
It also adds a broadcast shutdown followed by expiry of the preserved
launch, which pauses once, and by that launch's stream starting, which
stays deferred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): retry a deferred pause on every path that drops a launch

The last session's join leaves the app running while another launch is
pending. Only session_clear() and launch expiry retried that pause, so
the app stayed running if the launch instead went away through a client
disconnect, a role disconnect, a cancel, or a failed Remote Monitor
start, or if a startup worker was the last thing still pending.

Retry from those removal paths and when a startup worker finishes, since
the worker still counts as pending until then. A stream that starts now
takes over the deferred pause, so tearing it down cannot pause twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rtsp): preserve launch expiry and retire pause on quit

Retry expiry after terminal admission reopens so an aborted shortcut cannot strand a launch. Consume deferred pause on full teardown or game termination so detached pause hooks cannot race app restoration.

Co-authored-by: Codex <noreply@openai.com>

* fix(rtsp): bind deferred pause to the application lifecycle

Keep quit authoritative across joins and recover deferred pauses after canceled workers or Remote Input replacement. Retire stopped launches in the registry so reconnects see the correct owner while pending runtime resources drain.

Co-authored-by: Codex <noreply@openai.com>

* fix(rtsp): keep late joins from pausing a replacement app

A draining stream can finish its join after the Web UI starts another app. Give the new app a pause obligation only when it inherits a running transport or publishes its own stream.

Co-authored-by: Codex <noreply@openai.com>

* test(rtsp): exercise current pause and launch-registry paths

Update the disconnect and Linux service fixtures for app-owned pause state and claimed-launch freshness. Run the Guide handoff against the production registry while preserving its pre-registry comparison path.

Co-authored-by: Codex <noreply@openai.com>

* fix(stream): complete deferred pause across RTSP and WebRTC

Retain the last RTSP pause while a browser viewer or its teardown still owns the app. Recheck after the final close or expiry and consume the obligation once, including when the launch expires during a capture join.

Co-authored-by: Codex <noreply@openai.com>

* Finalize WebRTC platform state after deferred app termination

Release the teardown reservations and consume the pending RTSP pause under the lifecycle lock before checking display ownership. A terminate-on-pause app can release the final normal display during that pause.

Co-authored-by: Codex <noreply@openai.com>

* Preserve display restore ordering during deferred RTSP pause

Hold teardown ownership across the app pause so terminate-on-pause cannot remove a virtual display before the stream finalizer restores the desktop. Release the reservation before the caller checks for idle cleanup.

Co-authored-by: Codex <noreply@openai.com>

* Let the app send its pause tray notification once

Both immediate and deferred RTSP pauses go through proc_t::pause(), which already publishes the tray update for an app that remains running.

Co-authored-by: Codex <noreply@openai.com>

* Keep shared cleanup armed until the deferred pause is decided

Retain the display restore request across a Remote Input handoff so a rejected replacement finalizes the terminated app. Cover the early and final calls with the production Windows finalizer.

Co-authored-by: Codex <noreply@openai.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chase Payne <chase_payne@outlook.com>
Co-authored-by: Codex <noreply@openai.com>

9dec154484b1

fix(windows): Check the capture adapter before probing PyroWave

Skip codec initialization when the selected Vulkan device cannot import D3D11 textures and fences. Query physical-device capabilities in process and probe only the matching adapter and driver.

Co-authored-by: Codex <noreply@openai.com>
(cherry picked from commit 211c5a30e06b1c13b43a917088796162ba3d7d70)