The only machine I had running was a zero tick bamboo and sugar cane farm (the new update accidentally broke zero tick water based sugar cane farms.I would post about it but I think someone already did.) That may have caused it. but also sometimes I was just in the Nether where I had no farms running. I had no pets except for a bird that didnt follow me home early on in the realm so I do not think that caused it. It could have to do with Me being so far away but also I don't know.
@GoldenHelmet,
I do not have a world download because I did not own the realm but the seed was 1781551223 and my bed was placed and slept in at 121732, 70, -23536. I would go through a nether portal near my bed and would go through the nether on a path to the end and sometimes when i would die on the way to the second nether portal i would re spawn at the world spawn but most of the times this would happen would be in the end after safely getting to the end though the nether I would loot some endcities, put my loot in an end chest and jump in the void to come home. except... i didnt go home i went to world spawn and the issue is we didnt have an ice boat path in the nether from our realm's home base to my 17k nether blocks away home so i would be stuck or have to spend a long time getting back
@GoldenHelmet
I can add photos if needed but I didn't know how it would be helpful in this scenario
@GoldenHelmet,
I am certain that the bed I last slept in was still there. Since this was a few days prior I do not remember if I exited the game between this bug happening and my last time sleeping but it would make sense as I have a base I set up in the end and nether on our realm and I sleep in my bed every time before I head off, because I live so far from the world spawn and I have no transport system to get back quickly, I spend a lot of time working there so it could be possible that I left the realm in the end/nether and loaded back in the end/nether. Anyway I hope my rambling is helpful
After further testing it seems like this only happens for villagers that are summoned with spawn eggs or the /summon command.
I can confirm that it applies to spawned (using spawn eggs in creative) villagers, I will test naturally generated ones and bred ones ASAP. These were all spawned in 16w20a.
I also had a sand pusher elytra launcher which also broken in the beta 😞