BindToClose 100% Infinite Yield

The update is deployed around Tuesday evening and rolls out around Wednesday afternoon.

4 Likes

Any news on the fix for this? Definitely past noon.

1 Like

Still not fixed :confused:

1 Like

Confirmed also not fixed, it’s been another week

3 Likes

Still not fixed :confused:

4 Likes

This still hasn’t been fixed as of the last update.

3 Likes

Any updates on this? :confused:

3 Likes

Same issue here, really annoying when i want to test in solo mode.

2 Likes

Please tell me there is a fix coming out for this soon. It’s seriously slowing down development, I have to wait 30+ seconds each time I end a playsolo session when I’m quickly testing a change in my code.

6 Likes

This is still a huge problem, testing safe data store code is made much more difficult and tedious through this.

9 Likes

Really need this to be fixed asap. Are there any update or an ETA?

3 Likes

I can reproduce this 100% of the time when using coroutine.yield. Here’s two examples. The first works fine, and the second causes it to hang:

-- Works fine:
game:BindToClose(function()
	wait(1)
end)
-- Will cause Studio to hang when leaving:
game:BindToClose(function()
	local thread = coroutine.running()
	coroutine.wrap(function()
		wait(1)
		coroutine.resume(thread)
	end)()
	coroutine.yield()
end)

My game framework utilizes coroutines within the BindToClose callback in order to execute and await the completion of any number of tasks.

4 Likes

Any update? Almost two months since your post and this is still a live issue.

We recently turned on a flag that fixes the original problem as reported.
Since then a separate (but related) issue has been reported relating to using coroutine.yield in BindToClose.

That is still an open issue, as I just heard about it days ago.

If you are still seeing a problem in BindToClose and you are NOT using coroutine.yield, please let me know.

5 Likes

Bumping, as this is still an issue. Is there any update?

4 Likes

Sorry, no. Spent some time on it and could not figure out what exactly the problem was. Will try to prioritize a revisit.

3 Likes

A post was merged into an existing topic: Off-topic and bump posts

This is still happening over a year later, specifically with coroutines.

game:BindToClose(function()
	local Thread = coroutine.running()
	
	delay(1, function()
		coroutine.resume(Thread)	
	end)
	
	coroutine.yield()
end)

This is related to another issue that we are aware of After resuming a Wait() thread, wait() no longer functions properly

I’ll post an update on that thread once we have a solution.

I can try to send some more time on it and see if I get anywhere. Stay tuned.

4 Likes