The bug
The game may occasionally crash when loading new chunks in an upgraded world.
Stack trace
1.18 Pre-release 1: [^crash-2021-11-11_11.24.46-server.txt]
Description: Feature placement
java.lang.NullPointerException: Cannot invoke "ddm.a(cao, cps, java.util.Random, gh)" because the return value of "java.util.function.Supplier.get()" is null
at dbi.a(SourceFile:75)
at dem.a(SourceFile:88)
at dem.a(SourceFile:84)
at dev.a(SourceFile:62)
at cps.a(SourceFile:259)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
at cps.a(SourceFile:258)
at cpu.c(SourceFile:134)
at cpu.a(SourceFile:274)
at acp.a(SourceFile:627)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at acp.a(SourceFile:621)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at acr.b(SourceFile:58)
at aud.g(SourceFile:91)
at aud.a(SourceFile:146)
at aud.run(SourceFile:102)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1434)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Linked issues
is duplicated by 21
Attachments
Comments 14
Happened to me on a server that started in 21w43a and updated to 1.18 prerelease 1. I also tried opening the world in single player and got the same problem at the same location. Notably a village generates at that location, and the crash occurs immediately as the village generates (I checked by going to the same coordinates in a earlier version, and I can also see a very small part of a couple village houses right on the edge of the area that causes the crash)
Server crash log:
---- Minecraft Crash Report ----
// You're mean.
Time: 11/11/21, 7:00 PM
Description: Feature placement
java.lang.NullPointerException: Cannot invoke "ddm.a(cao, cps, java.util.Random, gh)" because the return value of "java.util.function.Supplier.get()" is null
at dbi.a(SourceFile:75)
at dem.a(SourceFile:88)
at dem.a(SourceFile:84)
at dev.a(SourceFile:62)
at cps.a(SourceFile:259)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
at cps.a(SourceFile:258)
at cpu.c(SourceFile:134)
at cpu.a(SourceFile:274)
at acp.a(SourceFile:627)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at acp.a(SourceFile:621)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
at acr.b(SourceFile:58)
at aud.g(SourceFile:91)
at aud.a(SourceFile:146)
at aud.run(SourceFile:102)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at dbi.a(SourceFile:75)
at dem.a(SourceFile:88)
at dem.a(SourceFile:84)
at dev.a(SourceFile:62)
at cps.a(SourceFile:259)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
-- Feature --
Details:
Description: ResourceKey[minecraft:worldgen/structure_feature / minecraft:village]
-- Generation --
Details:
CenterX: 14
CenterZ: -47
Seed: -8359276053898031999
Stacktrace:
at cps.a(SourceFile:258)
at cpu.c(SourceFile:134)
at cpu.a(SourceFile:274)
-- Chunk to be generated --
Details:
Location: 14,-47
Position hash: -201863462898
Generator: csx@4f0d185f
Stacktrace:
at acp.a(SourceFile:627)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at acp.a(SourceFile:621)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
at acr.b(SourceFile:58)
at aud.g(SourceFile:91)
at aud.a(SourceFile:146)
at aud.run(SourceFile:102)
-- Affected level --
Details:
All players: 1 total; [add['AdorableCat'/112, l='ServerLevel[world]', x=183.93, y=67.39, z=-544.45]]
Chunk stats: 3979
Level dimension: minecraft:overworld
Level spawn location: World: (0,64,0), Section: (at 0,0,0 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Level time: 14033307 game time, 14663044 day time
Level name: world
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Level weather: Rain time: 131785 (now: false), thunder time: 15235 (now: false)
Known server brands: vanilla
Level was modded: false
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.b(SourceFile:879)
at acd.b(SourceFile:326)
at net.minecraft.server.MinecraftServer.a(SourceFile:820)
at net.minecraft.server.MinecraftServer.w(SourceFile:684)
at net.minecraft.server.MinecraftServer.a(SourceFile:270)
at java.base/java.lang.Thread.run(Thread.java:833)
-- System Details --
Details:
Minecraft Version: 1.18 Pre-release 1
Minecraft Version ID: 1.18-pre1
Operating System: Windows 10 (amd64) version 10.0
Java Version: 17.0.1, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 6829584944 bytes (6513 MiB) / 9563013120 bytes (9120 MiB) up to 12884901888 bytes (12288 MiB)
CPUs: 8
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Identifier: Intel64 Family 6 Model 58 Stepping 9
Microarchitecture: Ivy Bridge (Client)
Frequency (GHz): 3.39
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 8
Memory slot #0 capacity (MB): 8192.00
Memory slot #0 clockSpeed (GHz): 1.60
Memory slot #0 type: DDR3
Memory slot #1 capacity (MB): 8192.00
Memory slot #1 clockSpeed (GHz): 1.60
Memory slot #1 type: DDR3
Virtual memory max (MB): 18484.45
Virtual memory used (MB): 12106.70
Swap memory total (MB): 2432.00
Swap memory used (MB): 201.53
JVM Flags: 1 total; -Xmx12G
Player Count: 1 / 20; [add['AdorableCat'/112, l='ServerLevel[world]', x=183.93, y=67.39, z=-544.45]]
Data Packs: vanilla
Is Modded: Probably not. Server jar signature and brand is untouched
Type: Dedicated Server (map_server.txt)
h2. Singleplayer crash log:
---- Minecraft Crash Report ----
// There are four lights!
Time: 11/11/21, 8:12 PM
Description: Feature placement
java.lang.NullPointerException: Cannot invoke "ddm.a(cao, cps, java.util.Random, gh)" because the return value of "java.util.function.Supplier.get()" is null
at dbi.a(SourceFile:75)
at dem.a(SourceFile:88)
at dem.a(SourceFile:84)
at dev.a(SourceFile:62)
at cps.a(SourceFile:259)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
at cps.a(SourceFile:258)
at cpu.c(SourceFile:134)
at cpu.a(SourceFile:274)
at acp.a(SourceFile:627)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at acp.a(SourceFile:621)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at acr.b(SourceFile:58)
at aud.g(SourceFile:91)
at aud.a(SourceFile:146)
at aud.run(SourceFile:102)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1434)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at dbi.a(SourceFile:75)
at dem.a(SourceFile:88)
at dem.a(SourceFile:84)
at dev.a(SourceFile:62)
at cps.a(SourceFile:259)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
-- Feature --
Details:
Description: ResourceKey[minecraft:worldgen/structure_feature / minecraft:village]
-- Generation --
Details:
CenterX: 14
CenterZ: -47
Seed: -8359276053898031999
Stacktrace:
at cps.a(SourceFile:258)
at cpu.c(SourceFile:134)
at cpu.a(SourceFile:274)
-- Chunk to be generated --
Details:
Location: 14,-47
Position hash: -201863462898
Generator: csx@205017f6
Stacktrace:
at acp.a(SourceFile:627)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at acp.a(SourceFile:621)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at acr.b(SourceFile:58)
at aud.g(SourceFile:91)
at aud.a(SourceFile:146)
at aud.run(SourceFile:102)
-- Affected level --
Details:
All players: 1 total; [add['AdorableCat'/1219, l='ServerLevel[world]', x=223.68, y=64.84, z=-573.98]]
Chunk stats: 3894
Level dimension: minecraft:overworld
Level spawn location: World: (0,64,0), Section: (at 0,0,0 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Level time: 14011045 game time, 14640782 day time
Level name: world
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Level weather: Rain time: 19753 (now: true), thunder time: 37497 (now: false)
Known server brands: vanilla
Level was modded: false
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.b(SourceFile:879)
at net.minecraft.server.MinecraftServer.a(SourceFile:820)
at fcg.a(SourceFile:99)
at net.minecraft.server.MinecraftServer.w(SourceFile:684)
at net.minecraft.server.MinecraftServer.a(SourceFile:270)
at java.base/java.lang.Thread.run(Thread.java:831)
-- System Details --
Details:
Minecraft Version: 1.18 Pre-release 1
Minecraft Version ID: 1.18-pre1
Operating System: Windows 10 (amd64) version 10.0
Java Version: 16.0.1, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 5484756976 bytes (5230 MiB) / 7449083904 bytes (7104 MiB) up to 12884901888 bytes (12288 MiB)
CPUs: 16
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 7 3700X 8-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): 3.59
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 16
Graphics card #0 name: AMD Radeon RX 5700 XT
Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002)
Graphics card #0 VRAM (MB): 4095.00
Graphics card #0 deviceId: 0x731f
Graphics card #0 versionInfo: DriverVersion=30.0.13025.5005
Memory slot #0 capacity (MB): 8192.00
Memory slot #0 clockSpeed (GHz): 2.67
Memory slot #0 type: DDR4
Memory slot #1 capacity (MB): 8192.00
Memory slot #1 clockSpeed (GHz): 2.67
Memory slot #1 type: DDR4
Memory slot #2 capacity (MB): 8192.00
Memory slot #2 clockSpeed (GHz): 2.67
Memory slot #2 type: DDR4
Memory slot #3 capacity (MB): 8192.00
Memory slot #3 clockSpeed (GHz): 2.67
Memory slot #3 type: DDR4
Virtual memory max (MB): 37558.35
Virtual memory used (MB): 21907.71
Swap memory total (MB): 4864.00
Swap memory used (MB): 0.00
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx12G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Player Count: 1 / 8; [add['AdorableCat'/1219, l='ServerLevel[world]', x=223.68, y=64.84, z=-573.98]]
Data Packs: vanilla
Type: Integrated Server (map_client.txt)
Is Modded: Probably not. Client jar signature and brand is untouched; Server jar signature and brand is untouched
Also happened to me. Seems like no matter what direction I go it will crash when loading new chunks. When re-creating the world, I can go to those same places without any issue. There are two villages somewhat nearby my base which I had not loaded/uncovered yet. Looks like it's crashing whenever I get too close. So I suppose those villages are the culprit?
[media]If I move about 10 blocks further from that point it tries to load a village and always crashes in my original world.
I hope this is getting resolved soon!
[media][media][media]
It says Fix Version/s:Future Version - 1.18+ so i guess we will have to wait for an update to get this resolved....
@Hadi - I had success in opening the world in MCASelector and deleting the chunks that surrounded the region failing to generate, always was a village in my experience. After that, the world loaded fine once I TP'd myself away from those coords. I've yet to test if regenerating those chunks by heading back to the area causes the crash again or not.
https://www.minecraft.net/en-us/article/minecraft-1-18-pre-release-2 includes the fix to this bug,.
Got the same.
Crash report: