mojira.dev
MC-272622

Ender pearls thrown into end gateways occasionally fail to teleport the player or, when they succeed, occasionally cause very heavy memory usage

In 24w41b, throwing an ender pearl into an end gateway very frequently failed to work correctly. Sometimes it would work fine, sometimes the pearl would be teleported instead of the player, and sometimes the pearl would simply fly through the gateway as if it were air. I opted not to report this until 1.21-pre1 had dropped, and sure enough, things have... mostly, generally, improved in this pre-release. Throwing a pearl into an end gateway now almost always succeeds but, very occasionally, still fails; I haven't been able to repro enough to be able to tell in what way it's failing. A bit more commonly, and perhaps more worryingly, when the teleport succeeds, it will sometimes result in persistently very heavy memory usage which can (in singleplayer at least) bring some aspects of gameplay to a crawl. This is seemingly fixed upon pausing the game.

So all told, I would say the gateway code needs a thorough review and a bit of patching before 1.21 ships, even if the present issues aren't quite world-breaking.

I was unable to capture a recording of the gateway failing to work due to the rarity of that issue, but I did get a couple that show the memory issue. Note that the severity of this bug is highly variable; in the first video my allocation rate peaked at 920 MB/s, but in another instance it was over 1600, and in yet another I neglected to open F3 but chunks were loading at a snail's pace. In the second video the rate shown is quite low but my memory is "flushing" very frequently, leading me to doubt the displayed number, while chunk loading is quite slow at the main island; this has happened on more than one occasion. Also, it should be noted that my hardware is unusually capable at handling tasks requiring large, sustained memory bandwidth; it's possible that a more typical system will fare significantly worse than mine.

[media][media]

To reproduce

In creative mode, open F3 and throw an ender pearl into a naturally generated end gateway. Continue doing this until you notice the bug;(s) you may have to go at it for a minute or two.

Related issues

Attachments

Comments

migrated
[media][media][media]
Ceresjanin123

I can confirm it does happen. Sometimes the ender pearl will just go through the gateway.

[media]

Seems to happen most consistently by using the second gateway created by MC-272583

Though I haven't been able to record it I can say that I have also notice huge lagspikes after some teleports.

migrated

Can confirm memory allocation peaking at over 1600mb/s after travelling through the gateway using an ender pearl, although it did not occur 100% of the time. Likewise, travelling through the gateway using the trapdoor method also results in memory allocation spikes on occasion, peaking at over 1800mb/s. Can also confirm ender pearl occasionally failing to teleport the player through the portal, on one occasion failing twice in a row using the same angle to throw. Although the latter issue is not extremely common, it does occur at a noticeable rate. Tested in 1.21 Pre-Release 2.

clamlol

Good to know that the memory issue isn't ender pearl-specific. I probably should have made 2 tickets for this but since it seems like they're both being dealt with let's continue to track both issues here; hopefully the title isn't too misleading.

Fantastime

This bug you describe in this report is a two-parter.
The first part (Ender pearls thrown into end gateways occasionally fail to teleport the player) is a duplicate of MC-196556.
The second (or, when they succeed, occasionally cause very heavy memory usage) cannot be reproduced. If you still encounter this, please open a new ticket with detailed steps of reproductions, and we'll investigate further 🙂 

clamlol

Ok, I made MC-272954.

clamlol

Tommy Wallberg

Community Consensus

Platform

Important

Chunk loading, Projectiles

1.21 Pre-Release 1, 1.21 Pre-Release 2

Retrieved