-
-
Notifications
You must be signed in to change notification settings - Fork 7k
CRC mismatch of downloaded file causes all subsequent Boards Manager installation attempts of that package to fail #5394
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
This is a known issue, it shouldn't happen since It is surely something we need to tackle once we start Board Manager refactoring. |
Sorry if it's a duplicate. I did some searching and found other CRC error reports but only closed issues with instructions to manually delete the file, not discussions of how to fix the problem. I agree it's best practices to make sure that all filenames are unique but the creators of 3rd party hardware packages may not always follow that since it's not obvious it will cause a problem. I could see things like 1.0.0.zip or common tool filenames causing this issue. Looking through the first part of the Unofficial list of 3rd party boards support urls wiki page I did find some filenames in the JSON files that could potentially cause this issue. I believe the same issue happens with Library Manager also. I can't completely test it but if I fake it by manually corrupting one of the files in the staging/libraries folder and then trying to install that library it does cause the same issue. I can't test whether Library Manager saves downloaded files with a CRC mismatch so I could be wrong about that. |
Yeah, this happens with the library manager also. I just tried to installed a library in a different sketchbook, and it wouldn't install due to FWIW, here is the full error
|
pfeerick's workaround worked for me as well, just removing everything from the staging folder. |
Previously the CRC error was quite annoying to recover because the user needed to manually delete the corrupted file from the staging folder (without knowing the exact path of the file to remove). Now the IDE tries autonomously to resolve the situation by removing the file and downloading it again. Fixes arduino#5394 arduino#4303
Using Arduino IDE 1.6.12 Hourly Build 2016/09/20 07:05 with Windows 7 64 bit
If a file downloaded during a Boards Manager installation has a CRC mismatch that file will cause attempts to reinstall to fail because Boards Manager doesn't redownload files that already exist in the
staging
folder. This could also happen if a previously installed package used the same filename for a file with a different hash. The solution would be to delete the corrupted file after CRC mismatch is encountered. This would still cause the installation to fail but will not block later attempts. Right now the only way around the issue is to manually delete the corrupted file from thestaging
folder.The text was updated successfully, but these errors were encountered: