Clipboard/paste functionality broken on RM10RC?

I recently updated my Comet KVM to the RM10RC release, and it seems like the copy-paste functionality to the remote machine has completely stopped working for me.

Is anyone else experiencing this on the RM10RC build? If you found a quick workaround or know if a fix is in the works, please let me know!

Have you used the mobile app? If so, please update the mobile app to version 1.2.2, then re-access the remote page using the mobile app, and then re-access the web page. This should resolve the "Paste failed" error message.

Hello,

For the issue, please try the following steps based on your usage:

  1. If you use our mobile app: Update the app to version 1.2.2, log in to the remote page once on your phone, then head back to your desktop app or browser to see if it's fixed.
  2. If you don't use the mobile app: Go to Toolbox > Clipboard (as shown below) and make sure the input language is set to English (US). If it isn't, switch it over and try again.

I can confirm that after update the past function is no longer working with long texts. Stops mid paste.
Tried restart and setting language to US. Mount drive is not supported on my company laptop

Hi, could you please let us know approximately how long the text is when the paste function stops working? If possible, please export the syslog and send it to us via PM.

Since updating my Comet (RM10) to V1.10.0 release4, the Clipboard paste-to-remote-device function fails for anything longer than a short string. Short pastes of a few words still work every time. Longer pastes show an error in the web UI, yet the text often continues to appear on the target machine after the error, sometimes in full and sometimes cut off.

I checked the device diagnostics and this is what I found:

  1. The paste is sent as POST /api/hid/print?limit=0. kvmd accepts it and returns HTTP 200 with no exception logged.
  2. For every failed paste, the access log shows the 200 reply with a response size of 0. The browser connection had already been closed by the time kvmd finished typing, so the reply was never delivered.
  3. The USB HID keyboard link to the target was up at the time of every failed attempt, so this is not a disconnected HID device.
  4. Retries land roughly 60 to 70 seconds apart, which matches a 60 second proxy timeout plus a manual retry.

My conclusion is that the failure is time-based, not content-based. kvmd types the text one keystroke at a time, and once typing takes longer than about 60 seconds the nginx reverse proxy in front of kvmd gives up, returns a gateway error to the browser, and closes the upstream connection while kvmd keeps typing. With this device's typing speed and CPU load that works out to roughly 500 to 1000 characters. Pastes under about 300 characters succeed, pastes over about 1000 fail consistently.

To reproduce:

  1. Open the web UI on a Comet running V1.10.0 release4, with the target machine connected over USB and a text editor focused on it.
  2. Paste a 200 character string. It should complete and show success.
  3. Paste a 1000 character string, then 2000. Watch the browser Network tab for /api/hid/print. I expect a 504 Gateway Time-out from nginx after about 60 seconds while the characters continue to arrive on the target.
  4. Compare against the previous firmware, where the same 2000 character paste completed.

Where to look:

  • The nginx config for kvmd at /etc/kvmd/nginx/ and the proxy_read_timeout and proxy_send_timeout values for the /api location. If the update lowered these or dropped a previous override, that alone explains the regression.
  • Any request timeout in the new web UI's fetch call for paste.
  • Longer term, upstream PiKVM avoids this by running the print job asynchronously and reporting progress over the websocket instead of holding the HTTP request open for the whole typing duration.

A quick fix would be to raise the proxy timeouts for the print endpoint to several minutes, or to cap the paste and chunk it on the UI side.

One unrelated item you may want to pass to the kernel team: during USB re-enumeration of the HID gadget I twice saw a kernel warning refcount_t: underflow; use-after-free in refcount_warn_saturate via cdev_put, raised from the kvmd hid-mouse process. It does not crash the device but it is a real driver defect in the gadget teardown path. I can provide the trace privately if useful.

Thank you for your investigation, this is indeed a bug.