Villager targeting seems to cause crashes under specific conditions...
Partner Rank: 1
Verification builds: 1.14.60.5_rc8 (Release)
Regression Builds: Not been able to verify.
Summary:
Villager targeting seems to cause crashes under specific conditions...
- Its hard for me to pinpoint why exactly the crashes happen.
[ERROR SYSTEM 21300 11776] Assertion failed: Adding a component is unsafe in this context. Are you calling this from a view that does not use ViewedEntityContext?
Condition is false: mRegistry.canAddComponentTo<Component>(mEntity)
Function: EntityContextBase::getOrAddComponent in f:\darwinwork\853\s\handheld\src\common\entity\entitycontextbase.h @ 101
Impact:
- Makes it impossible to confidently use and place villagers in the world.
Repro Steps:
Download and open World "1" provided by "Greg Walls".
Navigate to 200 140 -230 ( anywhere near the mansion will be fine)
Wait for the crash to happen.
- This world is setup to automatically spawn villagers inside the mansion so it will happen eventually.
Download and open World "2" provided by "Greg Walls".
Navigate to 200 140 -230 ( anywhere near the mansion will be fine)
use "/function z_spawner/z_villagers/spawn_mansion".
- This will spawn villagers in side the mansion in a controlled manner.
/tp 217 125 -248 this location seems to be a general hot spot where crashes seems to happen the fastest.
wait until world crashes, using function multiple times increases crashing speed.
Expected Results: Game crash in 1.14.60.5_rc8 (Release).
Observed Results:
From my observations, villagers are the only entity impacted by this crash.
Villager Intractable blocks are placed in the mansion these seem to effect villager behavior?
Villagers seem the spread out fairly nicely in the mansion looking for intractable blocks.
Villagers don't seem to like to share the same intractable block.
Screenshots/Videos attached: provided to "Greg Walls".