1. Write a concise summary that clearly states the problem.
Villagers and Minecarts (possibly other entities) are disappearing after Logging Out.
This problem has occurred since the 1.18.10 update, has happened with both newly created (since the update) and previous to update entities. It seems to not ALWAYS occur with all entities, but randomly villagers / minecarts will disappear.
We are playing on a Microsoft Realm, Minecraft Bedrock Edition, Survival mode, from the US and UK.
this is NOT a Duplicate of MCPE-144208, as this issue, as confirmed by [MCPE Mod] AULDRICK:
"This is the same set of symptoms as MCPE-144208, but it's not the same issue because it has a different cause."
2 A. Precise steps to reproduce the issue.
EXACT/PRECISE conditions are unknown.
2a-1. Do not attempt to reproduce using your development environment. X has already indicated you can not replicate in that environment
2a-2. In a Production Environment (Mcdonalds wifi, external (non-Mojang) internet access) create (preferrabley with an XBox) a Realm for Minecraft, in Survival Mode, using any seed, or contact me for the specific Seed we use
2a-3. if using our seed, proceed to the village at X, Z (or nearest village if random seed).
2a-4. Build a library,
2a-4a making the interior spawn-proof for hostile mobs,
2a-4b ensure that Library is controlled access (double gate system, or scaffolding access only)
2a-5. begin to populate the library with librarians
2a-5a. create segmented areas with stone fencing, with 2 beds and 2 podiums per cubicle, but do this 1 librarian at a time
2a-5b. work with each librarian (one at a time) to secure a different enchanted book at level one (put up podium, cut it down if not desired book), ensuring that Mending and Unbreaking are the first 2 books/librarians created.
2a-5c Continue until 24 librarians are created, (can be 1 floor with 24 or 2 floors with 12 each floor as we created)
2a-6. Concurently, build 2 closed loop minecart systems
2a.6a. each loop should contain a minimum of 40 rails, with at least 8 powered rails (using redstone blocks or torches) per loop
2a.6b. each loop should have a hopper collection system as a part of it
2a.6c. each loop should run with 1 hopper minecart
2a-7. Save and Quit the realm upon completion, or even during the creation process if necessary (it can take some time to get the right books)
2a-8. Close out/power off the Xbox
2a-9. return 8 - 12 hours later, powering on the Xbox, entering Minecraft, and joining the Realm created (again from an external internet access)
2a-10. Verify that all 24 Librarians are there.
2a-10a If they are, then repeat steps 2a-6 thru 2a-9, preferably with a minimum of 1-2 hours of elapsed time between joining and leaving the realm.
2a-10b If there are any missing, you have recreated the issue.
2 B. After listing the steps, clearly state what happens, and what you believe should happen.
2a-10a is the desired result - all librarian villagers remain every time the realm is entered.
3. Include the exact text of any messages
No error messages received
Related issues
is duplicated by
Attachments
Comments


If the problem is reproducible, then we don't need to build the world, we just need a copy of yours. It has to be a copy in which none of the mobs or entities have disappeared yet. You should be able to get one from the Realms backup that was taken before the disappearance.
Next, you need to open the world and do whatever you do that makes mobs and entities disappear. If the problem only appears randomly, you may need to keep trying or try several times.
Once you've reproduced the problem, you need to reload the backup world and verify that you can make it happen again. If some specific actions you take always seem to trigger it, note those down for the "steps to reproduce".
When you finally have a world in which you can reproduce the problem at will, attach it, along with a copy of the world after the mobs/entities disappeared. Then replace your description above with your steps to reproduce (even if that's just "mill around until it happens) and other notes, using the Example Template in the guidelines.
I'm sorry, I know this puts a burden on you to do the detective work, but as I've said many times, Mojang can't fix a problem if they can't make it happen in the first place, and the bug tracker staff haven't been able to reproduce it.

Roger that, I will see if I can create a test realm to reproduce the problem, and save backups to provide...but it does seem to be random when and how it happens.
as to the "need to open the world and do whatever you do that makes mobs and entities disappear. If the problem only appears randomly, you may need to keep trying or try several times"
This is an issue. the "what we do" is unknown.
As far as we can see (several people on this Realm), and from what i've read of other experiences in the other comments, the "what we do"........ is simply Logging out.
They are there when we leave the realm... but they are not there when we come back. No disappearances have happened (to us) 'during' a period of time when we were actively playing on the realm....or while we were logged on.
As to the downloads, I'd downloaded the latest backup last night. I can try to go back and pull the download from after the 1.18.10 update was updated to the realm, but i'd have to hone in on which night it was that @Badrabbit_1971 had restocked our Librarian Villagers. I think the test realm thing would probably work better for producing world backup download files.

@auldrick , Could disappearing mobs be an autosave and realms backup process issue? (Sometimes my game crashed, too, while exiting the world. Idk if this happens to anyone here regarding this issue).

This is an issue. the "what we do" is unknown.
As far as we can see (several people on this Realm), and from what i've read of other experiences in the other comments, the "what we do"........ is simply Logging out.
If logging out is all it takes, then your Steps to Reproduce doesn't have to be anything more than
Open the world.
Log out.
It doesn't matter that you can't reproduce the problem every time, just that you can reproduce it at least once on a specific world save. The thing is, we haven't been able to reproduce it. There's no way to know whether that's because something in your world is a necessary precondition that none of the test worlds we've made has, so it's never going to happen in our worlds. But with a copy of your world, we'll know it's possible to make it happen. That eliminates a brick wall we might be running into.

@unknown: We're currently trying to gather information on several of these mob disappearance problems. At this point, we don't even know if they have a common cause, but trying to use one ticket (MCPE-144208) wasn't working out so we're now trying to divide them up into separate tickets. But we really don't know what the separating criteria should be, so we're basically guessing: One for Realms, one for chunk borders, and one for worlds that are left idle for a long time or have network disconnections. For this one, I doubt autosave is an issue because Married In Minecraft is saying (I think) that his group only have it happen when the world is explicitly saved & closed.
If your world has a crashing problem, Mojang should be getting crash reports automatically every time it happens. That's kind of an ideal situation, because they have full information about everything that happened. They automatically generate bug reports internally from crash reports, and most of the time those get fixed without Mojira being involved at all.

@unknown: I assume that uploaded world is the "before" copy. I can get started on trying to reproduce the problem as soon as you tell us what to expect upon opening it. (Do mobs disappear in front of your eyes? Do you need to go somewhere and come back? Might I need to try several times? How long should I wait for it to happen before I give up and try again?)

This is happening non stop on my realms - the last 3 times I have logged in I only have 2 adult villagers and the rest are gone. They are named and traded with every time. Same with a golem. I am now on my 9th time making and naming a golem only for it to be gone when I log in. I am paying money for this to not be fixed.

Auldrick, sorry for doing this piecemeal..., but yes, you're right. that first file
Disappearingtest-baseline-2100-16FEB.zip was a before view.
Tonight we were able to get at least 3 librarians on the Realm, with good Books. One is a Efficiency 5, one is Silk touch and Mending, and one is a Sharpness 5.
There are signs in front of their cubicles showing what they have, and that they got that on 17 FEB.
Because I dont know if there is a difference in the backup made 20 minutes before I logged off, and a download made after I logged off, i'm providing both of those files as well:
2314-17FEB-Librarians.zip was made from a Backup dated 23:14:23 on 17 FEB
2350-17FEB-Download-Librians.zip was made from the "download world" process at 23:50
I've logged off for the night, and we'll see who's there when I log back in. If anyone is missing, i will do a save and download that file and provide it.
As to what to expect.
We have not had villagers disappear in front of us, or even while we were logged on. We do no expect anything weird to happen while it is open/you are on.
If the bug is evident, it will be in that there are not 3 librarians in the library, in the town in the vicinity of -240, 384
The standard way this bug has presented itself, is
operations as usual when logged on and playing, you put time into making librarians/minecarts
you log off the realm
upon returning and logging back in to the Realm (usually after several hours)
sometimes 'some' villagers/minecarts are missing
sometimes none are missing
When we have experienced it since the update, it has been almost every day.

I've downloaded all three of your attached worlds to my PC and inspected them as local worlds. I think we may have had a miscommunication somewhere.
Your "baseline" world, although it's only from a day earlier, is clearly from too long before the 2314 backup, since you haven't even begun to build the earthen wall or cubicles for the librarians yet. What I was hoping for was a backup from just before several librarians disappeared, that is, one where the full number of them are present. I see the three librarians you're talking about in the 2314 world, in their cubicles with signs, and also a baby they made because there's an extra bed in one cubicle. There are four other cubicles, one of which contains a black sheep; are those where you were keeping librarians that disappeared? If so, then I need a copy of the backup when they were still there. I'm trying to reproduce your experience of the disappearing librarians. I can't do that from the baseline world, where they don't even exist yet, and I can't do it from the 2314 world, where they've already disappeared.
Nevertheless, I tried to make the best of it by uploading the 2314 world to my own Realm, hoping that maybe more librarians (or even other villagers) might disappear. To encourage the disappearance, I spawned an additional 20 cows in the general public area of the village (that is, not within the cow pen) in case the issue might be related to the general mob cap. I then repeatedly joined the Realm about 6 times. As far as I can see, no mobs have disappeared.
I waited overnight and tried again. Still no disappearances. Quit and joined again a few times, but no luck. I will continue trying sporadically throughout the day.
If possible, could you please attach a backup from before 2314 where you already had librarians (or other mobs) that disappeared later? That's what I really need to hopefully reproduce the problem.

Auldrick, the miscommunication may be on my end. This is not the realm we previously experienced it in, because we have lost track of who was there when on what day.
These files are from a NEW TEST REALM we started just to try to reproduce this bug.
As soon as we get a librarian that disappears, we will pull that download and add it.
I did log on a little while ago, and all of the librarians were still present. made a couple more, and locked them in with good books, and logged out of the realm. we'll see when we get back.
As to the realm that we experienced this on first (both before and after 1.18.10), I can attempt to provide you with backups from that world, however I doubt that i would be able to direct you to see
Librarian X was there in backup 1, and Librarian X was missing in Backup 2...which is why we're attempting to do this test realm.

Ok, very good. I'll be more patient.

Idk if this helps but for me: Realms never made a backup of just before my villagers disappeared. It happened twice now. But the second time was cured zombie villagers. All three are gone but I have no back up of them when I found them (or after when I had them) trapped them and then cured them. (I did this all in one session.) I just have a backup of before I went out and found any. It's like, their disappearamce is linked to "false" sessions of game play that didn't even backup. Regardless if it's realms or not. I can do what Married is trying to do (since I don't play on it right now bc of the bug) and see if I can't get it to happen again but it's so crazily unpredictable. At least since we have no idea what makes it happen yet.

@unknown: I understand that you have no such backup because you collected and cured the zombie villagers in an earlier part of the same session they disappeared in. That isn't surprising and is norma. But as in Married's case, sometimes a backup is available that was known to be a precursor of the disappearance, and that's simply my best shot at reproducing this problem, so that's what I'm asking for.
If you want to get in on being part of this effort, I'd be grateful for your help. Repeating the instructions I gave earlier, what I need is a copy of the backup prior to the session where mobs disappeared and a list of any significant tasks you did in that session, such as journeying away from the area where the mobs were, plus any additional notes of anything that struck you as unexpected. If available, it would also be helpful to have a copy of the first backup after the disappearance, and to know when and where any other players came and went during the session and where they were.

@unknown: Your comment was automatically restricted to staff (and to you as the report creator) because you included an email address. No one else can see your private information. However, we never ask for personal information and it would be better if you don't include it. If we decide that working more interactively with you is necessary, we would do that via the Mojira Discord or subreddit. As for accessing your Realm, we would have to have an invite just like anybody else. That's also true for Mojang employees, by the way.
Yes, it's quite possible that mobs spawned under 1.18.2 are broken in a way that could allow them to disappear under 1.18.10, but mobs newly spawned (or made persistent) in 1.18.10 would be immune. That being the case, we should suspend putting a lot more effort into this until we have the proof that new mobs can still disappear. Unfortunately, this implies that older mobs might continue disappearing as you return to the chunks they're located in. I don't think that can be fixed.
So what we should do at this point is watch for a mob that was spawned in the 1.18.10 release and that subsequently disappears. If that happens, we can go back to the approach we've been pursuing. Otherwise, we could be beating a dead horse now.
You should also know that Mojang is still working on a fix for MCPE-21416, which is a very old disappearing mob bug report. I think they're getting pretty close to implementing it in the Beta, so the following release might fix this problem as well.

OK...slight problem....The files are too big to upload.
I am going to try to put them on Google drive, and the link to download is at https://drive.google.com/drive/folders/1zPADCPWKXK1IN-FRdT0SdGgx4BnLnCiO?usp=sharing

So in the files I just mentioned, any villagers created on either 10, 11, or 12 FEB, were created after the update was applied, however the REALM itself is what i was referring to. The TEST REALM was created after the .10 update, but the Mandallia SMP was created prior to the .10 update.

This is happening non stop on my realms - the last 3 times I have logged in I only have 2 adult villagers and the rest are gone. They are named and traded with every time. Same with a golem. I am now on my 9th time making and naming a golem only for it to be gone when I log in. I am paying money for this to not be fixed.

Oops, my mistake. No, I don't think what release the Realm was created under is likely to make any difference. To make a difference that still affected the world after an update, it would have to store something in the world save that influences mob despawning, and I don't think there's any such information in the world save. On top of that, the most important determinant of whether a mob can despawn is its Persistent property, which is stored as part of the mob's data, so for the Realm version to be at fault you'd still need to explain why it only affects some identical mobs and not all of them.
I'll be studying your latest comments and world saves when I have some time.

Married in Minecraft: please open up the world save files on your google drive to public access so that we can download them.

HOLY COW! Sorry about that, and for not getting back to this until today. Try it now, I think i've fixed it!

Auldrick,
I was reading Sara's comments on
and the discussion about Chunk Borders. I decided to go check the Library in Mandallia to see if any of the cubicles crossed chunk borders.
My wife just said that one of the librarians had disappeared from Cubicle 1 when she logged on around 11:00 PM EST tonight, but he was there earlier tonight (downloading he backups now)
That librarians traversable blocks are 212-216 X, and 640-641 Z.
640 is in one chunk, and 641 is in another chunk.
Cubicle's 2 and 3 never had Librarians disappear, but both of those cubicles are completely in one chunk
On the right side (as you come in the front door) the X coordinates are from 220-225.
X224 is in one chunk, and X 225 is in a new chunk, so all of the cubicles on that side (4, 5, and 6) have an X chunk border in them....and all of the librarians on that side on the 1st floor disappeared!
Will try to upload these backups as soon as they download to the Google Drive as before.

Close, but not quite. 640 and 641 are in the same chunk, as are 224 and 225. Every coordinate that is a multiple of 16 is on the west (X axis) or north (Z axis) edge of a chunk, and the chunk extends eastward/southward from there. BUT: If your cubicles are surrounded by a partial block such as a fence, it's possible a villager could move into that block. For example, if there is a fence at Z=639, I think a villager can get as close as 639.92, and in that case it's crossed into a different chunk.

OK, that makes sense...Files are uploaded to that google drive location.
Mandallia-23FEB22-2243.7z Cubicle 1 should have 2 librarians. @Badrabbit's xbox closed out due to inactivity
Mandallia-23FEB22-2310.7z - she logged back in around 11pm, and when she went back in, cubicle 1 only had 1 villager
Mandallia-24FEB22-0021 - i just included this download because it was the latest/most recent

Have just uploaded the fila Mandallia-26FEB.7z to that google drive location.
In it, you should see that both Librarians in cubicle 1 are missing now.

Life has gotten in the way, and I've been out of the net for about 2 weeks, but we're back now. I'm told by others on the Realm, that while i was out there have been several instances of Villagers (named farmers and librarians) dissappearing, and sheep dissappearing, however have no files to show this, as...i wasnt here....

I have also experienced this bug playing in Realms. After the 1.18.1 release I came back to my base and found that all entities had disappeared from certain chunks. I had about 7-8 nametagged ravagers as well as a couple of llamas and horses confined in a one-chunk pen where they could not cross chunk borders. They were all gone from the chunk, just like experienced in MCPE-144208. I am playing on an iPad Pro. Let me know if there are any more details I can provide that would be helpful!

What we really would like to know now is whether any mobs that loaded correctly at least once since the 1.18.30 update have subsequently disappeared/despawned. The update released April 19. Some Realms may not have updated until a few days later.

@GoldenHelmet, just to make sure I understand the question, are you asking about
a mob that existed prior to the 1.18.30 update,
which was still there after the update,
and subsequently is still there/has not disappeared
or
a mob that was created after the 1.18.30 update
which has not disappeared

Both
a mob that was there before and after the update, and
a mob that was created after the update—
have any of these disappeared?
This is just to exclude any that may have failed to save before the update but were not noticed as missing until after. Those would be instances of the bug happening before the update, which we already know was happening then.

@GoldenHelmet,
** We recently saved a new town in our Realm, and built a Dwarf Library under a mountain at lke level 28. We started on this a couple of weeks ago, and after checking today, we have lost NO librarians. The library goes across chunks, with dimensions of 772, 31699, to 785, 31699 to 785, 31724 to 772, 31724
My wife started some minecarts running back in another town about 31000 blocks away, so we'll see if any of them dissappear or not, but so far so good. Looks like the ThanosBug may be fixed.

Happened today on my 2 player Bedrock realm I'm version 1.19 main release. It all entities, including the ones in my mob spawners. I actually made a backup specially for this release to test.
You login it works just fine and all are present. Once all users log out they get Thanos snapped.
This issue ended with the hotfix and re-emerged after full release.

We will check again as soon as we get a controlled area where we are (way north now, exploring for 1.19)

Bethany Peterson: Does this happen every time you load the backup and players log out and log back in? could you provide us with a copy of the world for investigation?

I assume this is not the entities can be lost on a chunk border bug that's still present on bedrock?