Encountered a Java error in Minecraft on Linux causing the application to crash.
Encountered a Java error in Minecraft on Linux causing the application to crash.
Hi, So ive been recently getting seemingly random crashes while playing minecraft through the MultiMC 5 client. Im on kubuntu 21.04 This is the error message that I im getting # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f054c077000, pid=36933, tid=36934 # # JRE version: Java SE Runtime Environment (17.0.1+12) (build 17.0.1+12-LTS-39) # Java VM: Java HotSpot 64-Bit Server VM (17.0.1+12-LTS-39, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # C 0x00007f054c077000 # # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/jeremyy44/.local/share/multimc/instances/Medieval Minecraft [FABRIC] - 1.17.1/minecraft/core.36933) # # An error report file with more information is saved as: # /home/jeremyy44/.local/share/multimc/instances/Medieval Minecraft [FABRIC] - 1.17.1/minecraft/hs_err_pid36933.log Compiled method (c2) 2982953 71215 4 dev.tr7zw.skinlayers.render.CustomizableModelPart::render (126 bytes) total in heap [0x00007f055c782890,0x00007f055c787e58] = 21960 relocation [0x00007f055c7829f0,0x00007f055c782d98] = 936 constants [0x00007f055c782da0,0x00007f055c782dc0] = 32 main code [0x00007f055c782dc0,0x00007f055c786020] = 12896 stub code [0x00007f055c786020,0x00007f055c7860f8] = 216 oops [0x00007f055c7860f8,0x00007f055c786108] = 16 metadata [0x00007f055c786108,0x00007f055c786330] = 552 scopes data [0x00007f055c786330,0x00007f055c7873a0] = 4208 scopes pcs [0x00007f055c7873a0,0x00007f055c787ad0] = 1840 dependencies [0x00007f055c787ad0,0x00007f055c787b40] = 112 handler table [0x00007f055c787b40,0x00007f055c787d38] = 504 nul chk table [0x00007f055c787d38,0x00007f055c787e58] = 288 # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # Process crashed with exitcode 6. I also attached the log file Im using java17 with the argument -XX:-UseBiasedLocking Which I use because it fixed a issue I had when generating a new world. hs_err_pid36933.log
Consider trying OpenJDK installation to resolve the problem. The official Oracle Java on Linux has caused issues for you, so switching might help. Also, check how you configure the Java version with MultiMC.
No need to remove the Oracle version. Just set up OpenJDK in settings > java > java runtime > auto-detect and pick your preferred version.
It's not mandatory, but enabling it might improve the auto-detect functionality.
Thanks. I installed openjdk-17-jre but kept encountering the same crash after about 20 minutes. Using openjdk didn’t require the -XX:-UseBiasedLocking flag, which was helpful. During installation, I noticed many other packages listed—should I install just the JRE or also the others? Also, I plan to test openjdk-16-jre to compare performance.
They are installed together because they rely on the same JRE. The JDK versions are exceptions, but as a non-developer you don’t need them. Consider testing OpenJDK 16; Minecraft typically requires a precise Java version, like 1.6.4, which is compatible only with Java 8.
It's unusual and goes beyond my troubleshooting skills. Does this issue persist with the official installer or is it limited to MultiMC?
Don't stress, you understand what I haven't done with the standard installer since I've mainly been using modpacks, but I'll give it a shot anyway—I don't know why I haven't tried before.
It could be the issue here—the modpack you're using might not be fully stable. Try running vanilla on the official installer and observe if it resolves the problem, then gradually add items one at a time to identify the cause.