Skip to content

Some inconsistencies #26

@icemagno

Description

@icemagno

I have two identical Tokens

Vendor ID: 4185
Product ID: 23
Class Code: 11
Manufacturer: Giesecke & Devrient GmbH
Product: STARSIGN_CUT

The first one I can insert and remove without problem. All informations are taken from the "deviceConnected" and "deviceDisconnected" triggers.

The other one, when I insert for the first time I receive this error:

net.codecrete.usb.UsbStallException: internal error (retrieving descriptor 0 failed)
	at net.codecrete.usb.windows.WindowsUsbException.throwException(WindowsUsbException.java:52)
	at net.codecrete.usb.windows.WindowsUsbException.throwLastError(WindowsUsbException.java:80)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.getDescriptor(WindowsUsbDeviceRegistry.java:259)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.getDescriptor(WindowsUsbDeviceRegistry.java:236)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.createDevice(WindowsUsbDeviceRegistry.java:223)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.createDeviceFromDeviceInfo(WindowsUsbDeviceRegistry.java:191)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.onDeviceConnected(WindowsUsbDeviceRegistry.java:334)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.handleWindowMessage(WindowsUsbDeviceRegistry.java:312)
	at net.codecrete.usb.windows.winsdk.User32B.GetMessageW(User32B.java:99)
	at net.codecrete.usb.windows.WindowsUsbDeviceRegistry.monitorDevices(WindowsUsbDeviceRegistry.java:134)
	at java.base/java.lang.Thread.run(Thread.java:1570)

but after remove and insert it again, the triggers are fired without any errors, but the vendor name may come empty sometimes.

Windows 10. Java 22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions