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

Corrupt installation on Windows #5091

Open
shybovycha opened this Issue Apr 25, 2018 · 9 comments

Comments

Projects
None yet
3 participants
@shybovycha
Copy link

shybovycha commented Apr 25, 2018

Description of the problem / feature request:

I was building my project on Windows, but after a computer went to sleep and waking it up, the Bazel installation became corrupt so that none of the commands (including shutdown and clean) worked anymore:

C:\Users\shybo\projects\forks\irrlicht-newton-game1>bazel clean
Error: corrupt installation: file 'C:\Users\shybo\AppData\Local\Temp/_bazel_shybo/install/9cb70f26fe3e67cb6b1d3ed5d49f4edc/_embedded_binaries/build-runfiles.exe' missing. Please remove 'C:\Users\shybo\AppData\Local\Temp/_bazel_shybo/install/9cb70f26fe3e67cb6b1d3ed5d49f4edc' and try again.

C:\Users\shybo\projects\forks\irrlicht-newton-game1>bazel shutdown
Error: corrupt installation: file 'C:\Users\shybo\AppData\Local\Temp/_bazel_shybo/install/9cb70f26fe3e67cb6b1d3ed5d49f4edc/_embedded_binaries/build-runfiles.exe' missing. Please remove 'C:\Users\shybo\AppData\Local\Temp/_bazel_shybo/install/9cb70f26fe3e67cb6b1d3ed5d49f4edc' and try again.

The problem was that the Bazel server was still running and kept some of the file handles inside the directory mentioned. So I was made to stop the server through Task Manager and delete the directory. Only after that bazel unpacked the installation again and started working again.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  1. run Bazel on Windows
  2. put computer in a sleep mode
  3. wake computer up
  4. try running Bazel again

What operating system are you running Bazel on?

Windows 10 x64 version 1709

What's the output of bazel info release?

release 0.11.1

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

https://github.com/shybovycha/irrlicht-newton-game1.git
6cee533e3d1f8a3c9799a4295c098a12a9d55940
6cee533e3d1f8a3c9799a4295c098a12a9d55940
@meteorcloudy

This comment has been minimized.

Copy link
Member

meteorcloudy commented Apr 25, 2018

@laszlocsomor Have you seen this before?

@laszlocsomor

This comment has been minimized.

Copy link
Contributor

laszlocsomor commented Apr 25, 2018

Yes, but rarely and never know how to repro it. Let me git it a try!

@laszlocsomor

This comment has been minimized.

Copy link
Contributor

laszlocsomor commented Apr 25, 2018

I can't repro using sleep-wakeup as you described.

Was the file in question ("build-runfiles.exe") really missing, or was just Bazel reporting it was?

@laszlocsomor

This comment has been minimized.

Copy link
Contributor

laszlocsomor commented Apr 25, 2018

Could it have been that your AntiVirus quarantined / removed it?

@shybovycha

This comment has been minimized.

Copy link

shybovycha commented Apr 25, 2018

@laszlocsomor doubtedly - the only one I have is Windows Defender and it had not reported anything

@laszlocsomor

This comment has been minimized.

Copy link
Contributor

laszlocsomor commented Apr 25, 2018

I see. And is the "build-runfiels.exe" indeed missing? Are there any other files under "_embedded_binaries" or is the directory empty?

@shybovycha

This comment has been minimized.

Copy link

shybovycha commented Apr 25, 2018

The directory was definitely not empty - as I have mentioned in the description, some files were still in use by the bazel server.

@laszlocsomor

This comment has been minimized.

Copy link
Contributor

laszlocsomor commented Apr 25, 2018

Thanks. Does this happen every time your computer wakes from sleep, or does it only happen intermittently?

@laszlocsomor

This comment has been minimized.

Copy link
Contributor

laszlocsomor commented Apr 25, 2018

And also, does Bazel 0.12.0 behave differently in this regard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment