mojira.dev
MC-138871

Entities duplicate and disappear

If I am playing on my server there are sometimes entities missing or cloned, these clones cannot sometimes not be selected.

This happened to skeleton horses, villagers, armorstand, and witherskeletons, so probably all entities and I think it has something to do with the chunks the entities are in being unloaded

Linked issues

Attachments

Comments 53

Please attach the crash report ([minecraft|http://hopper.minecraft.net/help/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt), otherwise we can not diagnose this issue.
For technical support please use the Mojang Support Center.

-- I am a bot. This action was performed automagically!

What server software are you running?

-- System Details ---- System Details --Details: Minecraft Version: 18w44a Operating System: Linux (amd64) version 4.17.4-1.el7.elrepo.x86_64 Java Version: 1.8.0_171, Oracle Corporation Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 902773656 bytes (860 MB) / 2822766592 bytes (2692 MB) up to 2863661056 bytes (2731 MB) JVM Flags: 2 total; -Xmx3072M -Xms128M Player Count: 9 / 2018; [uc['DrexHD'/5102, l='world', x=25.04, y=16.00, z=27.42], uc['Hexo_mc'/7615, l='world', x=-80817.04, y=58.50, z=-21692.29], uc['_N0VA__'/10680, l='world', x=63.50, y=66.00, z=37.50], uc['wolfie_fan'/14912, l='world', x=-21259.84, y=81.00, z=-41994.52], uc['SnakeHunt3r'/15526, l='world', x=-80818.68, y=60.00, z=-21691.59], uc['davidtaco999'/15528, l='world', x=41046.39, y=58.00, z=-82909.69], uc['CaptainFireBall'/15886, l='world', x=83377.97, y=72.00, z=-26505.08], uc['BlueMangoBango'/17282, l='world', x=-80132.82, y=38.00, z=3199.92], uc['ReAnimatedEnder9'/16652, l='world', x=83377.50, y=72.10, z=-26503.50]] Data Packs: vanilla, file/kilocraft (incompatible) Is Modded: Unknown (can't tell) Type: Dedicated Server (map_server.txt)
Uriel Salischiker

That shows a invalid datapack, maybe that datapack was providing the entities you are missing?

Confirmed for 18w45a.

https://www.youtube.com/watch?v=hFENjs5Twg0&t=595

The most important part of the video is from 9:55 to 10:32, but I ran other tests to identify the bug.

43 more comments

I recently learned that chunk loading/unloading is done in the idle time of the tick. As this issue probably happens on loading or unloading, it is likely that server lag has an influence on it.
Also @unknown writes about server lag and in their

[media]

there are quite a few "Can't keep up! Is the server overloaded?" messages.
@unknown If you got time for it, you could try to recreate it on your system by artificially causing server lag. A good way to do this is to set the random tick speed really high (e.g. /gamerule randomTickSpeed 10000000; good value needs to be found by experiment) and place at least one block that receives random ticks around the player (I usually use vines).
If it was possible to recreate it with this method, that would indicate that it's not so much the system that's important, but rather how much load is on it.
Hope this helps 🙂

 

I just noticed MC-108469 is not in the related issues, while it's an understood issue about disappearing entities. I'm not sure how closely the relation is, but it should definetly be in there.

Hi @@unknown,

It's a fresh new world, so it's not big (18MB), but max. 10MB is attachable here.
So here you can download:
https://www.dropbox.com/s/thpbgc6dcts5gc6/Test_Experimental.zip?dl=0
I hope it works, because I already deleted it before. Just I restored from Recycle bin. 🙂

@@unknown: I have a simple business laptop
Dell Latitude E5470
Processor: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 CPUs), ~2.5GHz
Memory: 8192MB RAM
Video: Intel(R) HD Graphics 520

It's not a gamer machine, I know. 🙂

I was unable to reproduce by creating artificial lag like @unknown suggested. What happens if I set the random tick speed to 10,000 is the lag is such that the chunks are not loading (or being sent) but notice the entities are present (in the "void"):

[media]


If I increase the speed, eventually the server will crash upon exceeding maximum tick speed.
I didn't test lower values, it was just mainly rhetoric. If someone wants to tackle it, go ahead.

Yesterday evening I tested with the newest snapshot. I set view-distance to 10, so I tested it with deafult settings.

It was a bit more difficult to reproduce the bug. But it still exists!

The scenario and the seed was the same: fresh new multiplayer server world with the seed above. I had to wander around 10 minutes with many disconnects/reconnects, but finally 2 wolves were duplicated.

Latest log attached:

[media]

 

Worlds with duplicated entities loaded in 1.14 Pre-Release 5 will have the entities deleted as long as the chunks that they're in are loaded one last time. The "Keeping entity" spam will appear in chat, but no more afterwards. Example

DrexHD

michael

Community Consensus

Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w50a, ..., Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b

Retrieved