Roadmap 0.12, Fixes

FX.495 Studio on Windows: a laptop's own HID device ends Studio at start (hidapi "Slice is not null terminated")

  • Fix
  • Built · in the lab
  • Studio

Reported on /suggest (#2170, anonymous, 2026-11-24): Studio 0.10.0 and 0.11.0 end 30-50 ms after the first paint on every start on a Windows 11 Lenovo Yoga Pro 9 (0.9.0 works); startup.log: PANIC in hidapi-2.6.7 src/windows_native/string.rs:29 "Slice is not null terminated". Bluetooth off and every USB device out: still ends.

Cause: the page asks for 3D mice at start (cc_hid_list); hidapi 2.6.7's Windows backend asserts while listing (its USB serial fallback hands from_slice a piece without its null, upstream PR ruabmbua/hidapi-rs#189, not released; and a device string that fills its 256-unit buffer), and the release profile's panic = "abort" ended the whole program.

Fixed in desktop-shell (2026-11-24, not committed): patches/hidapi = hidapi 2.6.7 with those places fixed (no panic: the device is skipped or its text cut), taken through [patch.crates-io]; release profile panic = "unwind"; devices.rs lists and reads on threads of their own and turns a panic into an error in the start-up log (guarded, catch_unwind in the reader). Same for MIDI lists. licenses.mjs: a patched upstream crate keeps its authors' name.

Tests (workstation11a, Windows target run on Windows): patched hidapi 4/4 new tests; shell devices:: 10/10 incl. a panic in a device list is an error; cargo xwin check --release clean; devices-native lists HID devices through the patch. VPS: devices.rs std-only 13/13; desktop-shell node tests all pass.

Waits for: a Studio 0.11.x build (owner). Not proven on the reporter's laptop: no such device here.

fx-planned 2026-11-25: code checked in place (desktop-shell: patches/hidapi through [patch.crates-io], panic = "unwind", devices.rs); session work is finished. Not committed, not in any Studio build yet; suggestion #2170 is left open until a build exists.

Waits on: Owner: a Studio 0.11.x build carrying it; then the reporter (#2170) can try it on that laptop

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.