Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

java coverage crash on 4.0.0rc2 #12619

Closed
alexeagle opened this issue Dec 3, 2020 · 3 comments
Closed

java coverage crash on 4.0.0rc2 #12619

alexeagle opened this issue Dec 3, 2020 · 3 comments
Assignees
Labels
P0 This is an emergency and more important than other current work. (Assignee required) team-Rules-Java Issues for Java rules type: bug

Comments

@alexeagle
Copy link
Contributor

running bazel coverage //... in a big multi-lang monorepo.
Bazel version 37a429ad12b4c9e6a62dbae4881a1ff03b81ab40 (4.0.0-rc2)
rules_java at d43b0aa2d3b2173fcc54d3c194e89fa66cdc6e1a (current HEAD)

let me know if I can provide anything else short of a minimal repro


(21:13:45) FATAL: bazel crashed due to an internal error. Printing stack trace:
--
  | java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=//test/java/com/rh/ledger:LedgerTest, config=BuildConfigurationValue.Key[f35c31b1baf1ab2bed1284160072656c995dfa7db8c9f4349087d4fbbb2e27de]}' (requested by nodes )
  | at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:563)
  | at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398)
  | at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
  | at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  | at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
  | at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  | at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
  | at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
  | Caused by: java.lang.NullPointerException
  | at com.google.devtools.build.lib.rules.java.JavaCompilationHelper.addCoverageSupport(JavaCompilationHelper.java:382)
  | at com.google.devtools.build.lib.bazel.rules.java.BazelJavaSemantics.addCoverageSupport(BazelJavaSemantics.java:613)
  | at com.google.devtools.build.lib.rules.java.JavaBinary.create(JavaBinary.java:199)
  | at com.google.devtools.build.lib.rules.java.JavaBinary.create(JavaBinary.java:65)
  | at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:381)
  | at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:194)
  | at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:938)
  | at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1013)
  | at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:371)
  | at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:477)
  | ... 7 more

@alexeagle
Copy link
Contributor Author

From

Artifact jacocoRunnerJar = jacocoRunner.getExecutable();

it looks like jacoco runner isn't in my Java toolchain. Seems like the conditional right above that line was meant to error out in this case, but fell through instead.

@alexeagle
Copy link
Contributor Author

I see this was recently changed in 2936202

@jin
Copy link
Member

jin commented Dec 4, 2020

cc @comius

@comius comius self-assigned this Dec 4, 2020
@comius comius added P0 This is an emergency and more important than other current work. (Assignee required) and removed untriaged labels Dec 4, 2020
philwo pushed a commit that referenced this issue Dec 7, 2020
philwo pushed a commit that referenced this issue Dec 7, 2020
philwo pushed a commit that referenced this issue Dec 9, 2020
philwo pushed a commit that referenced this issue Dec 10, 2020
ulfjack pushed a commit to EngFlow/bazel that referenced this issue Mar 5, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
P0 This is an emergency and more important than other current work. (Assignee required) team-Rules-Java Issues for Java rules type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants