OutOfMemoryError on start-up --forceUpgrade

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • None
    • Environment:
    • [13:01:49] [Server thread/INFO]: This server is running CraftBukkit version 3293-Spigot-6234669-f382179 (MC: 1.18 Pre-release 5) (Implementing API version 1.18-pre5-R0.1-SNAPSHOT) [13:01:49] [Server thread/INFO]: You are running the latest version
    • Yes

      Server started with
      java -Xms8G -Xmx8G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -Dfile-encoding=UTF-8 -jar server.jar nogui --forceUpgrade --universe ./UNIVERSE

      Lots of errors were generated, even if MaxHeap was raised to 12G, and if all plugins were deleted (including Multiverse-Core) resulting in only base worlds.

      Log: https://blackdog.straight8.com/drops/2021-11-21-2.log

      The (possibly) relevant bits for reference, all of which may be found in the log:
      [22:52:17] [IO-Worker-19/ERROR]: Chunk [-34, -3] stream is truncated: expected 13635 but read 12283
      [22:52:17] [IO-Worker-19/ERROR]: Declared size -180569091 of chunk [-36, -14] is negative
      [22:52:17] [IO-Worker-14/ERROR]: Declared size -591900337 of chunk [-36, -12] is negative
      [22:52:17] [IO-Worker-19/ERROR]: External chunk path ./UNIVERSE/world/region/c.-36.-11.mcc is not file
      [22:52:17] [IO-Worker-14/ERROR]: Declared size -1453141551 of chunk [-34, 0] is negative
      [22:52:19] [IO-Worker-15/ERROR]: Chunk [7, -34] stream is truncated: expected 12769 but read 12283
      [22:52:23] [IO-Worker-14/ERROR]: Chunk [40, 35] stream is truncated: expected 4156 but read 4091
      [22:52:24] [IO-Worker-19/ERROR]: External chunk path ./UNIVERSE/world/region/c.49.38.mcc is not file
      [22:52:24] [IO-Worker-19/ERROR]: Chunk [49, 39] stream is truncated: expected 8851 but read 8187
      [22:52:24] [IO-Worker-14/ERROR]: Chunk [44, 40] stream is truncated: expected 10099 but read 8187
      [22:52:24] [IO-Worker-19/ERROR]: External chunk path ./UNIVERSE/world/region/c.53.41.mcc is not file
      [22:52:24] [IO-Worker-14/ERROR]: Declared size -1151963652 of chunk [53, 42] is negative
      [22:52:24] [IO-Worker-19/ERROR]: Declared size -1641880703 of chunk [53, 43] is negative
      [22:52:30] [IO-Worker-19/ERROR]: External chunk path ./UNIVERSE/world/region/c.53.44.mcc is not file
      [22:52:31] [IO-Worker-14/ERROR]: Caught exception in thread Thread[IO-Worker-14,5,main]
      java.lang.OutOfMemoryError: Java heap space

            Assignee:
            Unassigned
            Reporter:
            SlimeDog
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: