mojira.dev
MC-227184

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

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)
    OR

  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.

Linked issues

Attachments

Comments 4

Hello! Does MC-225707 describe your issue?

Thank you for your report!
We're tracking this issue in MC-225707, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as Fixed. Please check the Fix Version/s field in that ticket to see in which version this behavior was or will be fixed.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Stack trace is identical.

Yep! Didn't think it would be just the caves and cliffs... seems like it.

user-2a4c8

(Unassigned)

Unconfirmed

(Unassigned)

1.17 Pre-release 4

Retrieved