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