-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A failed libusb1::bulkRead()
operation can cause Packetry to display a PID Malformed does not indicate a direction
error.
#179
Comments
Running with Could you also try using the command-line capture mode from #136 to get a capture of the traffic that triggers this. That mode just dumps to pcap without running the decoder, so should avoid triggering the bug. |
Tx! Exceptions: Traffic capture using The capture file handily reproduces the Finally, a little bit more info: This was happening when the host issued a |
Thanks, I'll take a look. |
The first error is fixed in #182. The packet that caused the problem was an SOF packet with a bad CRC. It was preceded by two IN packets with bad CRCs, but those didn't trigger the same bug: I expect the second error is just a side effect of the first error: the device cannot be opened because there is a handle to it still left open by the capture/decoding process which failed. |
When I am capturing a transaction and
libusb1
is performing abulkRead()
operation that fails with aLIBUSB_ERROR_PIPE
exception that causes the host program to exit abruptly the following occurs:PID Malformed does not indicate a direction
Could not be opened for exclusive access
When I simply swallow the
LIBUSB_ERROR_PIPE
exception in the host program Packetry does not display any dialogs and continues to capture without any problems.The text was updated successfully, but these errors were encountered: