HydraIssues

Portrait experience on a LANDSCAPE slot display is cropped: bottom 840 px black and Start button off screen
open bug Priority: high Project: Parent: #504 Reporter: 19 Oct 2026 12:23

Description

A portrait experience launched on a slot whose display is LANDSCAPE renders taller than the desktop. The bottom of the window, including the Start button, is below the screen and the stream shows a black band.

Observed on boom-pickle-38 during the #844 audio validation (reported by that session, not by me): the primary Mercator ran 1080x1920 on a landscape-height desktop, the screenshot's bottom 840 px were black, and Start was off screen. The extra slot at x0 was fully portrait and correct.

The arithmetic is exact and identifies the mechanism: the app window is 1920 tall, the desktop is 1080 tall, and 1920 - 1080 = 840, which is the measured black band.

RETRACTED: the claim that cosmic showed the same defect

An earlier version of this issue argued, from cosmic's display enumeration, that two of its three slots were landscape and that a three-stream run was therefore showing two cropped streams. THAT INFERENCE IS WITHDRAWN. It was wrong, and the reason it was wrong is worth recording because the same trap will catch the next person.

dd_resolution_option = auto means Sunshine switches the display to the client-requested resolution at session start AND RESTORES THE DESKTOP MODE ON DISCONNECT. Sunshine writes the "Currently available display devices:" enumeration at STARTUP. So that enumeration describes the RESTING topology, not the topology during an active stream, and it cannot be used to judge what a live session looked like.

The #844 session's direct observation on cosmic contradicts the inference and is self-consistent:

  • All three Start buttons were clicked successfully at client-relative y1380 during ACTIVE streams. y1380 is below a 1080-tall viewport, so the viewport was genuinely portrait.
  • The three windows sat at x0, x1080 and x2160, which is three 1080-wide portrait displays side by side.

By contrast the idle enumeration read origins of 0, 1080 and 3000, where 3000 = 1920 + 1080, i.e. the first display was still landscape AT REST. Both observations are correct; they describe different moments.

So there is NO evidence that cosmic crops a portrait experience during an active stream, and the three-stream run on 2026-10-19 is NOT shown to have been cropped.

A related risk this raises in hydrabody v2.0.80

v2.0.80 pins each slot's window with -WinX/-WinY taken from the display origin in Sunshine's enumeration - which, per the above, is the IDLE origin. If the active-session topology differs, the baked-in coordinate is wrong for the session.

Concretely on cosmic: idle origins are 0 / 1080 / 3000 and apps.json carries -WinX=3000 for slot 2, but during active streams the layout observed was 0 / 1080 / 2160, which would place slot 2's display at 2160..3240. A window at x3000 would then start 840 px inside that display and extend past its right edge.

This is NOT yet observed as a fault, and it may not bite: the window is placed when the app launches, the mode switch happens at session start, and the ordering between the two is not established. It is recorded because the arithmetic is suggestive and because measuring it needs an ACTIVE stream, not an idle snapshot. Anyone checking it must read the window position and the display topology WHILE a client is connected.

Why this is a layer-2 failure, not a window-placement one

hydrabody's orientation contract has three layers that must agree (see hydrabody CLAUDE.md and docs/runbooks/runbook.md):

  • Layer 1, stream encoding: owned by the head.
  • Layer 2, display resolution: Sunshine switches the VDD to the client-requested resolution at session start, via dd_resolution_option = auto.
  • Layer 3, app window: hydrabody registers -ResX=1080 -ResY=1920 -windowed -ForceRes in Sunshine's apps.json.

Layer 3 is being applied correctly: the window IS 1080x1920. Layer 2 is what fails, because the display does not become portrait. The likely reasons, in order of suspicion:

  1. The slot's display is the PHYSICAL panel rather than a VDD. Sunshine cannot rotate a physical monitor, and hydrabody deliberately never pins a slot to the physical panel, so this would mean the display identification is wrong for that slot.
  2. The VDD has no portrait mode in vdd_settings.xml, so dd_resolution_option = auto has nothing to switch to. hydrabody provisions portrait resolutions at startup (pkg/provider/vdd_windows.go), and that provisioning may not have run or may not cover 1080x1920 on this body.
  3. dd_resolution_option is not auto in that slot's conf.

Note this is SEPARATE from the window-placement defect fixed in hydrabody v2.0.80, where every slot inherited slot 0's origin and streamed the bare desktop. That one is fixed and verified live on cosmic (slot 0 WinX=0, slot 1 WinX=1080, slot 2 WinX=3000). The window is now on the right display; it is the wrong SHAPE for that display.

What to check first, per slot

# which display each slot captures
Select-String -Path C:\Sunshine\config*\sunshine.conf -Pattern 'output_name|dd_resolution_option'
# the resolution and origin of each display, from the Sunshine log
# (the JSON block under "Currently available display devices:")
# which displays are VIRTUAL: virtual ones carry the MTT manufacturer id
Get-PnpDevice -Class Monitor -Status OK | Where-Object { $_.InstanceId -like "DISPLAY\MTT*" }
# what the VDD is configured to offer
Select-String -Path C:\VirtualDisplayDriver\vdd_settings.xml -Pattern 'count|1080|1920'

A slot whose output_name is NOT an MTT device is pinned to the physical panel, which is cause 1 and the most serious, because it also means a visitor could be shown the operator's desktop.

Impact

Any portrait experience on a landscape slot is cropped and loses its Start button, so the experience cannot be started from the head at all without moving the window by hand. Mercator Talks is portrait (1080x1920), so this affects every portrait deployment on a multi-slot body.

The #844 session's audio isolation PASS does not certify this, and that session was explicit about not making a video claim.

Session Context

Venue
rupelmonde

Comments (1)

api 19 Oct 2026 12:26

Correction logged by the session that filed this. The cosmic evidence has been RETRACTED in the description. It was drawn from Sunshine startup enumeration, which describes the IDLE topology because dd_resolution_option=auto restores desktop modes on disconnect. The #844 session clicked all three cosmic Start buttons at client-relative y1380 with windows at x0/1080/2160 during ACTIVE streams, which proves those viewports were portrait. The boom-pickle finding stands, because it was observed DURING an active stream. Also noted in the description: a possible consequence for v2.0.80, which bakes IDLE display origins into apps.json as -WinX.