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
hardester
hardester3mo ago
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.
Arifi
Arifi3mo ago
Logs deleted, are there any private info there that I left? I already deleted all the mod, so idk why enchdec are here
hardester
hardester3mo ago
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?
Arifi
Arifi3mo ago
Oh, thanks for telinng me to delete that btw Also no, default minecraft launcher
hardester
hardester3mo ago
Not familiar with modding on Forge except maybe RL Craft but yeah, might need someone else to give input.
Arifi
Arifi3mo ago
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)
hardester
hardester3mo ago
Uploading to a Minecraft logs paste service like mclo.gs helps redact all personal information.
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
hardester
hardester3mo ago
No need to create an account. Just drag and drop your logs into it, press save, and share the resulting link.
Arifi
Arifi3mo ago
Told me the same thing even though my mods folder no longer has that mod?
No description
Arifi
Arifi3mo ago
Hold on lemme try again Btw thanks for the website
hardester
hardester3mo ago
Yikes, it didn't redact the info?
Arifi
Arifi3mo ago
Yeah lol, I guess that ID is the forbidden info?
hardester
hardester3mo ago
Username is, fine. The ones after that is serious.
Arifi
Arifi3mo ago
uuid, clientid, and xuid? What are those? Also I am trying to reinstall forge for now forge reinstall doesnt work....
hardester
hardester3mo ago
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.
Netherial
Netherial3mo ago
uhg aternos is a pain
Arifi
Arifi3mo ago
Well thankfully this is a new minecraft install I am not using aternos? 😅
Netherial
Netherial3mo ago
thats what the ui looks like lol, got nam flashbacks to it sorry for derailing the topic, carry on
Arifi
Arifi3mo ago
@hardester I tried reinstalling minecraft... still doesnt work Hold on lemme edit the log msg so no uuid stuff
hardester
hardester3mo ago
This is very unfortunate news. Anyways, need to head back home quick.
Arifi
Arifi3mo ago
Take your times man 👍
MarijnIsN00B
MarijnIsN00B3mo ago
Try deleting your DH config /config
YAGPDB.xyz
YAGPDB.xyz3mo ago
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
hardester
hardester3mo ago
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.
hardester
hardester3mo ago
Distant Horizons version 2.0.1-a, in Forge version 48.1.0 for Minecraft version 1.20.2 works on my end.
No description
hardester
hardester3mo ago
Relaunching to verify repeatability. Can relaunch without issue. Very unfortunate that I couldn't recreate your issue.
Arifi
Arifi3mo ago
aight
Arifi
Arifi3mo ago
Tried it
No description
Arifi
Arifi3mo ago
: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
hardester
hardester3mo ago
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.
Arifi
Arifi3mo ago
Wait dont tell me.. hold on
hardester
hardester3mo ago
Do you use custom Java runtime like Adoptium, Temurin, GraalVM or the likes and not the ones bundled with Minecraft?
Arifi
Arifi3mo ago
Nope BUT i am on linux and my JRE is still on Version 11
hardester
hardester3mo ago
11?!
Arifi
Arifi3mo ago
Look I dont know! Thats what came up!
hardester
hardester3mo ago
Well base Java version for 1.20 requires version 16. All this time, we're looking at the wrong thing...
Arifi
Arifi3mo ago
When I am installing forge
No description
Arifi
Arifi3mo ago
But I have been running other version no problemo? Wait thats JDK uhhhh
hardester
hardester3mo ago
You definitely need to check for an update for your JRE/JDK.
Arifi
Arifi3mo ago
Yeah I will try updating som Welp, if this is the problem... that means last night uninstall is useless, ah whatever
hardester
hardester3mo ago
While it may not cause problems, I think the mod is develop using a later Java version.
Arifi
Arifi3mo ago
updated java from 18 to 21, lemme try again
Arifi
Arifi3mo ago
Pain
No description
Arifi
Arifi3mo ago
Java 21
No description
Arifi
Arifi3mo ago
No description
Yeshi
Yeshi3mo ago
had something similar on the rpi5 of all machines, are you on x11 or wayland?
hardester
hardester3mo ago
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.
Arifi
Arifi3mo ago
whats x11 or wayland and how do I check em?
Yeshi
Yeshi3mo ago
this is ubuntu linux right?
Arifi
Arifi3mo ago
Ahhh so I need to downgrade it instead of upgrade Yeah
Yeshi
Yeshi3mo ago
run echo $XDG_SESSION_TYPE in your terminal
Arifi
Arifi3mo ago
x11
hardester
hardester3mo ago
So you're saying you have 18 and not 11? Or you upgraded from 11 straight to 18?
Arifi
Arifi3mo ago
I.. dont remember what version was that, sorry
hardester
hardester3mo ago
Nevermind, not important anymore. What's more important is getting version 17 installed and try again.
Yeshi
Yeshi3mo ago
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
Arifi
Arifi3mo ago
ok right, ill try that when this java thing fail
Natalya
Natalya3mo ago
Weird, I use Java 21 with no issues on my machine.
Arifi
Arifi3mo ago
Gonna try again
No description
Natalya
Natalya3mo ago
Even if you run wayland, glfw defaults to using x11/xwayland so it should still be x
Arifi
Arifi3mo ago
No description
Arifi
Arifi3mo ago
Misery
Natalya
Natalya3mo ago
Oh, look for a package like openjdk-[version]-jre
hardester
hardester3mo ago
Oh, the misery...
Arifi
Arifi3mo ago
what version should I use
Natalya
Natalya3mo ago
I use 21, the others in this thread are saying 17, idk
Arifi
Arifi3mo ago
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
Natalya
Natalya3mo ago
You manually installed debs, generally a bad idea when you could use the system package manager instead
Arifi
Arifi3mo ago
aight, I am gonna try openjdk-[version]-jre with 17 and 21 if this doesnt work idk what will
Natalya
Natalya3mo ago
Wait, that's the official Minecraft launcher. I believe it uses its own bundled Java install unless you tell it to use something else.
Arifi
Arifi3mo ago
wait what so uhh what do I change in the minecrarft launcher
Natalya
Natalya3mo ago
I think there's a setting for it in the profile settings, but it's been ages since I used that launcher
Arifi
Arifi3mo ago
myabe its due to the jvm arguments? -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Arifi
Arifi3mo ago
No description
Natalya
Natalya3mo ago
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?
Arifi
Arifi3mo ago
lemme check
Natalya
Natalya3mo ago
Those seem pretty tame, so idk if it'll change anything
Arifi
Arifi3mo ago
Instant crash lmao
No description
Arifi
Arifi3mo ago
Mayeb I should change the java executable?
Natalya
Natalya3mo ago
worth a try /usr/bin/java
Arifi
Arifi3mo ago
But what do I put there Oh btw I did the apt install openjdk-17-jre so lemme try with that first
Natalya
Natalya3mo ago
/usr/bin/java is the version run when you type java in the command line
Arifi
Arifi3mo ago
Exit 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?
Arifi
Arifi3mo ago
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...
Natalya
Natalya3mo ago
"ur"? it's "usr"
Arifi
Arifi3mo ago
/usr/bin/javac typo /usr/bin/java Tried both of these
Natalya
Natalya3mo ago
You can pick a specific version from /usr/lib/jvm/[some weird version string, check folder or tab complete in command line]/bin/java
Arifi
Arifi3mo ago
/usr/lib/jvm/java-17-openjdk-amd64/bin/java
Natalya
Natalya3mo ago
Forgot to ask, is there a file in your .minecraft named hs_err_pid[bunch of numbers].log?
Arifi
Arifi3mo ago
Welp this is a new one
No description
Arifi
Arifi3mo ago
No exit code 6 (NVM there is)
Arifi
Arifi3mo ago
Nope
No description
Yeshi
Yeshi3mo ago
they handle graphics driver related stuff ever so slightly differently
Arifi
Arifi3mo ago
But why does minecraft work with other mods or pure vanilla if its a java problem?
Arifi
Arifi3mo ago
BTW I tested vanilla minecraft, the java its using is 17
No description
Yeshi
Yeshi3mo ago
doesn't minecraft come packaged with java 😶‍🌫️
Arifi
Arifi3mo ago
Yeah... so idk whats the problem here