Analyze the crash caused by incompatibility between modlauncher and Java

This commit is contained in:
Glavo
2022-01-27 11:22:45 +08:00
committed by Yuhui Huang
parent 84570c5024
commit c8f1a10b8b
4 changed files with 6 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ public final class CrashReportAnalyzer {
// Fabric may have breaking changes.
// https://github.com/FabricMC/fabric-loader/tree/master/src/main/legacyJava deprecated classes may be removed in the future.
FABRIC_VERSION_0_12(Pattern.compile("java\\.lang\\.NoClassDefFoundError: org/spongepowered/asm/mixin/transformer/FabricMixinTransformerProxy")),
// Minecraft 1.16+Forge with crash because JDK-8273826
// https://github.com/McModLauncher/modlauncher/issues/91
MODLAUNCHER_8(Pattern.compile("java\\.lang\\.NoSuchMethodError: ('void sun\\.security\\.util\\.ManifestEntryVerifier\\.<init>\\(java\\.util\\.jar\\.Manifest\\)'|sun\\.security\\.util\\.ManifestEntryVerifier\\.<init>\\(Ljava/util/jar/Manifest;\\)V)")),
// Manually triggerd debug crash
DEBUG_CRASH(Pattern.compile("Manually triggered debug crash")),
CONFIG(Pattern.compile("Failed loading config file (?<file>.*?) of type SERVER for modid (?<id>.*)"), "id", "file"),