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

Server crashes when creating new world if world folder exists and data pack is inside it


    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.17 Pre-release 4
    • None
    • Windows 10 Home 21H1

      java version "16.0.1" 2021-04-20
      Java(TM) SE Runtime Environment (build 16.0.1+9-24)
      Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
    • Unconfirmed
    • (Unassigned)

      When a server is started up and a world folder already exists with ONLY a data packs folder inside, and inside a data pack (specifically tested using the CavesAndCliffsPreview data pack from pre4), the server fails to start and causes an error: Encountered an unexpected exception z: Exception initializing level. After this initial crash, some other files are created in the world folder and starting the server again seems to be fine... but that shouldn't be happening.

      To reproduce:

      1. Create server.properties with a world folder name set
      2. Create the world folder manually
      3. Create a datapacks folder manually
      4. Insert the CavesAndCliffsPreview data pack into the datapacks folder (Should look like: SERVER_FOLDER\world_name\datapacks\CavesAndCliffsPreview.zip)
      5. Start server
      6. Encountered an unexpected exception z: Exception initializing level
      7. Run server again
      8. Runs fine (I think)
      9. Download .zip file provided ("Raw server folder without jar.zip") which has everything except the 1.17pre4 server.jar
      10. Run server
      11. See crash
      12. Run server again
      13. Runs fine (I think)

      What should happen:
      Repeat steps 1-5
      Server starts up and loads data pack just fine first time.

            Unassigned Unassigned
            jirauser54679 user-2a4c8 (Inactive)
            0 Vote for this issue
            4 Start watching this issue