mojira.dev
MC-241194

Crash: 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

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

MC-241190 Crash after using nether portal back to overworld Resolved MC-241200 world crash in some areas near new 1.18 chunk when updating Resolved MC-241203 Constant Crashes Resolved MC-241251 Crash during feature placement Resolved MC-241253 its a weird crash Resolved

Attachments

Comments 14

Got the same.

Crash report:

---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 2021-11-11 21:08
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: -56
    CenterZ: -25
    Seed: 8245936698326237802
Stacktrace:
    at cps.a(SourceFile:258)
    at cpu.c(SourceFile:134)
    at cpu.a(SourceFile:274)

-- Chunk to be generated --
Details:
    Location: -56,-25
    Position hash: -103079215160
    Generator: csx@5c3eebf2
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['ploppona'/32, l='ServerLevel[test b]', x=-982.13, y=71.00, z=-166.26]]
    Chunk stats: 4869
    Level dimension: minecraft:overworld
    Level spawn location: World: (-208,64,64), Section: (at 0,0,0 in -13,4,4; chunk contains blocks -208,-64,64 to -193,319,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
    Level time: 149056 game time, 272915 day time
    Level name: test b
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
    Level weather: Rain time: 85945 (now: false), thunder time: 77114 (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: 960617872 bytes (916 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB)
    CPUs: 12
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Identifier: Intel64 Family 6 Model 158 Stepping 10
    Microarchitecture: Coffee Lake
    Frequency (GHz): 3,19
    Number of physical packages: 1
    Number of physical CPUs: 6
    Number of logical CPUs: 12
    Graphics card #0 name: Intel(R) UHD Graphics 630
    Graphics card #0 vendor: Intel Corporation (0x8086)
    Graphics card #0 VRAM (MB): 1024,00
    Graphics card #0 deviceId: 0x3e92
    Graphics card #0 versionInfo: DriverVersion=27.20.100.9664
    Graphics card #1 name: NVIDIA GeForce GTX 1050 Ti
    Graphics card #1 vendor: NVIDIA (0x10de)
    Graphics card #1 VRAM (MB): 4095,00
    Graphics card #1 deviceId: 0x1c82
    Graphics card #1 versionInfo: DriverVersion=27.21.14.5751
    Memory slot #0 capacity (MB): 8192,00
    Memory slot #0 clockSpeed (GHz): 2,67
    Memory slot #0 type: DDR4
    Virtual memory max (MB): 17201,37
    Virtual memory used (MB): 14113,94
    Swap memory total (MB): 9182,98
    Swap memory used (MB): 1527,93
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Player Count: 1 / 8; [add['ploppona'/32, l='ServerLevel[test b]', x=-982.13, y=71.00, z=-166.26]]
    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

Happening for me as well.

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

Ditto, 21w43a - > 1.18 pre 1.

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]

 

4 more comments

More crash report:

[media][media]

where do i see the resolution of this problem? as i have the same one.

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.

Kevin Murphy

Fry

Confirmed

Very Important

Crash

1.18 Pre-release 1

1.18 Pre-release 2

Retrieved