mojira.dev
MC-126244

'/locate', explorer maps, and treasure maps can cause extreme TPS lag, even leading to a complete server freeze if structure generation is turned off

The bug

The server will cause lag when we try to locate any of the structures away. With structure generation turned off, this can completely freeze the server.
Note that /locatebiome (introduced in 20w06a) has a timeout.

Linked issues

MC-126375 /Locate Immediatley Drops Down My Fps Resolved MC-126711 When using /locate says 'Could not Find That Structure Near by" and game lags some much I searched for Igloo Resolved MC-128452 the game stop calculate entities when I type /locate in the singleplayer chat Resolved MC-128913 [Crash] Overloaded Locate Command Resolved MC-130671 /locate Monument freezes game and prevents reloading Resolved

Attachments

Comments 66

I'm pretty sure that is normal. How can the game know where the structures are placed without checking the seed?

@Dungeneer In earlier versions, like 1.12.2 the structures are located based on the seed without loading/creating chunks.

I believe this issue may be linked to the bug in which structures that are too far away fail to be located, which didn't happen in 1.12.2. Not sure if I should make a new report for that issue (haven't found a match through searching), or if I should forego that for now as a fix to the current issue may also fix that issue as well.

CreeperMagnet_

As @unknown said, this is caused by structures not being able to be located.

This also affects explorer maps, and is still present in 18w10a.

Someone might want to update the description and title, or create an entirely new issue.

I tested this in the 18w10d Vanilla server and a few locates is will lag the server for 7-8 seconds.

56 more comments

I have found that this is a problem in 1.17.1, but it happens for me even when structures are in the world. Attempting to close the game by saving and quitting cause it to save the world for an extended period of time, and pressing alt+f4 causes the screen to go black without it actually closing

edit: And it only seems to happen when locating mansions

@@unknown I think you should create a new ticket for this, and mention this new ticket here in a comment. If you can attach a demonstration video that would be great!

@unknown Different problem; it only happens with OptiFine when trading with a cartographer, not by using a /locate command. See MC-228721.

New ticket MC-238830 , but just for the server lag caused by opening a buried treasure map in a chest in a stronghold or /locate buried_treasure somehow having to take an unreasonably long time to locate the nearest buried treasure, not the mansion issue that just seems to be an optifine bug.

 

The odd thing is this seems to have been fixed in the 1.16 snapshots but by 1.16.5 it's still just as big of a bug... then by 1.17 and 1.17.1 it seems to be fully fixed again. Then starting at 21w37a it has resurfaced yet again, which indicates that it isn't a really high priority issue that is easily broken from update to update.

 

Edit: This turns out to already have been reported as MC-238830 but not listed in the comments here. Probably will just be merged with that one.

For me i can confirm this happens in 1.19 in which it soft locks my game not letting me leave. Even after restarting the launcher and doing End Task in task manager because I couldn't close it. I still would not be able to do anything normally like i would fly through the floor and I also got straight up put on a Lead by a llama. It only worked normally on the 3rd reboot. Even though its a world with multiple biomes when I do /locate biome [?] it will do the same thing. I have a video that shows the bugs but it is "Too big of a file size". I might crop the video except I have no idea how to do that. I don't know if I should open this for a new ticket? But location maps also crash your game pretty much infinitely cuz when you restart the game your still holding it. I might add another comment later with more detail after I look into this more!

Muhammet Kurt

boq

Confirmed

Normal

Commands, Performance, Structures, Trading

/locate

Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, ..., 20w10a, 20w11a, 20w13a, 20w13b, 20w15a

Minecraft 1.13-pre6, 20w17a

Retrieved