PaperMC / PaperMC/Paper

Detected unsafe terrain read during worldgen in 26.2 (MC-307918)

Open
#13,995 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage upstream: vanilla version: 26.2
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Stack trace

Both Vanilla and Paper have this issue when loading deep dark biomes.
See MC-307918.

This is not exactly a stacktrace or exception, is an error log that might get spammed without printing any stacktrace or interrupting the execution of any code.
Still, it prints a large wall of error logs that makes it hard to ignore, and will definitely send server owners not yet aware of this into a panic.

Log in Paper:
https://pastes.dev/x7sueyL2oN

Plugin and Datapack List

Datapacks:
None

Plugins:
Worlds

Actions to reproduce (if known)

To re-create on Paper:

  1. Create a new server
  2. Install a world manager, in this case Worlds
  3. Generate a single-biome deep dark world using /world create test type single-biome minecraft:deep_dark
  4. When teleported, fly around for a bit
  5. Check the console

Seems to be related to the sculk propagating randomly, so it might take a couple of tries, although the single biome world should make it extremely common.
This is not a Worlds, or any world manager issue, it happens on a clean server with no plugins when using seeds like the following, but is way harder to trigger:

  1. 8419721602848250140
  2. -3343607211599936850
Paper version

This server is running Paper version 26.2-37-dev/26.2@f86d935 (2026-06-27T22:00:27Z) (Implementing API version 26.2.build.37-alpha)

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error on Paper 26.2-37-dev with a clean server and a single-biome deep dark world, following the listed /world create and flight steps. Compare the console output with the linked log and MC-307918; done should mean the unsafe terrain read no longer produces the reported error log during deep dark world generation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.