mojira.dev
MC-311590

World generation threads can run out of memory with the `-DMC_DEBUG_ENABLE_FARLANDS` debug property enabled, causing several errors

Enabling the -DMC_DEBUG_ENABLE_FARLANDS debug property, teleporting to chunks containing the Far Lands and flying around enough eventually results in the threads handling world generation to run out of memory and crash, causing severe lag in the process and grinding the game to a halt, and several exceptions and errors printed in the log.

A log file generated while the issue was occurring for me has been attached to this report.

How to reproduce:

  1. Start the game with the following additional system properties: -DMC_DEBUG_ENABLED -DMC_DEBUG_ENABLE_FARLANDS.

  2. Create a new world.

  3. Teleport to arbitrary coordinates really far from the world origin.

  4. Fly around.

  5. Repeat steps 3 and 4 until frame drops start occurring.

Expected result:

The game would keep running normally, no matter the world generation conditions it has to handle.

Observed result:

The game starts lagging severely and eventually freezes after several minutes of teleporting and flying around.

Attachments

Comments 2

However, this is most likely invalid.

[Mod] ManosSef

(Unassigned)

Community Consensus

Platform EC

Low

Debug

26.3 Pre-Release 1

Retrieved