BindToClose 100% Infinite Yield

This has started happening again for me and another user. Just this:

game:BindToClose(function()
	print("start")
	wait(1)
	print("end")
end)

prints start once, and throws Not running script because past shutdown deadline (x3).

cc @CycloneUprising

17 Likes

This is occuring in one of my new projects too.

6 Likes

This is happening to me as well, thought I was going crazy but pinned it down to my UpdateAsync call on BindToClose. Very frustrating!

edit: this appears fixed again

edit2: nope, itā€™s happening again

8 Likes

Also experiencing this - sucks to have my game crash several times in studio and to not know what was causing it! Please prioritize fixing this, thanks!

2 Likes

This has been occurring in my projects as well, unfortunate as it is slowing down development due to studio freezing for 30+ seconds each time I want to test out a new change.

4 Likes

Same. Wasted lot of time pinning down this issue since I havenā€™t updated my BindToClose script recently.

2 Likes

Getting this again as well. Itā€™s making it very hard to test since I have to wait 30 seconds after finishing any testing.

6 Likes

I can confirm this issue is still happening.

1 Like

This is now happening in a bunch of games I develop, slowing down the process extremely. Some of these games I definitely havenā€™t updated for awhile and they are suddenly all exhibiting this behavior.

4 Likes

This is happening to me again suddenly.

3 Likes

This occurs for me too. I never recognized what exactly caused it, but I had used Datastore 2 (the module by kampfkarren) and now that youā€™ve pointed that out, I believe his script uses the same BindToClose function and is likely the cause of this for me as well.

1 Like

image

This is happening to me again now, I havenā€™t made any changes to my data store script today.
I havenā€™t had any problems with this for quite a while.

image

2 Likes

I also experience the same errors. This is only while testing in studio right? Or does it affect real servers too?

I have the same question, does this behavior also happen in live servers or is this only in Studio instances ?

Can confirm weā€™re also experiencing this. It looks like if you have anything inside :BindToClose() that yields even briefly it causes the thread to yield infinitely. This only started happening a couple days ago for us.

game:BindToClose(function()
	if(game["Run Service"]:IsStudio()) then
		wait() -- this breaks it
	end
end)

5 Likes

Having same issue - and call to wait() made in BindToClose causes yield everytime. Extremely aggravating to have to deal with.

4 Likes

Paging @CycloneUprising, this frustrating bug is back.

6 Likes

It has gotten worse for me since the past 2 days. It now happens 100% of the time i stop a studio game test. A while back this occurred only like 50% of the time.

(ofcouse only when yielding inside BindToClose())

2 Likes

Having the same issue. Itā€™s more of a nuisance than being dangerous (to data), at least for me.

2 Likes

This is happening to me right now and it is so annoying so I looked around and found this thread and saw that some people have been having this problem recently so Iā€™ll post cause why not

2 Likes