Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-171477

"minecraft:physics" crashes game in a specific case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.19.83 Hotfix
    • None
    • Plausible
    • Windows

      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

            Scai Scai Quest
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: