Reproduction Steps
Player
- Join an experience in which your account has access to the server console
- Execute the following code via the developer console:
local part = Instance.new("Part") local attach = Instance.new("Attachment") local align = Instance.new("AlignPosition") align.Mode = Enum.PositionAlignmentMode.OneAttachment align.Attachment0 = attach attach.Parent = part align.Parent = part part.Parent = workspace align.Mode = Enum.PositionAlignmentMode.TwoAttachment
Studio
- Open repro.rbxl
- Select the AlignPosition inside the Part in workspace
- Change the Mode property to TwoAttachment
Note that in both of these cases, the order of property sets is (or was set up, in the repro file) as follows:
- Mode = OneAttachment
- Attachment0 = attachment
- Mode = TwoAttachment
The crash only occurs when the changes happen in this order. It happens equally to AlignPosition and AlignOrientation.
Windows 10 64-bit
(Studio) Version 0.516.0.5160305
Expected Behavior
The Mode property should be changed successfully.
Actual Behavior
Following the Engine steps, all players receive the Disconnected dialog with Error Code 277 after a short delay. The server cannot be rejoined.
Following the Studio steps, Studio will crash with the “An unexpected error occurred” dialog.
Workaround
Make the relevant property changes in a different order, for example by clearing Attachment0 before changing Mode.
Issue Area: Engine
Issue Type: Crashing
Impact: Moderate
Frequency: Constantly
Date First Experienced: 2022-03-07 17:03:00 (+00:00)
A private message is associated with this bug report