我有一个令人讨厌的问题,当我启动一个用于测试我的 mod 的结构项目时,我遇到了 datafixer minecraft 的内存不足错误。完整的例外在哪里:
[31mUnable to build datafixers
[m java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
Caused by: java.lang.OutOfMemoryError: Java heap space
[34m[12:32:03][m [31m[Worker-Bootstrap-4/ERROR][m [36m(Minecraft)[m [31mUnable to build datafixers
[m java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
Caused by: java.lang.OutOfMemoryError: Java heap space
at com.mojang.datafixers.functions.Functions.comp(Functions.java:27) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.lambda$one$2(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp$$Lambda$1688/0x00000008011b76a8.apply(Unknown Source) ~[?:?]
at java.util.Optional.map(Optional.java:260) ~[?:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$One.rewrite(PointFreeRule.java:651) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.PointFreeRule$OrElse.rewrite(PointFreeRule.java:571) ~[datafixerupper-4.0.26.jar:?]
at com.mojang.datafixers.functions.Comp.one(Comp.java:43) ~[datafixerupper-4.0.26.jar:?]
当我没有在我的 onInitialize 方法中注册任何内容时,它不会发生。
一天前它运行良好。
你可以在这里找到完整的 mod 代码:link to my mod's github
我无法在这方面取得任何进展......所以这很关键。
请,如果有人有任何线索或解决办法给我,那就太好了。