当试图启动我制作的织物minecraft mod时,Java堆空间不足



我遇到了一个疯狂的问题,当我启动一个测试我的mod的结构项目时,我在dataixer 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代码:链接到我的mod的github

我不能在这方面取得任何进展。。。因此,这一点至关重要。

拜托,如果有人能给我任何线索或解决办法,那就太好了。

没关系!我找到了它,我试图生成一个从0到int最大的int属性

最新更新