BindToClose 100% Infinite Yield

Looking into it.

7 Likes

“enable studio access to API services.”
What does that mean? How exactly do I do that?

4 Likes

On a published game, on the website:

image

2 Likes

Go into your game settings and enable the checkbox. Data stores don’t work in studio by default.

2 Likes

Took me all day but I figured out what the problem is. Solution forthcoming (keep in mind normal delay for testing & rollout).

Thanks for the heads up.

15 Likes

Thank you senpai :bow:

1 Like

If you don’t mind me asking, what was the issue? Or is that sensitive info?

1 Like

Not particularly sensitive, no.

In a nutshell there is a problem if we set up the “edit” data model’s rendering before we close down the old outgoing “Play” data model: something about setting up the rendering blocks any kind of async/delayed calls associated with BindToClose.

I had to get help from a more senior/more smarter-er engineer to figure it out.

14 Likes

I love hearing the solutions on bug fixes, extremely interesting, hopefully we’ll hear more!

9 Likes

I’m still getting this bug :confused:

2 Likes

This fix hasn’t been rolled out yet

3 Likes

They’re working on it. Hopefully it’ll be out soon (no :tm: required)

3 Likes

This is still an issue :frowning:

2 Likes

Any updates on the rollout of the fix? This is very painfully slowing down development for me.

6 Likes

Well, if anything good comes of this - it lets me test how my data system handles abrupt server closes while player data is still being processed. :joy:

3 Likes

Here’s a direct repro that doesn’t require anything special. Studio simply hangs up for the maximum timeout duration if any functions connected by BindToClose have a yield in them, probably because it never resumes the Lua thread.

game:BindToClose(function ()
	print("Doing some work")
	wait()
	print("Done?")
end)

cc @CycloneUprising @DreamingMind

3 Likes

Thanks.
Sorry this has taken so long.
We do have a fix but there have been complications with it.
I believe we have them sorted out, and the fix should go live with our next release (355).
Very sorry for the inconvenience. I know the APS release has been unacceptably buggy: we are reviewing internal processes to make sure this kind of this doesn’t happen again.

12 Likes

Do you have an estimated date for when 355 will be released, or is that unknown?

1 Like

Isn’t a new Roblox update every Thursday?

1 Like

:man_shrugging:

1 Like