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

sync-chunk-writes often takes over a minute to close a world

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16 Pre-release 3
    • 20w21a, 20w22a, 1.16 Pre-release 1
    • None
    • Ubuntu 18.04
      openjdk version "1.8.0_252"
      OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
      OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
    • Plausible
    • Chunk loading
    • Important

      Apologies if this has been reported before, I searched for "save" and "saving" and could not find anything relevant.

      This issue has occurred since 20w14a. There is a workaround on a server, to disable sync-chunk-writes, but there is no workaround in singleplayer.

      To reproduce in singleplayer, start a world and close it again, observe that the world can take tens of seconds to close. To reproduce on a dedicated server, start the server and type stop in the console, and observe that the server hangs for a bit after printing the "saving chunks for level" message.

      Given that this hasn't been reported yet, I'm assuming it may be operating system dependent, although I haven't tested this on other operating systems. My OS is Ubuntu 18.04 (see the environment section).

      I ran the server through VisualVM. I have attached a screenshot of part of the profile results, as well as a CSV containing the entire snapshot.

        1. 2020-06-04_22.05.58.png
          311 kB
          Jason Mallison
        2. 20w21a-server-hang.csv
          12 kB
          Earthcomputer
        3. image-2020-05-23-20-47-08-872.png
          76 kB
          Earthcomputer
        4. worldgen_settings_export.json
          0.1 kB
          Jason Mallison

            boq [Mojang] Bartosz Bok
            Earthcomputer Earthcomputer
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: