Mojira Archive
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

Cannot Reproduce

Scai Quest

2023-06-09, 11:56 PM

2023-07-21, 11:57 AM

2023-07-21, 11:57 AM

0

0

Plausible

1.19.83 Hotfix

-