Sitelet https://github.com/usb4java/usb4java/issues/77
Skip to content

javax.usb.UsbException: Pipe is still busy #77

Description

@WanManito

Environment:

  • OS: Windows 10
  • Java version [Java 8]
  • usb4java version [1.3.0]

Bug description
javax.usb.UsbException: Pipe is still busy,
When I call syncSubmit methods
image,
Then close the receive channel and you get this error
keepRecived = false;
if (iface != null) {
sendUsbPipe.close();
receivedUsbPipe.close();
iface.release();
iface = null;
sendUsbPipe = null;
receivedUsbPipe = null;
}

Reproduction
Open a usb port and start the thread to receive data continuously

Expected behavior
Call close to close normally instead of calling an exception,And the second connection to The Times exception is not closed,This is caused by closing The Times exception

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions