Skip to content
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

Exception in thread "main" java.lang.AssertionError #13241

Closed
chsigg opened this issue Mar 18, 2021 · 6 comments
Closed

Exception in thread "main" java.lang.AssertionError #13241

chsigg opened this issue Mar 18, 2021 · 6 comments
Assignees
Labels
P1 I'll work on this now. (Assignee required) team-Rules-Java Issues for Java rules type: bug

Comments

@chsigg
Copy link

chsigg commented Mar 18, 2021

Description of the problem / feature request:

TensorFlow build recently started to hit the following error:

ERROR: /tmpfs/bazel_output/_bazel_kbuilder/f2d52ca1f092ccbe254cc98c3dc90790/external/bazel_tools/tools/jdk/BUILD:350:14: Action external/bazel_tools/tools/jdk/platformclasspath.jar failed (Exit 1): java failed: error executing command external/local_jdk/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp ... (remaining 4 argument(s) skipped)
Exception in thread "main" java.lang.AssertionError: 
Could not find java.lang.Object on bootclasspath; something has gone terribly wrong.
Please file a bug: https://github.com/bazelbuild/bazel/issues
	at DumpPlatformClassPath.writeEntries(DumpPlatformClassPath.java:136)
	at DumpPlatformClassPath.writeClassPathJars(DumpPlatformClassPath.java:174)
	at DumpPlatformClassPath.dumpJDK8BootClassPath(DumpPlatformClassPath.java:77)
	at DumpPlatformClassPath.main(DumpPlatformClassPath.java:65)

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

Sorry, I don't know of a simple repro. This is happening in one of the TensorFlow CI builds. Full logs are here

What operating system are you running Bazel on?

Ubuntu 16.04

What's the output of bazel info release?

$ bazel info release
release 3.7.2

$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

The issue does not reproduce consistently (about 50% flaky) and started appearing when we switched the OS image to one with a newer CUDA version (I don't know exactly what else could have changed, I checked that the java version is the same).

@oquenchil oquenchil added team-Local-Exec Issues and PRs for the Execution (Local) team type: bug untriaged labels Mar 19, 2021
@meisterT meisterT added team-Rules-Java Issues for Java rules and removed team-Local-Exec Issues and PRs for the Execution (Local) team labels Apr 1, 2021
@meteorcloudy
Copy link
Member

@comius Any idea on this issue?

@hyeygit
Copy link

hyeygit commented Apr 9, 2021

Is anyone looking at the issue? Could someone help find an assignee possibly?

@meteorcloudy
Copy link
Member

Ping @comius @cushon

@meteorcloudy
Copy link
Member

It's mostly like something is wrong with the JDK installed. I reply to the internal issue and hopefully we can find a way to debug this.

@meteorcloudy meteorcloudy self-assigned this Apr 12, 2021
@comius comius added P1 I'll work on this now. (Assignee required) and removed untriaged labels Apr 13, 2021
@sventiffe
Copy link
Contributor

This issue stalled -- is it still a P1 (if so, please update the issue)? Else, if nobody is working on it, please bump it down to P2.

@comius
Copy link
Contributor

comius commented May 7, 2021

The issue has been resolved internally by using JDK11.

There are inherently problems using JDK8, because tensorflow is using distinct_host_configuration=false configuration flag, which "melds" together JDK11 that's part of Bazel and JDK8 on the local system. Without flag compilation takes substantially longer time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 I'll work on this now. (Assignee required) team-Rules-Java Issues for Java rules type: bug
Projects
None yet
Development

No branches or pull requests

7 participants