[Input] Compositor dashboard laser-mouse map falls back to built-in generic template for custom controller type — per-device asymmetric, bistable on full reloads, same-content reload refused by CRC dedup

Abierto
#1,933 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
cpp
Área
devtools

Línea de trabajo

The fault sits in the closed-source SteamVR compositor input-map rebuild, which the repository does not contain, so the report's log evidence and vrcompositor_actions.json are the only material here. Start from resources/config/vrcompositor_actions.json and the binding file named in the report to see how custom controller_type entries are declared. Done means a reproducible explanation or a driver-side workaround confirmed against the reported logs, which needs Valve maintainer input.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

(1)Environment

  • SteamVR 2.17.10, Windows 11
  • Custom OpenVR controller driver, controller_type: "my_hand", two devices (left/right), input_bindingui_mode: controller_handed
  • Input profile declares only: /input/pinch, /input/grip, /input/system (/input/system/click precise path), /pose/tip — no trackpad/trigger/grip/application_menu
  • A dashboard binding is applied at runtime for the compositor component via the same HTTP channel the binding UI uses:
    POST localhost:27062/input/selectconfig.action with {"app_key":"openvr.component.vrcompositor","controller_type":"my_hand","url":"file:///.../vrcompositor_bindings_my_hand.json"}
    (persisted in steamvr.vrsettings as openvr.component.vrcompositor/my_hand_250820_CurrentURL_steamvrinput)
  • The driver's input profile also declares default_bindings: [{ "app_key": "openvr.component.vrcompositor", "binding_url": "vrcompositor_bindings_my_hand.json" }] (same pattern as the built-in oculus touch profile)
  • The binding JSON maps: /actions/lasermouse/in/Pointer ← /user/hand/right/pose/tip, /actions/lasermouse/in/leftclick ← /user/hand/right/input/pinch, /actions/system/in/ToggleDashboard ← /user/hand/{left,right}/input/system/click
  • Note my_hand is not present in resources/config/vrcompositor_actions.json default_bindings (11 built-in types only)

(2)Symptom

Intermittently — correlated with scene-app launch, standby exit, and device events — the dashboard laser pointer for the hand controller disappears and the system-button (dashboard toggle) mapping stops working, permanently, until a later full input reload happens to restore it or SteamVR is restarted. Gamepad interaction is unaffected. Session duration of the broken state: up to 9+ minutes in our captured session.

Log evidence (SteamVR 2.17.10; full logs available)

Timeline from vrserver.txt + vrclient_vrcompositor.txt:

  1. 16:15:58.713 — full input reload (all app keys × all controller types enumerated). For our binding:
    [Input] openvr.component.vrcompositor (my_hand) attempting to load current setting config from file:///.../vrcompositor_bindings_my_hand.json
    [Workshop] Successfully loaded binding file '...vrcompositor_bindings_my_hand.json' for app 'openvr.component.vrcompositor'.
    
  2. 16:15:58.742 (29 ms later) — compositor laser-mouse input map rebuild: right hand falls back to the built-in generic template (checks trackpad/grip/trigger/application_menu, then Couldn't find action /actions/lasermouse/in/TrackpadScroll. Ignoring it.), while the left hand keeps the precise /user/hand/left/input/system/click check — asymmetric per-device fallback.
  3. From this point, every rebuild for the right hand shows the generic-template shape; the precise /user/hand/right/input/system/click check never returns on its own.
  4. Recovery is bistable. Byte-identical full-reload blocks produced opposite outcomes (16:18:40 good vs 16:18:46 bad; healthy period 7/7 good; after eventual recovery, 10 consecutive reloads alternated good/bad strictly). 5 full reloads during the broken period: 3 bad, 2 transiently good (recovered, then lost again without any application-side change).
  5. Same-content reloads are refused, so the binding cannot be re-applied to heal the state (8 instances):
    [Input] Failed to load binding file. We'll wait and try again when CRC or load count changes
    ( computed CRC=1346308029, old CRC=384058241, shared CRC=1346308029, load count=159 ... [app: openvr.component.vrcompositor]
    
    Note refusals occur even when computed CRC != old CRC (the consumer's own state is stale) as long as computed CRC == shared CRC.
  6. vrcompositor_bindings_generic.json is never loaded in the entire session (0 hits), despite the fallback map matching its content exactly — the template appears to be built-in.
  7. The driver-shipped default binding (profile default_bindings) is never consulted either — the current-setting layer shadows it, and the failing rebuild does not walk down to it.

(3)What we ruled out

  • File resolution failure — the binding loads successfully every reload ([Workshop] Successfully loaded), 7–30 ms before the failing rebuild
  • Driver default binding misconfiguration — correct entry present; shadowed by design, never reached
  • Server-side application gap — binding applied and persisted; re-POST with identical content is refused by the CRC dedup
  • Foreground-app context — loss also occurred at session start before any game connected (mini-cycle: rebuild reads generic → full reload 2 s later reads correct)

(4)Hypothesis (marked as such)

The compositor's per-device input-map rebuild race: the right-hand (laser-host) device's compiled mapping is rebuilt from the built-in template before/independently of the just-loaded binding, and no later mechanism replaces it because same-content loads are CRC-refused. Only load-count-changing events (device add/remove) re-trigger the rebuild, with a bistable outcome.

(5)Questions

  1. Is the compositor laser-mouse map rebuild expected to consume the openvr.component.vrcompositor current-setting binding for every rebuild, including device-event-triggered ones? Is the per-device (right-hand-only) fallback shape known?
  2. What does computed CRC hash — file content or URL? Would a URL-only change (query string) force a reload, or is a content change required?
  3. Could same-content selectconfig.action re-POSTs be made to force a compositor rebuild (currently blocked by the dedup above), so applications can self-heal this state?
  4. Was this behavior changed/fixed in 2.18+? We can test betas on request.

(6)Reproduction

Intermittent; strongest trigger = device connect/disconnect events while a scene app runs, with a custom controller_type absent from vrcompositor_actions.json default_bindings. We can provide the full log set (vrserver.txt + vrclient_vrcompositor.txt for the whole session), the binding/profile JSONs.

Lenguaje dominante
C++
Estrellas
6.7k
Forks
1.3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/openvr

Todos los issues de ValveSoftware/openvr

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.