mojira.dev
MC-250321

Flying and aquatic mobs pathfinding in certain blocks cause crash || The game crashed whilst ticking entity Error: java.lang.NullPointerException: Cannot invoke "dnm.a()" because "$$1" is null

The Bug

A crash is occurring with entities are pathfinding.

Code analysis

Code analysis by @unknown can be found in this comment.

Attachments

Comments 53

Can confirm. I was messing with paintings when it happened to me, but the log is saying it's a parrot doing it. This crash also sometimes removes the world from the save list, which seemed to be resolved by deleting the session.lock file.

Thanks I've updated the report to reflect these findings. It seems to be something in the pathfinding for mobs causing the crash

Seems to be caused by mob pathfinding fixes in this snapshot (MC-226184, MC-249245, etc.)

Game hasn't crashed since I removed the parrots in question, so I'd say you're probably right.

Was trying to summon the hidden painting and game crashed. This crash has to be fixed ASAP.

43 more comments

Please, is there any forecast on when this problem will be solved?

Unfortunately I couldn't tp, but with some patience and tiny steps, I could get back into my Netherportal and actually get away from the area... So I can keep playing this world for now. Good luck to everyone, and thx to those who provided workarounds!

Maybe another option could be to quickly set render distance and/or simulation distance to the minimum, then try to walk away in between the crashes.

Same issue for me, and it is the Bee. Old wold, new world, etc. I always use the ability to run commands especially when on snapshots because issues can happen. So loading the world in the last stable snapshot (22w15a here, and last so there is minimal but possible other game breaks) and entering (I show bee but tag the mob of your choice):

/tp @e[type=minecraft:bee] ~ -1000 ~

(several time, as bee's pop in and out of hives) will teleport them out of the world. Save, exit, restart in 22w16 a or b. This doesn't eliminate them all from your world, and travel will bring you back to the problem mob but it is a 'dont need to install stuff' fix for those that don't use world editors.

how do i remove my allay (named roberto) in hardcore because the game crashes before i even can open lan

please explain in steps because sadly enough im not a computer expert

@Philippe5425 please tell me you aren't running a hardcore world on a snapshot version...

anthony cicinelli

(Unassigned)

Confirmed

Very Important

Crash

pathfinding

22w16a, 22w16b

22w17a

Retrieved