HydraIssues

Revisit kiosk overlay approach: stale processes, VDD placement, and disable/enable lifecycle
closed bug Project: hydrabody Reporter: 24 May 2026 11:46

Description

The current kiosk overlay design has several problems observed in production on 2026-05-24:

  1. Stale process accumulation: kioskoverlay.exe is relaunched on each stream start but old instances are only killed by PID stored in memory. When hydrabody restarts, the stored PID is lost and old overlays are never cleaned up. On chunky-turnip-23 we found 3 stale kioskoverlay instances (PIDs from yesterday + earlier today) before we disabled kiosk.

  2. VDD display placement (issue #373): kioskoverlay always opens at (0,0) = primary display. When VDD is the primary display (which Sunshine captures), the overlay sits on the captured surface. On bodies with both VDD and a dongle, Unreal steers to the dongle instead and Sunshine streams the overlay. On bodies with only VDD, the overlay is behind Mercator (HWND_BOTTOM) but still blocks certain UE fullscreen detection.

  3. Kiosk re-enables on stream start: disabling kiosk via the HTTP API stops the overlay immediately, but the next stream start re-enables it via the tick loop. There is no durable way to keep kiosk disabled across sessions without stopping hydrabody.

  4. Multiple instances not guarded: nothing prevents multiple kioskoverlay processes from being launched if launchOverlay() is called while a previous instance is still starting up.

Proposed direction: (a) on launch, kill any existing kioskoverlay.exe by name before starting a new one; (b) when VDD is primary, place the overlay on a non-primary display if one exists, or skip the overlay entirely; (c) give operators a durable per-session kiosk-disable flag.

Related: issue #373 (kiosk overlay on VDD blocks Mercator).