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:
Download the attached test pack. Add it to a world with Beta APIs enabled.
Run /scriptevent debug:testdraw to draw a box at the player’s location.
Using another client, attempt to join the world.
Also,
Run /scriptevent debug:softlock to make any player crash when joining.
Quit and attempt to rejoin the world.
You’ll have to remove the pack to rejoin the world.
Expected Result:
Players can join normally.
Actual Result:
Players crash.
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.