HydraIssues

hydrabody: a body with duplicate VDD root devices is planned down to one slot although it already has enough displays
closed bug Priority: medium Project: hydrabody Parent: #504 Reporter: 18 Oct 2026 16:00

Description

Symptom

A body that genuinely has enough virtual displays for N slots stays single-slot, and hydrabody.log says only:

[slots] could not provision N virtual displays: found 3 root display devices (ROOT\DISPLAY\0000, ROOT\DISPLAY\0001, ROOT\DISPLAY\0002): refusing to guess which one is the Virtual Display Driver, staying single slot

Measured on boom-pickle-38 (node-74f9fbf2), 2026-10-18

hydrabody v2.0.76, Sunshine 2025.924.154138.

cosmic-pretzel-98 (works) boom-pickle-38
VDD root devices ROOT\DISPLAY\0000 0000, 0001, 0002, all from oem128.inf
monitors per device 3 (UID256/257/258) 1 each
vdd_settings.xml <count> 3 1
MTT monitors reporting OK 3 3

Both bodies have three usable virtual displays. Only one of them can start slots.

Cause

EnsureVirtualDisplayCount decided whether provisioning was needed by comparing the requested slot count against <count> in vdd_settings.xml alone. On boom-pickle had=1 and n=3, so it took the rewrite path, which calls vddRootInstanceID, which refuses when there is more than one ROOT\DISPLAY\* device (pkg/provider/slot_displays_windows.go:192). The refusal is correct; reaching it was not.

The settings file states a request. The monitors state the fact. On a body whose VDD was installed more than once the two legitimately disagree, because every root device reads the same shared file and contributes its own monitors.

The rewrite would also have been actively wrong. <count>2</count> across three root devices means six monitors, not two.

Fix

EnsureVirtualDisplayCount now counts the body's MTT monitors first and leaves the driver alone when the body already has enough, via a new pure predicate vddProvisioningSatisfied(monitors, settingsCount, want) in pkg/provider/slot_displays.go.

The monitor count is a reason added to the existing settings check, never one that replaces it: a body whose file already asks for N was left alone before, and making it bounce its display driver because the monitors were briefly undercounted would be a worse fault than the one being fixed. A monitor count of 0 means "could not read", never "no displays", and falls back to the old behaviour.

vddRootInstanceID's error message now also says why duplicates are dangerous and that a body with enough monitors never reaches it.

Related

  • Duplicate VDD root devices are the pre-v2.0.44 provisioning bug from #233. boom-pickle's are historical residue; vdd_version.txt is present so hydrabody will not reinstall.
  • #428 is the other known consequence of duplicate adapters on a body (absolute mouse mapping). Clearing boom-pickle's duplicates is still worth doing on its own merits; it is simply no longer a prerequisite for slots.

Session Context

Venue
rupelmonde

Comments (1)

api 18 Oct 2026 16:13

Fixed and verified live in hydrabody v2.0.77 (36d0a9c, CI green, published to the production channel 16:03 UTC 2026-10-18).

boom-pickle-38 picked it up at 16:09 UTC and took the new path on the restart:

[vdd] body already has 3 virtual monitor(s) for 2 slot(s), vdd_settings.xml asks for 1 and was left alone
[slots] slot manager ready with 2 slots
[slots] started slot(s) [0 1]

That is the exact body that could not start a slot before. Its three ROOT\DISPLAY\* devices and its <count>1</count> file are untouched, which is the point: the driver was never bounced and the file was never rewritten.

The change is a pure predicate, vddProvisioningSatisfied(monitors, settingsCount, want), so the decision is unit tested rather than only observed. The settings check is kept as an independent reason to skip, so an undercount can never provoke a driver bounce on a body that was already being left alone.

Docs updated in the same release: the new Multiple streaming slots section of docs/runbooks/runbook.md, and the Multiple VDD devices troubleshooting entry now says duplicates are worth clearing but no longer block slots. docs/testbooks/body-readiness.md carries the same correction.