Input 1.1.0: a second edit during a Bluetooth save corrupts the RPC stream, Creator Micro 2 then floods and every save times out
Environment
Creator Micro 2, firmware 0.6.3, connected over Bluetooth LE
Input 1.1.0 (wl-device-kit 0.2.13)
macOS 27.2.1, Apple silicon
Karabiner-Elements is installed but set to ignore this device
What happens Saving a keymap or lights change often fails with "Request timed out" or "RPC operation aborted". While it is failing, main.log fills with "Received RPC call without id and method" at about 60 lines per second. During that flood every RPC times out (fs.writebin, lights.preview, host.focused_app). The flood lasted 37 seconds in one case and more than 4 minutes in another, then stopped by itself. Saves work again afterwards.
Steps to reproduce
Connect the Creator Micro 2 over Bluetooth.
Make a change so Input starts sending the config (6 fs.writebin chunks for my keymap, about 16 KB).
Before that save finishes, make another change, for example adjust a lights setting.
Input aborts the save in progress and sends the next RPC call.
The flood starts and saves fail until it stops.
Log excerpt (stack traces removed) 14:52:55.567 sending device config 14:52:57.800 Received answer, id: 881 method: fs.writebin (bytes_written 3072, offset 0) 14:52:58.747 Received abort from rpcId: a2bdc011-... 14:52:58.748 Aborted RPC call, id: 709 (chunk 2, still being transmitted) 14:52:58.749 failed to send device config: ABORTED: RPC operation aborted 14:52:59.234 Sending RPC call, id: 967 (lights.preview) 14:52:59.300 [warn] Received RPC call without id and method (about 60 per second until 14:53:36) 14:53:09.239 Error calling RPC, id: 967 method: lights.preview: Request timed out 14:53:43.641 failed to send device config: TIMEOUT: Request timed out 14:53:45.810 sending device config (flood over: all 6 chunks OK, fs.list confirms keymap.json)
What I think is going on Reading wl-device-kit/dist/index.js:
abortJsonRpcRequest() rejects the resolver of the in-flight request.
process() then waits 50 ms and starts the next queued task.
The sendDataHID() loop of the aborted request is not cancelled, so it keeps writing its remaining 64-byte reports.
The next request's reports are therefore interleaved with the rest of the aborted chunk, and the device receives a corrupted line. The flood began 66 ms after the next call was sent, which fits this. I have one cleanly logged start of the flood, so please treat the cause as likely rather than proven. I have not captured what the flood messages contain. They are not joystick updates: kb.radial messages are parsed normally.
Why Bluetooth makes it easy to hit Each 3072-byte chunk takes 2 to 6.5 seconds over Bluetooth on a quiet link, so a full save takes 10 to 35 seconds. That leaves a long window for a second edit, and little margin under the 10 second per-call timeout.
Suggested fixes
Input: when aborting an in-flight request, let its HID write finish (or terminate the line) before starting the next task.
Firmware: discard a malformed RPC line instead of streaming messages.
Consider a longer per-chunk timeout over Bluetooth.
I can send the full main.log if useful.
- Product
- Creator Micro v2, Input
Log in to comment and vote
No comments yet
Be the first to share your thoughts.