Setting the script timeout setting in Studio does not work --- instead the script always times out after roughly 10 seconds (in play solo)

  • Describe the bug. Describe what is happening when the bug occurs. Describe what you would normally expect to occur.

Setting the script timeout setting in Studio does not work β€” instead the script always times out after roughly 10 seconds (in play solo).

Repro steps follow;

Create this server script:

local start = tick()

while tick() - start < 15 do
	local complicated_computation = 1 + 1
end

Run the game (with the default 10 seconds script timeout setting), note how the script times out after ~10 seconds as expected.

Set script timeout to 30 seconds in Studio settings. Run the game, note how it still times out after ~10 seconds while we expect the script to not time out anymore (and finish gracefully after 15 seconds).

  • How often does the bug happen (Everytime/sometimes/rarely)? What are the steps that reproduce the bug? Please list them in very high detail. Provide simple example places that exhibit the bug and provide description of what you believe should be the behavior.

Always, see above for repro steps

  • Where does the bug happen (www, gametest, etc) Is it level-specific? Is it game specific? Please post a link to the place that exhibits the issue.

Live

  • Would a screenshot or video help describe it to someone? If so, post one.

n/a

  • For graphics bugs, it is sometimes helpful to know your system specs, especially graphics card.

OS: Win 10

  • When did the bug start happening? If we can tie it to a specific release that helps us figure out what we broke.

Unknown (didn’t have the need to increase the timeout for months)

  • Anything else that you would want to know about the bug if it were your job to find and fix it.

Setting the timeout through game["Script Context"]:SetTimeout(30) does not work either. Setting it runtime after a short delay does not work either.

Debugger is enabled. APS debugger is attached to the server (and Studio has been restarted).

Not tested with start server. Cannot test with old play solo as that setting has been removed recently.

3 Likes

I started noticing issues with script timeout a few months ago at the end of January 2019.

Hope this gets fixed. It’s ruined my ability to load player builds from my building game into studio because it takes a few seconds.