Gamebreaking Server Hang on New Player

Lately I’ve been running into a pretty annoying issue where my loading screen would never disappear when joining a place in my universe.
Up until today have I had enough time to dedicate to try to figure out the root of the issue.

Here’s what I know:
There can be any number of players in the server within the first 5 or so minutes of its lifetime. People can filter in and out seamlessly.
Once it has been about five minutes, things start to go awry. No matter who joins (or rejoins) the server after this 5 minute mark, the server will crash. Nothing gets reported to the output. Nothing is logged on my computer. The server itself just disconnects all clients, including the new client trying to gain entry.

I had my good lad @WhoBloxedWho help me out with this.
Below is a video of what happens when he tried to join the game.At this point in the video, the server had been running just under 9 minutes.

The server hangs at about 0:35.

If anyone else has dealt with this before or if a roblox engineer could look into whats going on behind the scenes somehow, I’d be forever in your debt.

Sub place in universe we were at: Casual Adventure Testing - Roblox

2 Likes

It seems as if one of your scripts does an infinite loop when he joins.
Maybe during the loading of your data?

This sounds like a memory leak.

I’ve disabled every script in the game except for a select few. Data does even get loaded, NPCs don’t load, and this still happens. I’ll disable everything and see if it changes

The only thing I can pin point it on is the NPCs or the Enemys. I must be running into some sort of leak or something.

The last couple of days I’ve been totally rewriting the NPCs (more OOP)
Hopefully this fixes it, but if there’s any word on exactly what’s happening, I’d still be interested to know.