guihkx / com.teamshiginima.ShiginimaLauncher

📦 Flatpak build of Shiginima Launcher (NOT OFFICIAL)
Creative Commons Zero v1.0 Universal
11 stars 3 forks source link

Fixed jdk version for Minecraft 1.17 #6

Closed ErikPelli closed 3 years ago

ErikPelli commented 3 years ago

This commit fixes issue #5

guihkx commented 3 years ago

Unfortunately, the launcher always crashes for me after updating to OpenJDK 16.0.1:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f91069a015c, pid=2, tid=3
#
# JRE version: OpenJDK Runtime Environment 21.3 (16.0.1+9) (build 16.0.1+9)
# Java VM: OpenJDK 64-Bit Server VM 21.3 (16.0.1+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  0x00007f91069a015c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/gui/core.2)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: /app/share/com.teamshiginima.ShiginimaLauncher/launcher.jar --workdir /home/gui/.var/app/com.teamshiginima.ShiginimaLauncher/data/minecraft

Host: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 4 cores, 7G, Freedesktop.org 20.08.13 (Flatpak runtime)
Time: Sat Jun 12 08:31:22 2021 -03 elapsed time: 7.143379 seconds (0d 0h 0m 7s)

---------------  T H R E A D  ---------------

Current thread (0x00007f9188010120):  JavaThread "main" [_thread_in_native, id=3, stack(0x00007f918f366000,0x00007f918f467000)]

Stack: [0x00007f918f366000,0x00007f918f467000],  sp=0x00007f918f4645e8,  free space=1017k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x00007f91069a015c

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.java.swing.plaf.gtk.GTKStyle.nativeGetXThickness(I)I+0 java.desktop@16.0.1
j  com.sun.java.swing.plaf.gtk.GTKStyle.<init>(Ljava/awt/Font;Lcom/sun/java/swing/plaf/gtk/GTKEngine$WidgetType;)V+24 java.desktop@16.0.1
j  com.sun.java.swing.plaf.gtk.GTKStyleFactory.getStyle(Ljavax/swing/JComponent;Ljavax/swing/plaf/synth/Region;)Ljavax/swing/plaf/synth/SynthStyle;+310 java.desktop@16.0.1
j  com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(Ljavax/swing/UIDefaults;)V+53 java.desktop@16.0.1
j  com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getDefaults()Ljavax/swing/UIDefaults;+33 java.desktop@16.0.1
j  javax.swing.UIManager.setLookAndFeel(Ljavax/swing/LookAndFeel;)V+66 java.desktop@16.0.1
j  javax.swing.UIManager.setLookAndFeel(Ljava/lang/String;)V+34 java.desktop@16.0.1
j  net.minecraft.launcher.SwingUserInterface.setLookAndFeel()V+11
j  net.minecraft.launcher.SwingUserInterface.<init>(Lnet/minecraft/launcher/Launcher;Ljavax/swing/JFrame;)V+14
j  net.minecraft.launcher.Launcher.selectUserInterface(Ljavax/swing/JFrame;)Lnet/minecraft/launcher/MinecraftUserInterface;+6
j  net.minecraft.launcher.Launcher.<init>(Ljavax/swing/JFrame;Ljava/io/File;Ljava/net/Proxy;Ljava/net/PasswordAuthentication;[Ljava/lang/String;Ljava/lang/Integer;)V+106
j  net.mc.main.Main.startMC([Ljava/lang/String;)V+510
j  net.mc.main.Main.main([Ljava/lang/String;)V+262
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x00007f91069a015c

Tested on both Arch Linux and Ubuntu 21.10.

Perhaps this should be reported here: https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk

But I'm afraid it will be ignored, unless we can actually reproduce the crash with an app in the Flathub store.