mojira.dev
MC-269520

Game freezes while using /locate command in a world without structures enabled

This has been documented and has appeared to have been fixed in versions as far back as 1.14 according to this website, but this issue still appears in modern version 1.20.4.

When using the /locate command within a world that has the "Generate Structures" tab turned off when creating the world, the game will freeze for a couple of minutes. The player is able to break and place blocks. However, the player cannot interact with entities, drop items, interact with blocks (i.e. chests, crafting tables, etc.), cannot light portals, cannot use items (ender pearls, bow and arrows, etc.), blocks will not interact with each other (water and lava will not mix to create stone, cobblestone, or obsidian), mobs will not be affected by blocks (lava and fire will not damage them), commands will not work, and finally the world will jump forward to anything you have done (hop into minecart as shown, open furnaces, drop items, etc.) but will not affect mobs or other entities, and then freeze and slow down until eventually crashing.

Here's the error code I got the first time I let the game crash, without stopping it through other means: -1073740940.

Linked issues

Attachments

Comments

[MOD] Greymagic27

We do not have enough information to find the cause of this issue.

Please attach the crash report found in [minecraft/crash-reports/crash-<DATE>-client.txt|https://minecrafthopper.net/help/finding-minecraft-data-folder/] here.
If you cannot find a crash report, please attach the full launcher log found in [minecraft/launcher_log.txt|https://minecrafthopper.net/help/finding-minecraft-data-folder/].

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

JUE13

Can reproduce the freeze in 1.21-pre 4 with the following command:

/locate structure #minecraft:on_woodland_explorer_maps

The internal server freezes for a solid 15 minutes, but the game does not crash for me.

An easy fix would be to check if structures are enabled in the world before executing the actual command.

[media]


Console log attached.

Viradex

Can confirm. This is a lag issue - chunks don't load, entities freeze, and other things that are affected by TPS do not respond at all.

Saving and quitting the world while in this state makes the game stay on the 'Saving world' screen for much longer than expected. In fact, I had to close (crash) the game using Task Manager because it wasn't responding (Alt+F4 didn't work).

Additionally, MSPT lag messages were spammed to the log:

[Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2527ms or 50 ticks behind

Interestingly, running the command @unknown provided in a Superflat world with no structures does not cause this issue - it instantly gives back an error message, which is what should happen in a normal world:

Could not find a structure of type "#minecraft:on_woodland_explorer_maps" nearby

clamlol

As of 1.21 this sometimes fixes itself after a world reload.

Fireswamped

Is this a commands issue or a /locate issue?

resell_enjoy6

(Unassigned)

Confirmed

Platform

Important

Commands, Performance, Structures

1.20.4, 1.21 Pre-Release 4, 1.21, 24w36a, 1.21.4, 1.21.5

Retrieved