Loading chunks
MrCatBoss opened this issue ยท 12 comments
Context
Hi all. I have created an assembly and when generating through chunky it stumbles over the structure. After searching the internet I came to the conclusion that the problem is in idas, but they told me that there are some problems with create. Any ideas how to solve this problem? Forge 47.3.11 Minecraft 1.20.1
If anything, the build hangs on the server. In the client game, I could not reproduce the error.
I don't think my crash report will help much, but I'll also throw off the error itself in the terminal.
[20:48:56] [Worker-Main-3/ERROR] [minecraft/Util]: Caught exception in thread Thread[Worker-Main-3,4,main]
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.Level.m_7702_(net.minecraft.core.BlockPos)" because "this.f_58857_" is null
at com.simibubi.create.content.fluids.tank.FluidTankBlockEntity.getControllerBE(FluidTankBlockEntity.java:202) ~[create-1.20.1-0.5.1.i.jar%23334!/:0.5.1.i] {re:classloading}
at com.simibubi.create.content.fluids.tank.FluidTankBlock.getLightEmission(FluidTankBlock.java:111) ~[create-1.20.1-0.5.1.i.jar%23334!/:0.5.1.i] {re:classloading}
at net.minecraftforge.common.extensions.IForgeBlockState.getLightEmission(IForgeBlockState.java:79) ~[forge-1.20.1-47.3.11-universal.jar%23496!/:?] {re:classloading,xf:fml:fabric_block_api_v1:implementGetAppearanceBlockState,xf:fml:fabric_block_api_v1:extendFabricBlockState,re:mixin,xf:fml:fabric_block_api_v1:implementGetAppearanceBlockState,xf:fml:fabric_block_api_v1:extendFabricBlockState}
at net.minecraft.world.level.chunk.ChunkAccess.lambda$findBlockLightSources$2(ChunkAccess.java:303) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.ticking_chunk_alloc.ChunkAccessMixin from mod modernfix,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin from mod smoothchunk,pl:mixin:APP:fabric-data-attachment-api-v1.mixins.json:AttachmentTargetsMixin from mod fabric_data_attachment_api_v1,pl:mixin:APP:quark.mixins.json:accessor.AccessorChunkAccess from mod quark,pl:mixin:A,pl:connector_pre_launch:A}
at net.minecraft.world.level.chunk.ChunkAccess.findBlocks(ChunkAccess.java:324) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.ticking_chunk_alloc.ChunkAccessMixin from mod modernfix,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin from mod smoothchunk,pl:mixin:APP:fabric-data-attachment-api-v1.mixins.json:AttachmentTargetsMixin from mod fabric_data_attachment_api_v1,pl:mixin:APP:quark.mixins.json:accessor.AccessorChunkAccess from mod quark,pl:mixin:A,pl:connector_pre_launch:A}
at net.minecraft.world.level.chunk.ChunkAccess.m_284254_(ChunkAccess.java:302) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.ticking_chunk_alloc.ChunkAccessMixin from mod modernfix,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin from mod smoothchunk,pl:mixin:APP:fabric-data-attachment-api-v1.mixins.json:AttachmentTargetsMixin from mod fabric_data_attachment_api_v1,pl:mixin:APP:quark.mixins.json:accessor.AccessorChunkAccess from mod quark,pl:mixin:A,pl:connector_pre_launch:A}
at net.minecraft.world.level.lighting.BlockLightEngine.m_142519_(BlockLightEngine.java:116) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.world.level.lighting.LevelLightEngine.m_142519_(LevelLightEngine.java:90) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_283997_(ThreadedLevelLightEngine.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_9366_(ThreadedLevelLightEngine.java:181) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_215156_(ThreadedLevelLightEngine.java:166) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.util.thread.ProcessorMailbox.m_18759_(ProcessorMailbox.java:91) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.util.thread.ProcessorMailbox.m_18747_(ProcessorMailbox.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.util.thread.ProcessorMailbox.run(ProcessorMailbox.java:102) ~[server-1.20.1-20230612.114412-srg.jar%23491!/:?] {re:classloading,pl:connector_pre_launch:A}
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) ~[?:?] {}
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) ~[?:?] {re:mixin,re:computing_frames}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:mixin,re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {re:mixin}
Crash Report
This is likely caused by connector, try reproducing this with just create, level should not be null by the time that method is called
Okay, I'll try now. Am I right in understanding that if I disable all saves, the save with the world can be damaged. If so, will it be possible to solve this in another way?
Okay, I'll try now. Am I right in understanding that if I disable all saves, the save with the world can be damaged. If so, will it be possible to solve this in another way?
Create a copy of your world, and only load into the copy, that will not affect any other saves but you should still take backups incase
During testing I found out that it occurs when generating a structure from Dungeon Now Loading 1%, but not all of them, only some of them. I.e. there are structures that are generated normally, and there are those that give this error. Removing the Connector mod does not change anything. I send messages with the removed Connector
[21:34:18] [Worker-Main-19/ERROR] [minecraft/Util]: Caught exception in thread Thread[Worker-Main-19,5,SERVER]
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.Level.m_7702_(net.minecraft.core.BlockPos)" because "this.f_58857_" is null
at com.simibubi.create.content.fluids.tank.FluidTankBlockEntity.getControllerBE(FluidTankBlockEntity.java:202) ~[create-1.20.1-0.5.1.i.jar%23322!/:0.5.1.i] {re:classloading}
at com.simibubi.create.content.fluids.tank.FluidTankBlock.getLightEmission(FluidTankBlock.java:111) ~[create-1.20.1-0.5.1.i.jar%23322!/:0.5.1.i] {re:classloading}
at net.minecraftforge.common.extensions.IForgeBlockState.getLightEmission(IForgeBlockState.java:79) ~[forge-1.20.1-47.3.0-universal.jar%23482!/:?] {re:classloading,re:mixin}
at net.minecraft.world.level.chunk.ChunkAccess.lambda$findBlockLightSources$2(ChunkAccess.java:303) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin,pl:mixin:APP:quark.mixins.json:accessor.AccessorChunkAccess,pl:mixin:A}
at net.minecraft.world.level.chunk.ChunkAccess.findBlocks(ChunkAccess.java:324) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin,pl:mixin:APP:quark.mixins.json:accessor.AccessorChunkAccess,pl:mixin:A}
at net.minecraft.world.level.chunk.ChunkAccess.m_284254_(ChunkAccess.java:302) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin,pl:mixin:APP:quark.mixins.json:accessor.AccessorChunkAccess,pl:mixin:A}
at net.minecraft.world.level.lighting.BlockLightEngine.m_142519_(BlockLightEngine.java:116) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.world.level.lighting.LevelLightEngine.m_142519_(LevelLightEngine.java:90) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_283997_(ThreadedLevelLightEngine.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_9366_(ThreadedLevelLightEngine.java:181) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_284002_(ThreadedLevelLightEngine.java:109) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.m_143188_(ChunkTaskPriorityQueueSorter.java:62) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:mixin,re:classloading,pl:mixin:APP:betterchunkloading.mixins.json:ChunkTaskPriorityQueueSorterMixin,pl:mixin:A}
at net.minecraft.util.thread.ProcessorMailbox.m_18759_(ProcessorMailbox.java:91) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.util.thread.ProcessorMailbox.m_18747_(ProcessorMailbox.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at net.minecraft.util.thread.ProcessorMailbox.run(ProcessorMailbox.java:102) ~[server-1.20.1-20230612.114412-srg.jar%23477!/:?] {re:classloading}
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) ~[?:?] {}
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) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
I actually am running into this similar issue and thank goodness I am not the only one.
I am running the same Forge version : 47.3.11 on Minecraft 1.20.1. I found out that it may be one of two mods: Create: Structures Arise FORGE or ModernFix.
As soon as I removed Create: Structures Arise, my server stopped crashing at that oddly specific error.
I say that ModernFix is another issue possibly due to an issue from a month ago having a similar issue and one of the comments mentions that ModernFix and Create don't work well together.
Here is the link to this issue: SmartStreamLabs/Create-Structures-Arise-Bugs#2
Well, as for me bug persists even having ModernFix disabled, Create: Structures Arise not installed. As far as I figured it out problem is somewhere around FluidTankBlock`s. I'm having issues loading chunk either with chunkloader either tp myself close to this chunk (its a trap, dont do that, now I cant escape that place).
Crash file is not creating, server just freezes, no way to prompt except ctrl+c
This is what I get from CLI
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.Level.m_7702_(net.minecraft.core.BlockPos)" because "this.f_58857_" is null
at com.simibubi.create.content.fluids.tank.FluidTankBlockEntity.getControllerBE(FluidTankBlockEntity.java:202) ~[create-1.20.1-0.5.1.i.jar%23396!/:0.5.1.i] {re:classloading}
at com.simibubi.create.content.fluids.tank.FluidTankBlock.getLightEmission(FluidTankBlock.java:111) ~[create-1.20.1-0.5.1.i.jar%23396!/:0.5.1.i] {re:classloading}
at net.minecraftforge.common.extensions.IForgeBlockState.getLightEmission(IForgeBlockState.java:79) ~[forge-1.20.1-47.2.30-universal.jar%23570!/:?] {re:classloading,xf:fml:fabric_block_api_v1:implementGetAppearanceBlockState,xf:fml:fabric_block_api_v1:extendFabricBlockState,re:mixin,xf:fml:fabric_block_api_v1:implementGetAppearanceBlockState,xf:fml:fabric_block_api_v1:extendFabricBlockState}
at net.minecraft.world.level.chunk.ChunkAccess.lambda$findBlockLightSources$2(ChunkAccess.java:303) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin from mod smoothchunk,pl:mixin:APP:aether.mixins.json:common.accessor.ChunkAccessAccessor from mod (unknown),pl:mixin:APP:fabric-data-attachment-api-v1.mixins.json:AttachmentTargetsMixin from mod fabric_data_attachment_api_v1,pl:mixin:APP:structure_gel.mixins.json:ChunkAccessMixin$Access from mod structure_gel,pl:mixin:A,pl:connector_pre_launch:A}
at net.minecraft.world.level.chunk.ChunkAccess.findBlocks(ChunkAccess.java:324) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin from mod smoothchunk,pl:mixin:APP:aether.mixins.json:common.accessor.ChunkAccessAccessor from mod (unknown),pl:mixin:APP:fabric-data-attachment-api-v1.mixins.json:AttachmentTargetsMixin from mod fabric_data_attachment_api_v1,pl:mixin:APP:structure_gel.mixins.json:ChunkAccessMixin$Access from mod structure_gel,pl:mixin:A,pl:connector_pre_launch:A}
at net.minecraft.world.level.chunk.ChunkAccess.m_284254_(ChunkAccess.java:302) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:smoothchunk.mixins.json:ChunkAccessMixin from mod smoothchunk,pl:mixin:APP:aether.mixins.json:common.accessor.ChunkAccessAccessor from mod (unknown),pl:mixin:APP:fabric-data-attachment-api-v1.mixins.json:AttachmentTargetsMixin from mod fabric_data_attachment_api_v1,pl:mixin:APP:structure_gel.mixins.json:ChunkAccessMixin$Access from mod structure_gel,pl:mixin:A,pl:connector_pre_launch:A}
at net.minecraft.world.level.lighting.BlockLightEngine.m_142519_(BlockLightEngine.java:116) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.world.level.lighting.LevelLightEngine.m_142519_(LevelLightEngine.java:90) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_283997_(ThreadedLevelLightEngine.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_9366_(ThreadedLevelLightEngine.java:181) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.server.level.ThreadedLevelLightEngine.m_215156_(ThreadedLevelLightEngine.java:166) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.util.thread.ProcessorMailbox.m_18759_(ProcessorMailbox.java:91) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.util.thread.ProcessorMailbox.m_18747_(ProcessorMailbox.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at net.minecraft.util.thread.ProcessorMailbox.run(ProcessorMailbox.java:102) ~[server-1.20.1-20230612.114412-srg.jar%23565!/:?] {re:classloading,pl:connector_pre_launch:A}
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) ~[?:?] {}
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) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}