mojira.dev
MC-91621

Mobs repetitively despawn and respawn rapidly at high Y coordinates (causing lag)

Hostile mobs rapidly despawn and respawn repetitively when you're about 125 blocks from the ground. This is easiest to see in the End.

Video: 0:52~0:58 https://www.youtube.com/watch?v=UgiTzg2jr_A


Squid spawning causes server to lag.
Steps to reproduce:
Render Distance > 16 chunks
1. Fly high above an ocean around height of 200.
2. Wait at least a minute.
3. Fall down and see squid spawning and despawning rapidly everywhere
At height 200 above a level 46 ocean, the server becomes laggy. The longer you stay above the ocean, the more the squid lag seems to "accumulate". Eventually the lag will dissipate and the squid spawning will go back to normal. An aqua affinity helmet will help you see all the squid spawning/despawning

These error messages start to pop up if you stay at the 200 height for a while(10 minutes or greater). While an indicator of general lag, the server is fine any other time except when at 200 height above ocean.

31.12 06:09:28 [Server] INFO [06:09:28] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2414ms behind, skipping 48 tick(s)
31.12 06:09:09 [Server] INFO [06:09:09] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2180ms behind, skipping 43 tick(s)
31.12 06:09:03 [Server] INFO [06:09:03] [Server thread/INFO]: Saved the world
31.12 06:09:03 [Server] INFO [06:09:03] [Server thread/INFO]: Saving...
31.12 06:09:03 [Server] INFO [06:09:03] [Server thread/INFO]: Saving is already turned on.
31.12 06:09:03 [Multicraft] Auto-saving world...
31.12 06:08:51 [Server] INFO [06:08:51] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2156ms behind, skipping 43 tick(s)
31.12 06:08:36 [Server] INFO [06:08:36] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2383ms behind, skipping 47 tick(s)
31.12 06:08:21 [Server] INFO [06:08:21] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2091ms behind, skipping 41 tick(s)
31.12 06:08:06 [Server] INFO [06:08:06] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2775ms behind, skipping 55 tick(s)
31.12 06:07:49 [Server] INFO [06:07:49] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2298ms behind, skipping 45 tick(s)
31.12 06:07:46 [Server] INFO [06:07:46] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 14709ms behind, skipping 294 tick(s)
31.12 06:07:15 [Server] INFO [06:07:15] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 4657ms behind, skipping 93 tick(s)
31.12 06:07:10 [Server] INFO [06:07:10] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 19226ms behind, skipping 384 tick(s)
31.12 06:06:37 [Server] INFO [06:06:37] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 7385ms behind, skipping 147 tick(s)
31.12 06:06:22 [Server] INFO [06:06:22] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 10029ms behind, skipping 200 tick(s)
31.12 06:05:55 [Server] INFO [06:05:55] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 5317ms behind, skipping 106 tick(s)
31.12 06:05:33 [Server] INFO [06:05:33] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2275ms behind, skipping 45 tick(s)
31.12 06:05:11 [Server] INFO [06:05:11] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2067ms behind, skipping 41 tick(s)
31.12 06:04:49 [Server] INFO [06:04:49] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2003ms behind, skipping 40 tick(s)
31.12 06:04:17 [Server] INFO [06:04:17] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2059ms behind, skipping 41 tick(s)

Related issues

Attachments

Comments

migrated
[media][media][media][media][media]
migrated

Confirmed.

migrated

The endermen despawns and respawns all the time from that distance, which causes this issue.

migrated

This does not only occur in the End. This seems to happen to all hostile mobs. Haven't seen friendly mobs having this behavior though. Please update ticket.

Added a GIF.

migrated

Sorry for nagging but I would like the ticket to be like this (it's more clear):

Summary:

Hostile mobs repetitively despawn and respawn rapidly at high Y coordinates

Description:

Hostile mobs rapidly despawn and respawn repetitively when you're about 125 blocks from the ground. This is easiest to see in the End.

See attachments.

migrated

Affects 1.13-pre1

Irbis

I would change description to "Hostile mobs are spawning over 128 blocs away from player which is enough to instantly despawn them"

migrated

The thing is, hostile mobs aren't the only things that naturally despawn these days, and when it comes to 1.13 oceans in particular, it causes absolutely massive lag. I can't speak for how laggy it is as a server host (my tick rate by myself is completely unaffected in 1.12 when it's just squids constantly spawning/despawning), but oceans never lagged me to such hardcore levels until the new water mobs. Now my ticks get slowed down by about 80% in 1.13 oceans when things are constantly spawning and despawning due to this bug.

Also figures I'd find this report immediately after I create one about this exact problem XD (MC-132406)

Makzevu

Can anyone confirm for 1.13?

Asteraoth

Confirmed for 18w30b

migrated

https://www.youtube.com/watch?v=zuturtGss7A Here you can see how quickly they spawn and despawn again

Asteraoth

Confirmed for 18w31a

migrated

Confirmed for 18w32a

migrated

Attached the profile output

[media]

 from MC-136449

 

migrated

Experiencing the same problem in 1.13.1 with massive lag and issues due to Cod AI.

migrated

This is a big problem for cod in the oceans.

migrated

Future Version - 1.14 should be removed from fix versions, as it's fixed in 1.13.2-pre1.

[Mod]Les3awe

migrated

Confirmed

high, hostile-mobs, rapidly, respawn, spawner

Minecraft 15w44a, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, ..., Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1

Minecraft 1.13.2-pre1

Retrieved