Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading chunks #7073

Open
MrCatBoss opened this issue Oct 15, 2024 · 7 comments
Open

Loading chunks #7073

MrCatBoss opened this issue Oct 15, 2024 · 7 comments
Labels
type: crash Issue where the game crashes

Comments

@MrCatBoss
Copy link

MrCatBoss commented Oct 15, 2024

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

https://mclo.gs/FWQlZWf

@MrCatBoss MrCatBoss added the type: crash Issue where the game crashes label Oct 15, 2024
@IThundxr
Copy link
Collaborator

This is likely caused by connector, try reproducing this with just create, level should not be null by the time that method is called

@MrCatBoss
Copy link
Author

So, roughly speaking, just disable all mods except Create, right?

@IThundxr
Copy link
Collaborator

yes

@MrCatBoss
Copy link
Author

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?

@IThundxr
Copy link
Collaborator

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

@MrCatBoss
Copy link
Author

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) ~[?:?] {}

@MrCatBoss
Copy link
Author

any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: crash Issue where the game crashes
Projects
None yet
Development

No branches or pull requests

2 participants