The bug
When a player teleports to the dimension that contains the entity with the same UUID as the player, repeated fatal errors occur.
How to reproduce
/execute in minecraft:overworld run teleport 0 0 0
/execute in minecraft:the_nether run forceload add 0 0
/execute in minecraft:the_nether run summon minecraft:item_frame 0 0 0 {UUID: α, Fixed: true}
(Replace α with the player's UUID)
/execute in minecraft:the_nether run teleport 0 0 0
→
An unexpected error occurred trying to execute that command
(class bed cannot be cast to class aaw (bed and aaw are in unnamed module of loader 'app')
)
Linked issues
Comments


Can confirm in 1.17.1.

This also triggers MC-227537, upon inspecting the logs.

Can confirm in 21w39a.

in 1.21 it's freezing and spamming error logs
Can reproduce the freezing, can't reproduce the crash afterwards - using
/data
can see that the uuid of the player and the item frame match