[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

Đang mở
#1,933 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
6.7k
Fork
1.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ValveSoftware/openvr

Tất cả issue của ValveSoftware/openvr

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.