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

Java 8 hangs (not 1.8.0_05 though) #857

Closed
SupaHam opened this issue Aug 10, 2016 · 2 comments
Closed

Java 8 hangs (not 1.8.0_05 though) #857

SupaHam opened this issue Aug 10, 2016 · 2 comments

Comments

@SupaHam
Copy link

SupaHam commented Aug 10, 2016

Please use the following bug reporting template to help produce actionable and reproducible issues:

Java 8 hangs when typing java -version. I've tested this with a few installations.

I first tried the popular ppa:webupd8team/java:

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

That installed successfully, but it hung when I typed java -version. Here's the strace results.

Then I went to check out if others were experiencing the same issue when I came across #49 specifically this post of manual installation instructions for java 1.8.0_05.

I tried it out and it works just fine:

root@ALI:/home/supaham# java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

However 1.8.0_05 has a few bugs and invalid compilation errors.

So I went to update to 1.8.0_102 but then it hung again. The instructions to install 102 were the same as the one in the post linked above, but the url replaced with:

wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz

Here's the strace results of the java -version command on version 1.8.0_102

Windows build number: Microsoft Windows [Version 10.0.14393]

No packages are required to install that I know of.

Edit: Although I can get java -version to work, I can't get a Minecraft instance to run without it hanging after displaying a message saying "Loading Libraries", usually on the same computer in normal Windows this step takes at most 5 seconds. So far it's been over two minutes and it's still stuck on that step with a very similar strace result as far as I can see.

@russalex
Copy link
Contributor

Java has some known issues on the Anniversary Update. The strace you provide looks very similar to some of the issues I have seen. I believe that specific issue should be in the fix for #746.

@sunilmut
Copy link
Member

I was unable to repro this in the 14971 build after following the repro $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer

But, this is 1.8.0_111
java8

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

No branches or pull requests

4 participants