mojira.dev
MC-301455

/locate command used when the world contains no structures would crash the game

When the /locate command is used to locate any structure in a world that doesn’t contain any structures, the game would crash.

To reproduce this issue, just create a new world with the “generate structures” option turned off, so that the created world wouldn’t contain any structures. Then use the /locate command to locate an arbitrary structure in the game, and the issue would be reproduced.

Environment

Minecraft Version: 1.21.8
Minecraft Version ID: 1.21.8
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.5, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 229495408 bytes (218 MiB) / 587202560 bytes (560 MiB) up to 4294967296 bytes (4096 MiB)
CPUs: 18
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) Ultra 5 125H
Identifier: Intel64 Family 6 Model 170 Stepping 4
Microarchitecture: unknown
Frequency (GHz): 3.00
Number of physical packages: 1
Number of physical CPUs: 14
Number of logical CPUs: 18
Graphics card #0 name: Intel(R) Arc(TM) Pro Graphics
Graphics card #0 vendor: Intel Corporation
Graphics card #0 VRAM (MiB): 2048.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 32.0.101.6303
Memory slot #0 capacity (MiB): 16384.00
Memory slot #0 clockSpeed (GHz): 5.60
Memory slot #0 type: DDR5
Memory slot #1 capacity (MiB): 16384.00
Memory slot #1 clockSpeed (GHz): 5.60
Memory slot #1 type: DDR5
Virtual memory max (MiB): 35334.16
Virtual memory used (MiB): 25890.60
Swap memory total (MiB): 3069.06
Swap memory used (MiB): 194.23
Space in storage for jna.tmpdir (MiB): <path not set>
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
Space in storage for io.netty.native.workdir (MiB): <path not set>
Space in storage for java.io.tmpdir (MiB): available: 23056.39, total: 204800.00
Space in storage for workdir (MiB): available: 574163.56, total: 769685.00
JVM Flags: 1 total; -Xmx4G
Server Running: true
Player Count: 1 / 20; [auc['OH__minus'/71, l='ServerLevel[New World]', x=-6.50, y=64.00, z=-2.50]]
Active Data Packs: vanilla
Available Data Packs: minecart_improvements, redstone_experiments, trade_rebalance, vanilla
Enabled Feature Flags: minecraft:vanilla
World Generation: Stable
World Seed: -2999587623462767395
Suppressed Exceptions: ~NONE~
Is Modded: Probably not. Server jar signature and brand is untouched
Type: Dedicated Server (map_server.txt)

Linked issues

Attachments

Comments 2

У меня просто всё зависло в мире (черепахи летают, песок не падает)

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

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

OH__minus

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved