[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
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
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/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.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/openvr
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
ValveSoftware/openvr#1289 · 1 reaction ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
ValveSoftware/openvr#227 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
ValveSoftware/openvr#1938 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
ValveSoftware/openvr#1937 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ValveSoftware/openvr#1936 ·
Tất cả issue của ValveSoftware/openvr
Issue tương tự
-
enhancement question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lbr-stack/lbr_fri_ros2_stack#420 · 1 bình luận ·
-
area:readers difficulty:easy prio:normal type:bug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
NatronGitHub/openfx-arena#276 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
morluto/rea#15041 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty:easy func:buildsystem prio:low type:task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
NatronGitHub/Natron#2070 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày