-
Notifications
You must be signed in to change notification settings - Fork 36
Overflow while getting descriptors #3
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
Comments
+1 for this issue.
here throws this exception |
usb4java 1.3.0 was released today which now uses libusb 1.0.22 which may have fixed this issue. Please try again with this new version and give feedback here if the exact same problem still occurs. If it still doesn't work but it is not the exact same result then please open a new issue. |
it still happends |
Usb4java 1.3.0 solved the issue that the library sometimes doesn't work under Windows 10 (for my TomTom Watch project). |
While running usb4java-javax-example
DumpNames
I get an overflow error while reading manufacturer and product name.The problems happens in
LibUsb.getDescriptor()
called byAbstractDevice#getLanguages()
, but when I ignore this overflow (using language 0) a similiar error happens onAbstractDevice#getUsbStringDescriptor().
I tried to increase the ByteBuffer allocation, but this does not help.
I can work around this with ignoring the Overflow:
NB: using DumpDevices if usb4java-examples works with the device (it is using
getStringDescriptorAscii
). It looks like:This is on Win7 (german, 64bit) with the Yubico security-key (HID) and 64bit Java7U72.
The text was updated successfully, but these errors were encountered: