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

Game crashes when generating a world with increased height limit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w05a
    • 21w03a
    • None
    • Confirmed
    • Crash
    • Very Important

      When I attempt generate a world with height range -2048 to 2036 in singleplayer,  the game crashed when 100% progress of generating world.

      I investigate this, it crashed when "min_y" value set to -1952 and lower.

      Following is my investigation result:

      min_y: -1024, height: 1280 (range: -1024 to 255)	RESULT: OK
      min_y: -1024, height: 3056 (range: -1024 to 2031)	RESULT: OK
      min_y: -1536, height: 1792 (range: -1536 to 255)	RESULT: OK
      min_y: -1536, height: 3568 (range: -1536 to 2031)	RESULT: OK
      min_y: -1792, height: 2048 (range: -1792 to 255)	RESULT: OK
      min_y: -1792, height: 3824 (range: -1792 to 2031)	RESULT: OK
      min_y: -1920, height: 2176 (range: -1920 to 255)	RESULT: OK
      min_y: -1920, height: 3952 (range: -1920 to 2031)	RESULT: OK
      min_y: -1936, height: 2192 (range: -1952 to 255)	RESULT: OK
      min_y: -1936, height: 3968 (range: -1952 to 2031)	RESULT: OK
      min_y: -1952, height: 2208 (range: -1952 to 255)	RESULT: CRASHED
      min_y: -1952, height: 3984 (range: -1952 to 2031)	RESULT: CRASHED
      min_y: -1984, height: 2240 (range: -1984 to 255)	RESULT: CRASHED
      min_y: -1984, height: 4016 (range: -1984 to 2031)	RESULT: CRASHED
      min_y: -2016, height: 2272 (range: -2016 to 255)	RESULT: NOT TESTED, ASSUME CRASH
      min_y: -2016, height: 4048 (range: -2016 to 2031)	RESULT: NOT TESTED, ASSUME CRASH
      min_y: -2032, height: 2288 (range: -2032 to 255)	RESULT: NOT TESTED, ASSUME CRASH
      min_y: -2032, height: 4064 (range: -2032 to 2031)	RESULT: NOT TESTED, ASSUME CRASH
      min_y: -2048, height: 2304 (range: -2048 to 255)	RESULT: CRASHED(TESTED PREVIOUSLY)
      min_y: -2048, height: 4080 (range: -2048 to 2031)	RESULT: CRASHED(TESTED PREVIOUSLY)

      It seems not the "height" option caused the problem, only the "min_y".

      You can use the file "worldgen_template.json" to reproduce this, which file is also I'm used to investigate this.

      Also, the crash report is provided, maybe helpful.

        1. worldgen_template.json
          2 kB
          Bilin Tsui

            panda4994 [Mojang] Panda
            anterdc99 Bilin Tsui
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: