-
Notifications
You must be signed in to change notification settings - Fork 274
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
crash when calling init method of UsbMassStorageDevice. #384
Comments
Hmm can you tell me what the value of position and transfer length are, here: https://github.com/magnusja/libaums/blob/develop/libaums/src/main/java/me/jahnen/libaums/core/driver/scsi/ScsiBlockDevice.kt#L270 |
Hello Magnus, seems like I have a similar issue. In my case, it dies when the transfer length and position are both 18 (it's not right on the first call of
Other than that, the issue emerges after I call Not sure if it will help or not, but these are the test devices USBDevices read out by the library: THIS is the one that is not working correctly
This one initializes ok
If there will be anything you need from me just let me know I will try to provide as much information as I can.... |
So your device fails when trying to test if the unit is ready. The OP has the problem that the So afaik testing if the unit is ready, has no data phase. But your device seems to respond with some more data. |
Then I am sorry for exploiting this thread. However, it is interesting that both devices are standard USB disks formatted to the same filesystem. I will try to dig deeper and find out why they do no behave the same. |
Hello, so quick update on the issue you described. For whatever reason I did not see it straight away but it seems that the error occurs if the |
Hello, I also bumped into this regression. The workaround is to wait 900+ms before calling init. |
Yes, that seems in line with my observations. But still, from time to time it breaks the connection with the device and it has to be reconnected. So the solution was quick and easy to implement, but somehow its not 100% bulletproof. |
Problem
crash when setup device
Expected behavior
succed to get the root directory
Actual behavior
crash when calling init method of UsbMassStorageDevice.
Stacktrace of Excpetion
Code where problem occurs
discoverDevice
setup Device
The text was updated successfully, but these errors were encountered: