Occasionally (once per day, or so) I see the following exception thrown by Bazel when I run a build. Unfortunately I haven't been able to narrow down the cause, and re-running the build always completes successfully.
[simon@Simons-MacBook 12:26 remote-system-manager (master)]$ bazel build ...
Unhandled exception thrown during build; message: Evaluation of REPOSITORY_DIRECTORY:@androidsdk returned non-null value but requested dependencies that weren't computed yet (one of GroupedListHelper{groupedList=[PACKAGE_LOOKUP:external, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 0, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 1, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 2, PRECOMPUTED:blaze_directories, ACTION_ENVIRONMENT_VARIABLE:ANDROID_HOME, DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[platforms], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images], [DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24]], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24/google_apis], [DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-wear], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-tv], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/google_apis]]], elements=[PACKAGE_LOOKUP:external, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 0, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 1, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 2, PRECOMPUTED:blaze_directories, ACTION_ENVIRONMENT_VARIABLE:ANDROID_HOME, DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[platforms], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24/google_apis], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-wear], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-tv], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/google_apis]], currentGroup=null}), NodeEntry: InMemoryNodeEntry{identity=1268479874, value=null, lastChangedVersion=com.google.devtools.build.skyframe.MinimalVersion@78d4c5b9, lastEvaluatedVersion=com.google.devtools.build.skyframe.MinimalVersion@78d4c5b9, directDeps=GroupedList{elements=[], size=0}, reverseDeps=ReverseDeps{reverseDeps=[], singleReverseDep=false, dataToConsolidate=null}, buildingState=BuildingState{hash=1456849658, signaledDeps/evaluating state=0, reverseDepsToSignal=ReverseDeps{reverseDeps=REPOSITORY:@androidsdk, singleReverseDep=true, dataToConsolidate=null}}}
INFO: Elapsed time: 13.233s
java.lang.IllegalStateException: Evaluation of REPOSITORY_DIRECTORY:@androidsdk returned non-null value but requested dependencies that weren't computed yet (one of GroupedListHelper{groupedList=[PACKAGE_LOOKUP:external, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 0, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 1, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 2, PRECOMPUTED:blaze_directories, ACTION_ENVIRONMENT_VARIABLE:ANDROID_HOME, DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[platforms], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images], [DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24]], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24/google_apis], [DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-wear], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-tv], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/google_apis]]], elements=[PACKAGE_LOOKUP:external, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 0, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 1, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 2, PRECOMPUTED:blaze_directories, ACTION_ENVIRONMENT_VARIABLE:ANDROID_HOME, DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[platforms], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24/google_apis], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-wear], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-tv], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/google_apis]], currentGroup=null}), NodeEntry: InMemoryNodeEntry{identity=1268479874, value=null, lastChangedVersion=com.google.devtools.build.skyframe.MinimalVersion@78d4c5b9, lastEvaluatedVersion=com.google.devtools.build.skyframe.MinimalVersion@78d4c5b9, directDeps=GroupedList{elements=[], size=0}, reverseDeps=ReverseDeps{reverseDeps=[], singleReverseDep=false, dataToConsolidate=null}, buildingState=BuildingState{hash=1456849658, signaledDeps/evaluating state=0, reverseDepsToSignal=ReverseDeps{reverseDeps=REPOSITORY:@androidsdk, singleReverseDep=true, dataToConsolidate=null}}}
at com.google.common.base.Preconditions.checkState(Preconditions.java:738)
at com.google.devtools.build.lib.util.Preconditions.checkState(Preconditions.java:255)
at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:458)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:501)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.IllegalStateException: Evaluation of REPOSITORY_DIRECTORY:@androidsdk returned non-null value but requested dependencies that weren't computed yet (one of GroupedListHelper{groupedList=[PACKAGE_LOOKUP:external, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 0, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 1, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 2, PRECOMPUTED:blaze_directories, ACTION_ENVIRONMENT_VARIABLE:ANDROID_HOME, DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[platforms], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images], [DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24]], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24/google_apis], [DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-wear], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-tv], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/google_apis]]], elements=[PACKAGE_LOOKUP:external, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 0, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 1, WORKSPACE_FILE:[/Users/simon/projects/ngi/remote-system-manager]/[WORKSPACE], 2, PRECOMPUTED:blaze_directories, ACTION_ENVIRONMENT_VARIABLE:ANDROID_HOME, DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[platforms], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-24/google_apis], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-wear], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/android-tv], DIRECTORY_LISTING:[/Users/simon/Library/Android/sdk]/[system-images/android-25/google_apis]], currentGroup=null}), NodeEntry: InMemoryNodeEntry{identity=1268479874, value=null, lastChangedVersion=com.google.devtools.build.skyframe.MinimalVersion@78d4c5b9, lastEvaluatedVersion=com.google.devtools.build.skyframe.MinimalVersion@78d4c5b9, directDeps=GroupedList{elements=[], size=0}, reverseDeps=ReverseDeps{reverseDeps=[], singleReverseDep=false, dataToConsolidate=null}, buildingState=BuildingState{hash=1456849658, signaledDeps/evaluating state=0, reverseDepsToSignal=ReverseDeps{reverseDeps=REPOSITORY:@androidsdk, singleReverseDep=true, dataToConsolidate=null}}}
at com.google.common.base.Preconditions.checkState(Preconditions.java:738)
at com.google.devtools.build.lib.util.Preconditions.checkState(Preconditions.java:255)
at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:458)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:501)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Not able to reliably reproduce.
Description of the problem:
Occasionally (once per day, or so) I see the following exception thrown by Bazel when I run a build. Unfortunately I haven't been able to narrow down the cause, and re-running the build always completes successfully.
If possible, provide a minimal example to reproduce the problem:
Not able to reliably reproduce.
Environment info
Operating System: macOS Sierra
Bazel version (output of
bazel info release):Built from source of bazel 0.4.5-rc2 (56a628a)