Studio freezes when using EditableMesh

The freeze will only happen when generating EditableMeshes through the command bar on a published place that has Team Create disabled. This has been happening every time when these specific conditions were met.

Repro:

  • Open a place in studio. It must be a place that’s published to Roblox, otherwise the freeze won’t happen.
  • Team Create must be disabled, otherwise the freeze won’t happen.
  • Run this code in the command bar:
	local AssetService = game:GetService("AssetService")

	local editable = AssetService:CreateEditableMesh()

	local a = editable:AddVertex(Vector3.new(0, math.random(), 0))
	local b = editable:AddVertex(Vector3.new(1, 0, 0))
	local c = editable:AddVertex(Vector3.new(1, 0, -1))
	local d = editable:AddVertex(Vector3.new(0, 1, -1))

	editable:AddTriangle(a, b, c)
	editable:AddTriangle(c, d, a)

	local mesh = AssetService:CreateMeshPartAsync(Content.fromObject(editable))
	mesh.Anchored = true
	mesh.Name = "EditableTest"
	mesh.CFrame = CFrame.new(0, 25, 0)

	mesh.Parent = workspace
	
	task.wait(1)
	
	for x = 0, 63 do
		for y = 0, 63 do
			
			local offset = Vector3.new(x * 1.2, 0, y * 1.2)
			
			local a = editable:AddVertex(offset + Vector3.new(0, math.random(), 0))
			local b = editable:AddVertex(offset + Vector3.new(1, 0, 0))
			local c = editable:AddVertex(offset + Vector3.new(1, 0, -1))
			local d = editable:AddVertex(offset + Vector3.new(0, 1, -1))
			
			editable:AddTriangle(a, b, c)
			editable:AddTriangle(c, d, a)
			
		end
	end
  • Move the generated mesh a bit in studio. Not sure if this step is crucial to the freeze.
  • Wait up to about 5 minutes and then studio will freeze.

Exactly at the moment of the freeze I’ve noticed this being created in AppData\Local\Roblox\RobloxStudio\AutoSaves:
image
A 0KB size place file that throws this error when I try to open:
image

8 Likes

My Roblox Studio crashes a lot too when using Editable Mesh.

Thanks for the report; We’ll follow up when we have an update for you!

Thanks for your report. This issue should be fixed now, let us know if you are still running into it.

1 Like