HydraIssues

[RESOLVED 2026-08-20] Portrait crop on production bodies: stale write-once sunshine.conf (manual-era on boom-pickle, dead output_name GUID on cosmic)
closed bug Project: hydrabody Reporter: cederik 19 Aug 2026 23:05

Description

Incident 2026-08-19/20: portrait streams cropped on both production bodies

Full investigation (6-agent sweep) reconstructed the history: manual-era sunshine.conf (Apr 2026) -> auto switch v1.11.34 (2026-05-13, #173) shipped WITHOUT migration; write-once marker (vdd_sunshine_configured.txt) preserves stale configs forever (gate never checks dd values, vdd_windows.go:60-96).

boom-pickle-38 (node-74f9fbf2) — ROOT CAUSE CONFIRMED AND FIXED 2026-08-20 00:29

  • Conf still had manual-era dd_resolution_option=manual + dd_manual_resolution=1920x1080 (last written 2026-05-14). Every stream pinned the VDD to landscape; UE rendered 1080x1920 -> crop.
  • Fix applied: backed up conf (sunshine.conf.bak-20260820), deleted marker, stripped managed lines; hydrabody regenerated conf with auto (same VDD GUID {5eb52002...}) and restarted Sunshine (00:29:44).
  • NOT yet visually verified with a portrait stream. Remaining: one mercator-talks test stream, expect Sunshine log "Desktop resolution [1080x1920]" and uncropped image.
  • Still carries THREE VDD PnP instances (ROOT\DISPLAY\0000/0001/0002, #428/#233 pattern -> mouse coordinate skew risk). Dedupe deferred: risky remotely, needs venue contact on standby + display_device.state deletion after (see body-readiness.md:128-159).

cosmic-pretzel-98 (node-4c2be4b0) — conf CORRECT (auto), cause NOT yet proven

  • Suspects in order: (1) stale output_name GUID after its VDD dedupe (tell-tale log: "Device {GUID} does not exist in the available path source data"), (2) layer 1 requesting landscape (check moonlight-web-stream session log Brussels / iPad request), (3) SetDisplayConfig ERROR_GEN_FAILURE (#263, fix: RunVDDCtrl one-shot interactive task, runbook:644-703).
  • Blocker: hydrabody truncates sunshine.log after every portrait stream (v2.0.55 cleanup). Evidence MUST be copied mid-stream: Copy-Item C:\Sunshine\config\sunshine.log <dest> while streaming, then grep Optimize game settings / does not exist in the available / GEN_FAILURE / Desktop resolution.
  • Procedure: start mercator-talks on an iPad (cosmic sorts first when idle), capture mid-stream, branch per evidence.
  • 2026-08-20 00:33 test was rupelmonde (landscape) — inconclusive by design; landscape worked correctly.

Prevention (from the investigation, in value order)

  1. Implement #128: verify sunshine.conf BY VALUE every tick, repair + restart on drift (would have healed boom-pickle 15 weeks ago).
  2. Implement #86 + config schema version so design changes force regeneration.
  3. VDD adapter health check: >1 VDD PnP instance = unhealthy; dedupe at provision; re-derive output_name + delete display_device.state on topology change (#428).
  4. Rotate sunshine.log on restart instead of truncating (every cosmic diagnosis has died on an empty log) + fix min_log_level (#431).
  5. Close silent-failure gap (#166/#88): body echoes APPLIED resolution; head alarms on mismatch.
  6. Update hydrabody CLAUDE.md "Orientation contract" (still describes pre-May manual design).

RESOLVED 2026-08-20 ~01:20

Both bodies verified with live mercator-talks portrait streams on fleet iPads:

  • boom-pickle-38: fixed by conf regeneration (stale manual-era conf). Verified uncropped.
  • cosmic-pretzel-98: root cause CONFIRMED from mid-stream log: Error: Device "{5eb52002-...}" is not available in the system! — stale output_name GUID after the May VDD dedupe changed the device path. Same fix applied (marker + managed lines deleted, hydrabody regenerated with the current GUID). Verified uncropped.
    Remaining open work tracked separately: prevention items (esp. #128), boom-pickle VDD dedupe (3 instances, maintenance window), and two new bugs found during testing: body-selection double-booking race and shared Moonlight uniqueid (filed separately).