[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
まだ誰も着手していません。
評価
調査の方向性
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/clickprecise 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.actionwith{"app_key":"openvr.component.vrcompositor","controller_type":"my_hand","url":"file:///.../vrcompositor_bindings_my_hand.json"}
(persisted in steamvr.vrsettings asopenvr.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_handis not present inresources/config/vrcompositor_actions.jsondefault_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:
- 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'. - 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, thenCouldn't find action /actions/lasermouse/in/TrackpadScroll. Ignoring it.), while the left hand keeps the precise/user/hand/left/input/system/clickcheck — asymmetric per-device fallback. - From this point, every rebuild for the right hand shows the generic-template shape; the precise
/user/hand/right/input/system/clickcheck never returns on its own. - 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).
- Same-content reloads are refused, so the binding cannot be re-applied to heal the state (8 instances):
Note refusals occur even when[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]computed CRC != old CRC(the consumer's own state is stale) as long ascomputed CRC == shared CRC. vrcompositor_bindings_generic.jsonis never loaded in the entire session (0 hits), despite the fallback map matching its content exactly — the template appears to be built-in.- 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
- Is the compositor laser-mouse map rebuild expected to consume the
openvr.component.vrcompositorcurrent-setting binding for every rebuild, including device-event-triggered ones? Is the per-device (right-hand-only) fallback shape known? - What does
computed CRChash — file content or URL? Would a URL-only change (query string) force a reload, or is a content change required? - Could same-content
selectconfig.actionre-POSTs be made to force a compositor rebuild (currently blocked by the dedup above), so applications can self-heal this state? - 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ValveSoftware/openvr のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
ValveSoftware/openvr#1289 · リアクション 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
ValveSoftware/openvr#227 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ValveSoftware/openvr#1938 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
ValveSoftware/openvr#1937 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ValveSoftware/openvr#1936 ·
ValveSoftware/openvr の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
deepseek-ai/DeepGEMM#529 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
521xueweihan/HelloGitHub#4591 ·