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

Worldgen settings are not validated and can cause crashes

XMLWordPrintable

    • Confirmed
    • Crash, World generation

      The bug

      Some parameters are not validated and this can lead to a crash. This bug report is meant to list all those cases.

      Invalid range

      Parameter Value Result
      noise.size_horizontal
      noise.size_vertical
      0 Divide by zero crash-2020-05-21_21.32.22-client.txt
      noise.size_horizontal
      noise.size_vertical
      < 0 Negative array size crash-2020-05-22_16.09.23-server.txt
      noise.height < 1 Bound must be positive crash-2020-05-22_15.41.08-server.txt
      noise.height > 256 Index out of bounds crash-2020-05-22_15.46.11-server.txt
      structures.*.spacing 0 Divide by zero crash-2020-05-22_16.41.13-server.txt

      Other

      Condition Result
      structures.*.spacing <= separation Bound must be positive crash-2020-05-22_22.35.48-server.txt
      noise.height < 9 and not a void biome Bound must be positive crash-2020-05-22_21.42.07-server.txt
      Unknown (related to spacing) String index out of range crash-2020-05-29_15.15.05-client.txt
      Reproduce: string_index_range.json

      This list is incomplete. Please help by commenting and attaching a crash report.

        1. crash-2020-05-21_21.32.22-client.txt
          16 kB
          [Helper] Misode
        2. crash-2020-05-22_15.41.08-server.txt
          6 kB
          [Helper] Misode
        3. crash-2020-05-22_15.46.11-server.txt
          4 kB
          [Helper] Misode
        4. crash-2020-05-22_16.09.23-server.txt
          4 kB
          [Helper] Misode
        5. crash-2020-05-22_16.41.13-server.txt
          4 kB
          [Helper] Misode
        6. crash-2020-05-22_21.42.07-server.txt
          4 kB
          zero318
        7. crash-2020-05-22_22.35.48-server.txt
          4 kB
          [Helper] Misode
        8. crash-2020-05-29_15.07.13-server.txt
          6 kB
          [Helper] Misode
        9. crash-2020-05-29_15.15.05-client.txt
          4 kB
          [Helper] Misode
        10. height_1_crash.json
          6 kB
          zero318
        11. string_index_range.json
          4 kB
          [Helper] Misode

            fry [Mojang] Georgii Gavrichev
            Misoloo [Helper] Misode
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: