mojira.dev
MCPE-171477

"minecraft:physics" crashes game in a specific case

Summary:

When using the "minecraft:physics" component on an entity with the "push_towards_closest_space" value set to true, if you teleport that entity slightly inside a block, the game completely crashes with the following log message: 

 

[2023-06-09 23:30:31:863 ERROR SYSTEM 17808 21732] Assertion failed: Should be a player
Condition is false: result
Function: IActorMovementProxy::asPlayer in D:\a\_work\1\s\handheld\src\common\world\actor\ActorMovementProxy.h @ 295

 

This is the code used for that component:

"minecraft:physics": {
        "has_collision": true,
        "has_gravity": true,
        "push_towards_closest_space": true
      },

Affects currently Live Content: No

Impact: 

The impact is minimal. Removing "push_towards_closest_space" fixes the issue, and has no effect on the functionality of the entity. Just wanted to give you a heads-up. Maybe update the documentation of the field as well?! To a better description.

Repro Steps:

  1. add "push_towards_closest_space": true to the physics component of a pig

  2. try to summon pig inside a 1x1 chamber/tunnel

  3. crash

Attachments

Comments 2

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Finally got around to making a world and testing this.(see attached)
1.19.81 - can reproduce
1.19.83 - can reproduce
1.20.12 - no longer an issue
So it's fixed somehow! 🙂
Cheers!

Scai

(Unassigned)

Plausible

Windows

Windows 10

1.19.83 Hotfix

Retrieved