Game instantly crash after launching Minecraft with exit code 6
Using Forge
Same Version (1.20.2)
Tried deleting all other mod except for DH
Help appreciated
99 Replies
Delete your logs, NOW.
Other than that, one of your mods, "enchdesc", needed another mod "bookshelf" but mod "bookshelf" is not installed...
I have no idea if those are actual mod names. Please check each of your mods and check if any of them need another mod.
Logs deleted, are there any private info there that I left?
I already deleted all the mod, so idk why enchdec are here
Now that you've deleted the logs, I would say yes there's a few.
Also, if you already cleared your mods, are by any chance playing with a custom launcher?
Oh, thanks for telinng me to delete that btw
Also no, default minecraft launcher
Not familiar with modding on Forge except maybe RL Craft but yeah, might need someone else to give input.
Now that you say it, its weird why the logs still mentions other mods despite me deleting em
Also which part of the logs that are needs to be deleted? (In case I wanna post it elsewhere)
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
No need to create an account. Just drag and drop your logs into it, press save, and share the resulting link.
Told me the same thing even though my mods folder no longer has that mod?
Hold on lemme try again
Btw thanks for the website
Yikes, it didn't redact the info?
Yeah lol, I guess that ID is the forbidden info?
Username is, fine. The ones after that is serious.
uuid, clientid, and xuid? What are those?
Also I am trying to reinstall forge for now
forge reinstall doesnt work....
XUID is your Xbox User ID. UUID is your unique identifier. ClientID is your launcher ID.
Worst case scenario, you might need to reset your
.minecraft
folder.
Copy over everything, or if you only care about your saves, screenshots, resource packs and/or shader packs, copy those instead of the rest.uhg aternos is a pain
Well thankfully this is a new minecraft install
I am not using aternos? 😅
thats what the ui looks like lol, got nam flashbacks to it
sorry for derailing the topic, carry on
@hardester I tried reinstalling minecraft... still doesnt work
Hold on lemme edit the log msg
so no uuid stuff
This is very unfortunate news. Anyways, need to head back home quick.
Take your times man 👍
Try deleting your DH config
/config
To edit the config, press the button next to the FOV slider to edit the config.
The config file found in .minecraft/config/DistantHorizons.toml
Since this is Forge, and Indium only serves as an intermediary for Fabric Rendering API working with Sodium, there's absolutely nothing wrong in this log.
I'm out of ideas at this point.
Push comes to shove, I might need to recreate your issue by getting a working Distant Horizons on Forge.
Distant Horizons version 2.0.1-a, in Forge version 48.1.0 for Minecraft version 1.20.2 works on my end.
Relaunching to verify repeatability.
Can relaunch without issue.
Very unfortunate that I couldn't recreate your issue.
aight
Tried it
:couing:
What could be the reason for this
Check the logs, almost the same thing like yesterday.. I think
hold on lemme redact some info before sending
Non zero exit code? That's a Java crash, not the game.
Your Java runtime is the one crashing and not Minecraft itself. No wonder there's nothing wrong in the logs.
Wait
dont tell me..
hold on
Do you use custom Java runtime like Adoptium, Temurin, GraalVM or the likes and not the ones bundled with Minecraft?
Nope
BUT i am on linux and my JRE is still on Version 11
11?!
Look I dont know! Thats what came up!
Well base Java version for 1.20 requires version 16.
All this time, we're looking at the wrong thing...
When I am installing forge
But I have been running other version no problemo?
Wait
thats JDK
uhhhh
You definitely need to check for an update for your JRE/JDK.
Yeah
I will try updating som
Welp, if this is the problem... that means last night uninstall is useless, ah whatever
While it may not cause problems, I think the mod is develop using a later Java version.
updated java from 18 to 21, lemme try again
Pain
Java 21
had something similar on the rpi5 of all machines, are you on x11 or wayland?
Prism Launcher complained when I tried running Minecraft with Java 21. It recommends Java 17, which is what I used. You probably have to use 17.
whats x11 or wayland and how do I check em?
this is ubuntu linux right?
Ahhh so I need to downgrade it instead of upgrade
Yeah
run
echo $XDG_SESSION_TYPE
in your terminalx11
So you're saying you have 18 and not 11? Or you upgraded from 11 straight to 18?
I.. dont remember what version was that, sorry
Nevermind, not important anymore. What's more important is getting version 17 installed and try again.
if following what hardester says doesn't work out in the end, try https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop
this would be kind of a last resort since it involves changing a system config file
ok
right, ill try that when this java thing fail
Weird, I use Java 21 with no issues on my machine.
Gonna try again
Even if you run wayland, glfw defaults to using x11/xwayland so it should still be x
Misery
Oh, look for a package like
openjdk-[version]-jre
Oh, the misery...
what version should I use
I use 21, the others in this thread are saying 17, idk
I tried both... doesnt work on both
by the way, normal forge and normal minecraft work fine
the only time it goes exit code 6 is with DH on... I think
You manually installed debs, generally a bad idea when you could use the system package manager instead
aight, I am gonna try openjdk-[version]-jre with 17 and 21
if this doesnt work idk what will
Wait, that's the official Minecraft launcher. I believe it uses its own bundled Java install unless you tell it to use something else.
wait what
so uhh what do I change in the minecrarft launcher
I think there's a setting for it in the profile settings, but it's been ages since I used that launcher
myabe its due to the jvm arguments?
-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Ah, some options get deprecated over time and cause the JVM to tell you you're bad for doing that
Does it run if you remove the JVM args?
lemme check
Those seem pretty tame, so idk if it'll change anything
Instant crash lmao
Mayeb I should change the java executable?
worth a try
/usr/bin/java
But what do I put there
Oh
btw I did the apt install openjdk-17-jre so lemme try with that first
/usr/bin/java
is the version run when you type java
in the command lineExit code 6 again
This is weird,,, running java --version after that apt install return this
java --version
openjdk 18.0.2-ea 2022-07-19
But I used 17?
Also I tried adding /ur/bin/java
Instant crash
Your Java Runtime is incompatible. Please edit your installation to use the bundled Java Runtime.
Name: Java version mismatch
URL: https://aka.ms/jnierror
Home
Minecraft: Java Edition Troubleshooting
This article applies to Minecraft: Java Edition. If you need help with Minecraft for Windows, Xbox One, or mobile, see this Minecraft support resources page.
Check out this article if you're having...
"ur"? it's "usr"
/usr/bin/javac
typo
/usr/bin/java
Tried both of these
You can pick a specific version from
/usr/lib/jvm/[some weird version string, check folder or tab complete in command line]/bin/java
/usr/lib/jvm/java-17-openjdk-amd64/bin/java
Forgot to ask, is there a file in your
.minecraft
named hs_err_pid[bunch of numbers].log
?Welp this is a new one
No exit code 6 (NVM there is)
Nope
they handle graphics driver related stuff ever so slightly differently
But why does minecraft work with other mods or pure vanilla if its a java problem?
BTW I tested vanilla minecraft, the java its using is 17
doesn't minecraft come packaged with java 😶🌫️
Yeah...
so idk whats the problem here