Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-241378

Village generation crashes the game

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18 Pre-release 1
    • None
    • Unconfirmed
    • (Unassigned)

      From the crash report the game is crashing because it's trying to generate a village.

      As far as I could see it was a badlands biome, and a jungle biome behind, so villages would be out of the question.

       

      My guess (not having fiddled through the code) is that maybe the villager type is not set in this case scenario?

       

      In any case the crash report should have all the elements to reproduce this crash (crash happened 3 times so i guess I'll just avoid that area for now)

      Sorry if it's a duplicate, I tried sieveing through de different issues and didn't find this one.

       

      ---- Minecraft Crash Report ----
      // Don't be sad, have a hug! <3

      Time: 13/11/2021 07:59
      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: -50
          CenterZ: 113
          Seed: 5561137194577860831
      Stacktrace:
          at cps.a(SourceFile:258)
          at cpu.c(SourceFile:134)
          at cpu.a(SourceFile:274)

      – Chunk to be generated –
      Details:
          Location: -50,113
          Position hash: 489626271694
          Generator: csx@a5edcb4
      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['Stanmarsh77'/129, l='ServerLevel[Cavetest]', x=-378.74, y=111.00, z=1670.23]]
          Chunk stats: 7830
          Level dimension: minecraft:overworld
          Level spawn location: World: (0,94,0), Section: (at 0,14,0 in 0,5,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: 1016031 game time, 1561523 day time
          Level name: Cavetest
          Level game mode: Game mode: survival (ID 0). Hardcore: true. Cheats: false
          Level weather: Rain time: 43419 (now: false), thunder time: 5282 (now: true)
          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: 580384968 bytes (553 MiB) / 4865392640 bytes (4640 MiB) up to 8589934592 bytes (8192 MiB)
          CPUs: 24
          Processor Vendor: AuthenticAMD
          Processor Name: AMD Ryzen 9 3900X 12-Core Processor            
          Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
          Microarchitecture: Zen 2
          Frequency (GHz): 3,79
          Number of physical packages: 1
          Number of physical CPUs: 12
          Number of logical CPUs: 24
          Graphics card #0 name: NVIDIA GeForce RTX 3090
          Graphics card #0 vendor: NVIDIA (0x10de)
          Graphics card #0 VRAM (MB): 4095,00
          Graphics card #0 deviceId: 0x2204
          Graphics card #0 versionInfo: DriverVersion=27.21.14.6140
          Memory slot #0 capacity (MB): 16384,00
          Memory slot #0 clockSpeed (GHz): 2,13
          Memory slot #0 type: DDR4
          Memory slot #1 capacity (MB): 16384,00
          Memory slot #1 clockSpeed (GHz): 2,13
          Memory slot #1 type: DDR4
          Virtual memory max (MB): 56998,23
          Virtual memory used (MB): 50471,51
          Swap memory total (MB): 24316,48
          Swap memory used (MB): 552,26
          JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
          Player Count: 1 / 8; [add['Stanmarsh77'/129, l='ServerLevel[Cremettre]', x=-378.74, y=111.00, z=1670.23]]
          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

            Unassigned Unassigned
            Stanmarsh77 Francois Esquerre
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: