mojira.dev
MCL-10501

Exit code 127 when trying to play version older then 1.13

On Ubuntu, the launcher crashes whenever I try to play a version older then 1.13. The specific message doesn’t say much about it, but when using logs I get the exit code 127. I would paste in the logs, but my copy and paste refused to work so I can’t show you.
 

Comments 11

Please attach the crash report ([minecraft|http://hopper.minecraft.net/help/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt), otherwise we can not diagnose this issue.
For technical support please use the Mojang Support Center.

-- I am a bot. This action was performed automagically!

When this crash happens no crash report is created.

 

The log window inside the launcher says:

 

Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!

Process crashed with exit code 127

 

 

Found the answer: this happens if you use Java 11 instead of Java 8. To fix it, enable advanced options in the launcher and set the java executable to Java 8. You can find the location of the Java 8 executable with `sudo update-alternatives --config java`. Assuming it is installed, it will list something like `/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java` which is what you should put into the advanced options.

Thank you. As far as we are aware, the game currently does not officially support anything other than Java 8.

Please clarify – which version specifically are you trying to launch? If it's earlier than 1.6, then newer Java versions will definitely not work; however, 1.6 through 1.12.2 should work to my knowledge. However, if you are using mods, then Java 8 again is required and newer versions will not work. (In both of these cases, it's because LaunchWrapper is required and LaunchWrapper only supports Java 8 and earlier – it's incompatible with 9+ due to classloader changes).

1 more comments

how does one make /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java the default for every game. Or do you have to do it on your own

 

Is there any way to install Java 8? Ive been looking for the last hour and i can't find any working tutorial. Thanks!

When you run the official Mojang .deb installer on Ubuntu, it pulls in OpenJDK 11, so it’s a little odd to hear that it’s not supported.

Vanilla 1.11.2 definitely does not work with OpenJDK 11.

In case anyone still needs a workaround…

Check available versions: apt -names-only search "openjdk.*jre$"

Install v. 8: sudo apt install openjdk-8-jre

Then either edit the launcher profile to point to the correct Java version (/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java) or use this command to set the default version of java:

sudo update-alternatives --config java

 

how do I edit the launcher profile like that

Hi ! this error also occurs on a third-party launcher called multimc. So if someone here knows a little bit about mutlimc I'd like to hear the solution to my problem !

Have a great day!

 

Chase Parker

(Unassigned)

Unconfirmed

Retrieved