mojira.dev
MCPE-225488

drawn shapes with @minecraft/debug-utilities crashes joining players

When there are shapes drawn with the @minecraft/debug-utilities API are visible in the world when a player joins, that player will crash. It is currently possible to soft-lock a world by drawing shapes when the player joins (which is remedied by removing the problematic behavior pack). This seems to occur for any shapes that exist or begin to exist during the joining player’s loading screen.

Steps to reproduce:

  1. Download the attached test pack. Add it to a world with Beta APIs enabled.

  2. Run /scriptevent debug:testdraw to draw a box at the player’s location.

  3. Using another client, attempt to join the world.

Also,

  1. Run /scriptevent debug:softlock to make any player crash when joining.

  2. Quit and attempt to rejoin the world.

  3. You’ll have to remove the pack to rejoin the world.

Expected Result:

Players can join normally.

Actual Result:

Players crash.

Attachments

Comments 2

I should also mention this is a huge issue on BDS because any drawn shapes will stick around after a player leaves, meaning they will not be able to rejoin.

Fixed in 1.21.100 stable

  • Fixing a crash with the DebugDrawer when used too early in the client joining a world (such as inside the playerSpawn event).

ForestOfLight

(Unassigned)

Unconfirmed

Multiple

1.21.94 Hotfix

Retrieved