-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
[Bug]: Model file corrupted #172
Comments
Thanks. I am able to reproduce. Strangely, RNFS.hash(file, 'sha256') is not giving the same hash code as let say, |
Welcome |
I will use file size first, as it is a much less expensive operation compared to hashing for large files. If the file size check fails, I will use hashing as a fallback for double-checking. I also reported the issue here: birdofpreyru/react-native-fs#99 |
@halawnss btw your issue is not be related to the hash calculation problem, as the file sizes differ from the expected model file size. Does this happen (download interruption) when your app is in the background while downloading? But this mean we need gracefully deal with the interrupted downloads, like clean up etc, to avoid the confusion. |
@a-ghorbani download interruption happened 4 times on 1.6.2 :
|
Describe the bug
A clear and concise description of what the bug is.
When downloading from HF , suddenly it stops , says file is corrupted and asks me to delete it and download it again
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Redmi 7 , MIUI 11 , Android 10 , version 1.6.5 (44)
The text was updated successfully, but these errors were encountered: