Closed icemagno closed 4 months ago
Thanks for reporting this. It looks as if the device returns an invalid string descriptor (since the descriptor is in UTF-16, it would need to contain an even number of bytes but doesn't). I will probably change the code to make it slightly more robust.
The exception is thrown and printed in a background thread. So your exception handlers have no effect. The exception is printed using the Java system logger (see https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/System.Logger.html). So if you want to hide it, it's probably best the use a logging library that can consume these log messages and configure it such that it is not printed.
Thanks. Do you know what class I must suppress in my Logback XML ? Perhaps jdk.internal.foreign.AbstractMemorySegmentImpl.checkArraySize
The class to suppress is net.codecrete.usb.windows.WindowsUsbDeviceRegistry
.
Thanks. Closing.
I'm doing this (basicaly your example):
and getting this error not relevant to what I'm doing but very annoying because It's scaring my users:
I think this is a webcam ( I have one but it was not listed so I think it is the responsible for this ). This error don't broke my executions but is very annoying.
Webcam Multilaser Wc055
Already tried to surround with any Try..Catch possible but it still throwing... What can I do to solve this?