mojira.dev
MC-150170

Animals, Villagers, Item Frames, Armor Stands, etc are disappearing

The bug

Sometimes, entities can disappear upon reloading the world. Players have reported that this is happening to animals, villagers, item frames, armor stands, and other entities.

KaptainWutax has investigated this a bunch, and he believes he understands the cause. Quoting him:

Tons of people are reporting to me that their villagers are disappearing in their iron farms. The error is ALWAYS a position desync, of this format:

Wrong location! (-65, 4) should be (-54, 13), avk['Villager'/172716, l='world', x=-1037.30, y=89.00, z=70.30]

Some are related to sleeping on chunk borders (reproduceable consistently), and some seem completely random, in the center of chunks.

Here's a link to a video of the reproducible occurrence: https://streamable.com/0ivkh

– @unknown in this comment

The easiest way to reproduce this bug is to push a villager slightly out if its bed while it is sleeping, so that its hitbox now is across a chunk border (as seen in the video linked above). However, this issue can also occur in other circumstances.

Original description

What I expected to happen was...:
Things should NOT disappear

What actually happened was...:
First, all of my pigs disappeared. After a raid, items in my house disappeared. Now villagers are disappearing.

Steps to Reproduce:
1. Whenever I leave my village and return, new things have disappeared.
2. ...
3. ...

Linked issues

MC-148952 Villagers vanishing at night Resolved MC-150112 Despawning of villagers Resolved MC-150247 Villagers disappearing/despawning. Resolved MC-150322 Entities disappearing on realms Resolved MC-150443 Illagers, Villagers, and Iron Golems disappearance Resolved

Attachments

Comments 79

At first, I thought that it was the raid that removed things from my house. but now new items are disappearing and villagers are disappearing.

We have stopped playing on the REALM because things are disappearing. Yesterday, my village lost over 15 villagers.

I have restored the REALM to Tuesday - April 23, before the 1.1.4 update and I have closed the REALM until this issue is resolved. We we cannot get it resolved, then I will cancel my REALM service.

On Realms all of my villagers in my iron farm just disappeared within about an hour. Iron farms need beds so I was curious whether this is related to the other bug that villagers can access beds without a valid path (i.e. through walls) or if the villagers were getting out of bed in the morning and clipping through walls. Please fix SOON as this breaks so much of the game.

Had this happen on a vanilla 1.14 server. 15+ villagers (sitting in minecarts) disappeared in my trading outpost after the server crashed twice. Thank god I had a backup...

The server log is full of these warnings:
"Keeping entity minecraft:llama_spit that already exists with UUID 9ce28ce2-a2eb-462b-9f68-61095cf2600e"

after eventually finishing it off with:
"Server Watchdog/FATAL A single server tick took 60.00 seconds (should be max 0.05)"
and crashing.

I am attaching the crash reports.

I am thinking going to the spawn chunk triggered the crash, because I was able to replicate the crash on singleplayer by going to the spawn chunk using the nether portal.

69 more comments

This issue persists in 1.14.4 with villagers disappearing. I see the reference to MC-153904, but it would seem that is a duplicate of this report, which has been discussing villagers, so I’m posting this here.

No, it is not a duplicate of this report. MC-153904 is about villagers disappearing, this ticket is about all kinds of entities disappearing. This issue here has been fixed, only villagers now seem to disappear sometimes.

Remco Scheffer

I have confirmed this issue, or a very similar one still exists in 1.14.4.
I believe it happens to Passengers. When an entity is riding another entity that can walk around.
In this case when these entities stand on chunk borders, are unloaded by the player moving too far away, and then loaded again when the player approaches.

My steps to reproduce this were,
1 Creating a 1.14.4 single player world.
2 Moving out of the spawn chunks to chunks that will unload.
3 using the following command while standing right on a chunk border: 
   'summon chicken ~0 ~0 ~0 {Passengers:[{id:armor_stand}]}'
   in order to summon 5 chickens with armor stands on top of them.

4 teleporting far away before they moved around to let the chunks unload.
5 teleporting to a closeby location and then walking back to the place where i summoned the chickens.

I tested this 4 times and in each case there were several missing armorstands afterwards.
For every armor stand that disappeared I got the following kind of messages in my log:

[18:54:09] [Server thread/WARN]: Wrong location! (64, 21) should be (63, 21), atl['Armour Stand'/36450, l='bug fixing', x=1024.09, y=70.45, z=347.43]
[18:54:09] [Server thread/WARN]: Wrong location! (63, 21) should be (64, 21), atl['Armour Stand'/36455, l='bug fixing', x=1023.91, y=70.45, z=346.25]
[18:54:09] [Server thread/WARN]: Wrong location! (63, 21) should be (64, 21), atl['Armour Stand'/36459, l='bug fixing', x=1023.94, y=70.45, z=341.31]
[18:54:09] [Client thread/WARN]: Received passengers for unknown entity
[18:54:09] [Client thread/WARN]: Received passengers for unknown entity
[18:54:09] [Client thread/WARN]: Received passengers for unknown entity
[18:54:09] [Client thread/WARN]: Received passengers for unknown entity
[18:54:09] [Client thread/WARN]: Received passengers for unknown entity
[18:54:10] [Server thread/WARN]: Fetching packet for removed entity atl['Armour Stand'/36459, l='bug fixing', x=1023.94, y=70.45, z=341.31]
[18:54:10] [Server thread/WARN]: Fetching packet for removed entity atl['Armour Stand'/36455, l='bug fixing', x=1023.91, y=70.45, z=346.25]
[18:54:10] [Client thread/WARN]: Received passengers for unknown entity
[18:54:10] [Server thread/WARN]: Fetching packet for removed entity atl['Armour Stand'/36450, l='bug fixing', x=1024.09, y=70.45, z=347.43]

 

I attempted this with a few other entities but so far I could only make it happen with armorstands, interestingly, this issue didn't occur when the chicken had NoAI:1, so perhaps it has something to do with the entity moving around?

 

Remco Schaefer: the issue you describe is tracked at MC-136760.

Brad Lampl

coschevi

Confirmed

Minecraft 1.14, Minecraft 1.14.1

Minecraft 1.14.2 Pre-Release 1

Retrieved