Roblox / Core-Scripts

All of ROBLOX's core client scripts.
Apache License 2.0
252 stars 184 forks source link

Infinite yield possible on 'RobloxReplicatedStorage:WaitForChild("SetDialogInUse")' #468

Closed ghost closed 8 years ago

ghost commented 8 years ago

22:19:10.068 - Infinite yield possible on 'RobloxReplicatedStorage:WaitForChild("SetDialogInUse")' 22:19:10.070 - Stack Begin 22:19:10.070 - Script 'CoreGui.RobloxGui.CoreScripts/MainBotChatScript2', Line 71 22:19:10.070 - Stack End

PhoenixShay commented 8 years ago

this is a problem with WaitForChild, not the corescripts themselves

someone at ROBLOX probably tried to make some sort of loop prevention on WaitForChild but never finished it

kyle-emmerich commented 8 years ago

No, this is intended behavior. We knew that this sort of thing would show up going into this. You can safely ignore it.

What's happening is that the script uses WaitForChild to yield itself until SetDialogInUse is added to RobloxReplicatedStorage. This usage accounts for a very tiny proportion of what you'd usually use WFC for, so we provided that warning to make the normal usage easier.