[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

オープン
#1,933 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

(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.

主要言語
C++
スター
6.7k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ValveSoftware/openvr のほかの issue

ValveSoftware/openvr の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。