-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Intermittent failure to rename buildtrees results in build failure #8199
Comments
@rleigh-codelibre, I can't repro this issue, can you delete harfbuzz folder under buildtrees and try again? does it repro? |
The failure occurs fairly randomly. I can reproduce consistently with antivirus enabled (Kaspersky). This is the most recent failure:
additional repeat:
and
With antivirus disabled, the rename failures seem to stop. However, I've not repeated the test enough times to be certain that it never occurs. |
This issue seems to happen more and more frequently. However, I still not repro this issue on my local machine. |
I have the same problem here with Kaspersky and Windows 10. |
Re #10218 mentioned above, I have McAfee on my work laptop and can't turn it off to test whether the problem is due to antivirus. |
I have reproduced a similar issue on my VMware hosts Windows server 2008
This may be caused by the virtual machine's file system. And manually rename the folder can work around it. |
https://gitlab.kitware.com/cmake/cmake/commit/7b1f966a6c456270004a2aec2c53057ca8efbac9 Can try registry keys |
Getting the same error on Windows 10, no anti-virus.
|
I am getting the exact same error as @palmada . Vcpkg excluded from anti-virus scanning. |
I am also getting the same error as @palmada |
Any news on this? Tried to update Boost to 1.73 but this build issue is still the same. :-( |
I can't install protobuf at all when this issue exists. What can i do next? I use the latest version of master. the error message:
to
because: No error Call Stack (most recent call first): |
So far the problem fix was always to TEMPORARILY disable your anti-virus. I know it's not a permanent solution but that's the only solution we have so far I guess. |
Indeed, that's working as a quick fix. Thx! |
seems like in the end it got me also: No anti-virus. Confirmed that this occurs RANDOMLY. |
I can't reproduce this issue with the latest vcpkg(2021-08-03-1a6d67b8150e94b7f473c6ab1c0cfd) and VS2019 16.10.4, |
Thanks for posting this issue. This issue hasn’t been updated in five months. Please reopen this issue if this is still a problem for you. |
Vcpkg version: 2019.09.12-nohash
Describe the bug
Failed rename of buildtree causes build failure. I thought it might be similar to the docker-related rename failure filed previously, but that's at download time and in a container. This is after download on native Windows on NTFS on a fast NVMe drive, and the error is different. In fact, the error string is "No error". I have seen this failure a few times now.
There's the possibility that anti-virus scanning might be at play here, and I am re-testing with the vcpkg tree excluded explicitly. However, the ticket might be useful for anyone else experiencing the same failure scenario. If things outside the control of vcpkg are preventing simple filesystem operations from completing, it might be worth looking at a limited number of backoffs and retries as a mitigation. Or implementing the same directly in CMake.
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful build
Failure logs
The text was updated successfully, but these errors were encountered: