Crash whilst ticking entity (Frog): Cannot invoke "dpo.n()" because "$$2" is null
Frogs below the world, as well as those riding certain other entities, can cause the game to crash (with exit code 255) when attempting to target another entity. The vehicle-related version seems to be most easily reproducible with Vexes or Bats (as the vehicle), though it likely affects other entities as well, as I have also encountered it with a Giant.
According to comment-1169012, this can also happen when applying the Slow Falling effect to the Frogs and Slimes and having them fall together into the void.
This may be caused by the fix for either MC-249230 or MC-250238, as the crash only started occurring in 1.19 Pre-release 3 and these are seemingly the only changes made that would affect Frog AI.
In the crash report, the entity being ticked is always the frog's vehicle if it has one, otherwise it is the Frog itself. In the latter case, the Frog's reported location will seemingly always be below the minimum Y for its current dimension.
Steps to Reproduce (Survival):
Method A (Modified from comment-1169012):
- Go to a place with open access to the void. (e.g. The End)
- Bring a Frog and some Slimes or Magma Cubes near a gap or cliff leading to the void. (Name Tags are recommended to prevent despawning.)
- Optional (but helpful): Splash them with Slow Falling.
- Let them fall.
- If this did not work, try again.
Method B (More consistent):
(World download: Survival Method.zip
)
- Build something like the following along the bottom of The End (bringing in a Frog and name-tagged Slime from the Overworld): Survival Method.png

(Notes: The Trapdoor underneath the Slime-holding Boat is at Y = 0, and the Fence with the Lead is at Y = 4. Positions do not need to be replicated exactly, though the Frog needs to be able to drop below Y = 0 while still in range to see the Slime. The Boat and the usage of a Name Tag are both technically optional, but very much recommended in order to keep the Slime in place.) - Drop the Frog off its platform (with Lead still attached) and let it dangle in the void.
- After a short while, the game should crash.
Steps to Reproduce (Creative / No Cheats):
(Video: Frog Crash.mp4
)
- Fly beneath the world with both a Frog and Slime Spawn Egg. (Using EntityTag to force the spawned Slimes to have {Size: 0} helps but is not required.)
- Spawn a Frog and Slime (or several of each) in quick succession.
- Repeat if no crash occurs.
Steps to Reproduce (Creative / With Cheats):
Method A (Manual):
- Spawn some Slimes and/or Magma Cubes of the smallest size (or other #minecraft:frog_food).
- Summon a Frog riding a Vex (or several):
summon minecraft:vex ~ ~ ~ {Passengers: [{id: "minecraft:frog"}], Silent: 1b} - Await game crash.
Method B (World Download):
- Download and extract the following attached world file: Affected World.zip

- Load the world in any 1.19 Pre-release or Release Candidate following Pre-release 3.
- Wait for the 'Preparing spawn area' screen to reach 100%.
→
The game crashes almost immediately.
(Report: Crash Report.txt
/ Deobfuscated: deobf_Crash Report.txt
) - (Optional: Load the world in 1.19 Pre-release 2 and observe that no crash occurs.)
2022-06-03, 10:10 PM
2022-06-07, 07:12 AM
2022-06-07, 07:12 AM
3
5