updata crash report analysis (#2785)

* updata OUT_OF_MEMORY

* Update CrashReportAnalyzer.java

---------

Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
zkitefly
2024-02-12 23:31:29 +08:00
committed by GitHub
parent 59cc5b9114
commit 8db8693132
3 changed files with 11 additions and 1 deletions

View File

@@ -324,6 +324,13 @@ public class CrashReportAnalyzerTest {
CrashReportAnalyzer.Rule.OUT_OF_MEMORY);
}
@Test
public void outOfMemoryJVM1() throws IOException {
CrashReportAnalyzer.Result result = findResultByRule(
CrashReportAnalyzer.anaylze(loadLog("/logs/out_of_memory2.txt")),
CrashReportAnalyzer.Rule.OUT_OF_MEMORY);
}
@Test
public void memoryExceeded() throws IOException {
CrashReportAnalyzer.Result result = findResultByRule(

View File

@@ -0,0 +1,3 @@
Error occurred during initialization of VM
Too small maximum heap
[HMCL ProcessListener] Minecraft exit with code 1(0x1).