There's another way to do it with illagers: make a patrol (with a leader) and then if you go in survival but not too close they will start looking at you (works with any illager). Then if you hide behind something and go into creative some of them will still be looking at you. When you get too close they will start attacking.
It makes it hard to search when almost every post about crashes says "the game crashed and it sent me to the desktop" when my issue is the opposite.
Homever I don't think this is a duplicate of MC-32606 because this is issue is very different.
This issue happen only since 1.15 and not 1.10. I just tried in 1.14.4 and it doesn't happen.
The message that Arash showed never appears.
There is no crash report.
The game crashes only when I press the windows key to go to desktop.
Doing what is in the "for 1.10+ users" box of the other issue did not work.
There is no crash report. Clicking the "view crash report" button does nothing and its not in the crash report folder. I attached the launcher log.
Its does happen when the leader drops its banner because illagers can only pick up ominous banners during a raid.
You're right, this doesn't happen in raids. This issue also happen with villager mobs like iron golem and the same issue also happen when the entity the illagers are looking at hide behind a block.