LV. 1
GP 0

【問題】(問題)java.lang.OutOfMemoryError: Java heap space

樓主 Humb1e hulk159159
GP0 BP-
想問各位大神問題
今天突然開啟MINECRAFT
就跑出了這個錯誤訊息
去版上爬了很多文
也照著那謝配置設置了
因為本人不懂JAVA所以
也不太知道自己是否設置了正確
不過參考了本篇
https://forum.gamer.com.tw/Co.php?bsn=18673&sn=567818
將JAVA指令設置為 -Xmx5G -Xms512M -XX:MaxPermSize=4G
還是會跑出這個錯誤訊息
以下為崩潰報告  求各位大神幫幫新手小弟
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 2019/11/22 下午 5:33
Description: Initializing game

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
at java.lang.StringBuilder.append(StringBuilder.java:190)
at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1014)
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:815)
at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:418)
at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:406)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at xj.a(SourceFile:509)
at xj.a(SourceFile:517)
at xj.a(SourceFile:532)
at cfw.a(SourceFile:886)
at cfw.<init>(SourceFile:377)
at cft.am(SourceFile:418)
at cft.a(SourceFile:380)
at net.minecraft.client.main.Main.main(SourceFile:144)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
at java.lang.StringBuilder.append(StringBuilder.java:190)
at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1014)
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:815)
at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:418)
at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:406)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at xj.a(SourceFile:509)
at xj.a(SourceFile:517)
at xj.a(SourceFile:532)
at cfw.a(SourceFile:886)
at cfw.<init>(SourceFile:377)
at cft.am(SourceFile:418)

-- Initialization --
Details:
Stacktrace:
at cft.a(SourceFile:380)
at net.minecraft.client.main.Main.main(SourceFile:144)

-- System Details --
Details:
Minecraft Version: 1.13.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 806237048 bytes (768 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Launched Version: 1.13.2
LWJGL: 3.1.6 build 14
OpenGL: NO CONTEXT
GL Caps:
Using VBOs: ~~ERROR~~ NullPointerException: null
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: ~~ERROR~~ NullPointerException: null
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: <unknown>


0
-
未登入的勇者,要加入 2 樓的討論嗎?
板務人員:

1268 筆精華,前天 更新
一個月內新增 0
歡迎加入共同維護。


face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】