ConcurrentHashMap NPE and "Unexpected error when updating chunk at pos" in Chunk to Lod Builder

Hello! I've yet to start removing mods looking for incompatibility, but thought to ask here first if anyone had seen such an error :)
Solution:
try turning up the quality preset. and if that doesnt help try turning off cave culling (or settings the cave culling height lower)
Jump to solution
11 Replies
tmpod
tmpodOP4w ago
(couldn't send everything in a single message, so here are the logs in detail) I get hundred of lines like these when loading into a new world:
[16:07:34] [DH-LOD Builder - Chunk to Lod Builder Thread[0]/ERROR]: Unexpected error when updating chunk at pos: [C[-615,-3318]]
java.lang.NullPointerException: null
[16:07:34] [DH-LOD Builder - Chunk to Lod Builder Thread[0]/ERROR]: Unexpected error when updating chunk at pos: [C[-615,-3318]]
java.lang.NullPointerException: null
tmpod
tmpodOP4w ago
And the NPE is as follows (attached)
tmpod
tmpodOP4w ago
these NPEs seem to happen every few seconds (5 maybe?), even if I'm completely still (and don't even have the game focused) these first ones seem to happen every time I try to load new chunks And, naturally, LOD chunks don't seem to be rendering at all I've tried nuking the config (TOML) file, in case it was something with that, to no avail, unfortunately
Puhpine
Puhpine4w ago
this is indeed probably a mod incompatibility. you could try a /binary search
YAGPDB.xyz
YAGPDB.xyz4w ago
Try a binary search and figure out which mod is causing it. So disable half of the mods, see if issue is still there, if yes disable half again etc etc until you find the mod that's causing the issue.
Tenor
tmpod
tmpodOP4w ago
ye, gonna do that then, thx o7 Lol my first batch of removing mods made the LOD builder NPEs show more info:
[16:31:10] [DH-LOD Builder - Chunk to Lod Builder Thread[1]/ERROR]: Unexpected error when updating chunk at pos: [C[-617,-3320]]
java.lang.NullPointerException: Cannot read field "field_16011" because the return value of "net.minecraft.class_2680.method_26205(net.minecraft.class_1922, net.minecraft.class_2338)" is null
at loaderCommon.fabric.com.seibel.distanthorizons.common.wrappers.block.BlockStateWrapper.<init>(BlockStateWrapper.java:187) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at loaderCommon.fabric.com.seibel.distanthorizons.common.wrappers.block.BlockStateWrapper.fromBlockState(BlockStateWrapper.java:131) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at loaderCommon.fabric.com.seibel.distanthorizons.common.wrappers.chunk.ChunkWrapper.getBlockState(ChunkWrapper.java:297) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at com.seibel.distanthorizons.core.wrapperInterfaces.chunk.IChunkWrapper.getBlockBiomeHashCode(IChunkWrapper.java:301) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at com.seibel.distanthorizons.core.api.internal.SharedApi.lambda$bakeChunkLightingAndSendToLevelAsync$0(SharedApi.java:297) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
[16:31:10] [DH-LOD Builder - Chunk to Lod Builder Thread[1]/ERROR]: Unexpected error when updating chunk at pos: [C[-617,-3320]]
java.lang.NullPointerException: Cannot read field "field_16011" because the return value of "net.minecraft.class_2680.method_26205(net.minecraft.class_1922, net.minecraft.class_2338)" is null
at loaderCommon.fabric.com.seibel.distanthorizons.common.wrappers.block.BlockStateWrapper.<init>(BlockStateWrapper.java:187) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at loaderCommon.fabric.com.seibel.distanthorizons.common.wrappers.block.BlockStateWrapper.fromBlockState(BlockStateWrapper.java:131) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at loaderCommon.fabric.com.seibel.distanthorizons.common.wrappers.chunk.ChunkWrapper.getBlockState(ChunkWrapper.java:297) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at com.seibel.distanthorizons.core.wrapperInterfaces.chunk.IChunkWrapper.getBlockBiomeHashCode(IChunkWrapper.java:301) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at com.seibel.distanthorizons.core.api.internal.SharedApi.lambda$bakeChunkLightingAndSendToLevelAsync$0(SharedApi.java:297) ~[distanthorizons-2.2.1-a.i0:0/:2.2.1-a]
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
ok now it's not giving any log spam, but it's not working either I'll yeet config and SQLite files again doesn't seem to be that either I have my (sodium) render distance at the max of 32 and DH at 128 the culprit seems to be Polytone anyway, LODs are not loading properly, despite no apparent log errors seems to be better now actually, but I'm getting some hard artifacts in some areas
tmpod
tmpodOP4w ago
stuff like this
No description
Puhpine
Puhpine4w ago
oh interesting, havent heard that one before
Solution
Puhpine
Puhpine4w ago
try turning up the quality preset. and if that doesnt help try turning off cave culling (or settings the cave culling height lower)
tmpod
tmpodOP4w ago
this is a server with multiple worlds and dimensions, and I have the thingy disabled, but I've only joined this world and dimension after nuking the database yup, that fixed it, tyvm makes sense, cus this map is leveled at y=0
Puhpine
Puhpine4w ago
Nice!
Want results from more Discord servers?
Add your server