(Roblox Bug?) An unknown bug is freezing my game

The issue is not memory related or part related. I am unsure why my game is lagging but I believe it has to do with the teleport service.

How to reproduce the issue: Whenever I shutdown a server and join a new one, whenever about 20 players join in at once, the server lags and freezes for me. I’ve tested multiple times, disabling scripts and it did not work. I even tested with a baseplate to check if there were too many parts. There isn’t a backdoor either, I checked for that. The only reason I can think of is players teleporting in and out of the game. Does anyone have any ideas or have ran into this problem before? Much appreciated, thanks!

EDIT: It seems like it is an infinite yield issue with the CoreGui, I can’t access the script though and I am not sure what is causing it to happen. It can take 5 minutes to join a server or wait until the game unfreezes. Still need help solving it.

Edit2: I don’t think the CoreGui is the reason for it happening as the freezing has happened without the error. Not sure what else it could be.

image

My game is linked below:
https://www.roblox.com/games/8305160617/Last-To-Leave

2 Likes

Tested the game and I didn’t had any major lag problem but some minors one. It is probably the players going in and out from the teleporter multiple times very fast which can causes lag. You could limit the player count or add some sort of player limit when they get teleported.

1 Like

I think it might just be on my end, I’m not sure how or why it could be though.

1 Like

More info on the lag possibly:

1 Like

The bug is still occurring and discouraging a lot of players from joining my game. Players are reporting the bug on my group wall.

1 Like

I am still getting the bug, I’m not allowed to post under bug reports so I’m not sure where to report the issue except for here. Infinite yield possible on StarterPlayerScripts resulting in a great increase in loading time for players.

1 Like

I don’t believe the infinite yield is the reason for the lag, it happens to me a lot of the time but the game runs perfectly fine.

1 Like

When it happens to you, is it the same one I am getting? (Infinite yield on StarterPlayerScripts)

1 Like

Yeah, I get the warning too occasionally, but it doesn’t affect performance and shouldn’t.

1 Like

I’m not sure what it could be then, the bug only pops up after you are done lagging. Maybe it lasts longer in my game than yours.

Edit: Bug just happened without it, I’m not sure what else it could be. I’ve removed scripts and put them back in but the lag still occurs.

1 Like

This bug is still occurring, not sure what the cause could be. I am not getting any memory leak that would cause it. Just the infinite yield that shows up once I stop freezing (can take over 5 minutes sometimes).

1 Like

The bug is still happening and causing many players to lose connection.
https://gyazo.com/63d7286605a9018b671670923ae9cbc1

1 Like

Something I’m noticing is that there’s quite a lot of network usage. How much do you use Remote Events?

1 Like

That wouldn’t be the cause because I removed everything but the teleporting pad (players stand on a teleport pad, a countdown happens and it teleports them to another place) and the same lag still occurred.

@Randy_Moss did you ever figure out what went wrong or how to fix this? I’m currently seeing the same thing, wrote up a bug report here.

Update: It was a race condition for us.

1 Like