Editor unrecoverable freeze from a non-ending Luau loop in `init()`
A mistake in a while loop (like in the script below) in the script, causes an unrecoverable freeze in the Editor. Trying to open it after restart still causes an unrecoverable freeze - requiring a `force quit` of the Editor.
export type Exercise4 = {}
function init(self: Exercise4): boolean
local energy = 3
local steps = 0
while energy > 0 do
steps += 1
end
print(`ANSWER: steps={steps},energy={energy}`)
return true
endAs far as the runtime goes, there is a timed scripting context around the calls with default timeout path. However, it seem that the editor’s open path does not have the same guard. So on .rev open it evaluates the script, gets stuck in the loop and freezes.
this is true both in the Desktop Editor and in the Web based one.