Closed jclulow closed 7 months ago
With the patch applied, humility exits promptly with an error message:
+ pfexec /tmp/humility hiffy -c Sequencer.get_state
humility hiffy failed: An error specific to a probe type occured
Caused by:
0: Error handling CMSIS-DAP command Info
1: Error in the USB HID access
2: hidapi error: hid_error is not implemented yet
There is now an oxide-stable branch of hidapi itself: https://github.com/oxidecomputer/hidapi/commits/oxide-stable/
I updated our oxide-stable branch of hidapi-rs to use it: https://github.com/oxidecomputer/hidapi-rs/commit/69f84deac74461bfc08adefd1feb8abe4fcdda26
And... I guess I have to make a PR here, sigh.
This
humility
invocation is reliably hanging on edgar right now:Long story short, we're hanging in
hid_close()
waiting for some event that will never arrive:This is ultimately because of a failed
libusb_submit_transfer()
call, where the return code was totally ignored. This was apparently fixed in hidapi quite some time ago:https://github.com/libusb/hidapi/commit/5ce9051e2f2e65013485bc4c83897610df82f3c9
I'm going to backport this fix to our stable hidapi branch.