December 24, 2022, 2:21pm
I’ve recently just updated my game so it would be more fun for players to play the game, however, seemingly at random times my game simply just disconnects everyone at once. I’ve monitored things in the debug profiler and I cannot find anything that could be causing it whether it be an infinite loop or something else.
A few times I saw a significant spike in my games DataHandler before the crash, but other times there was no spike at all and it still crashed. Can anyone help me pinpoint what’s going on here?
Could you share the DataHandler script here?
December 24, 2022, 2:25pm
QuickNetwork is an alternative, powerful and light wieght data store module to ProfileService and DataStore2. With features like
SessionLocking, Backups and data combination, QuickNetwork provides an hybrid data store solution, also allowing you to control data saving and loading with easy flexibility.
Data loaded is auto saved automatically and managed efficiently with the least expensive of API calls, allowing you to use this module without worrying about data loss.
But like I said, I can’t really link the data handler to the random crashes. I’m not sure if it’s causing any at all.
What’s the memory usage looking like in game?
December 24, 2022, 2:30pm
nothing critical. Crashes range from 1000 to 6000 memory usage
Can you link your game please?
Alright, I just got disconnected, and I believe that a remote event is causing this. When I looked in the console right before it crashed, it showed that there was a remote exhaustion. Perhaps check through all your remote events and make sure they aren’t being spammed?
December 24, 2022, 2:41pm
Ok, I will try this. By the way, here’s some crash info I got.
Like I said, nothing out of the ordinary
5000 mb memory usage on the server? That is not normal at all. And the script rate of 13,000 is not normal either. This is definitely caused be a memory leak, look into what is causing the memory leak on the server.
December 24, 2022, 2:49pm
Maybe I do have a memory leak, but it was like this before and my game wasn’t crashing so I don’t think it’s the issue.
December 24, 2022, 2:56pm
Ok never mind its 100% a memory leak of some kind. I can see the timer pausing followed by a huge spike in memory by 500 mb or so
It seems to be the data handler : P
December 24, 2022, 2:58pm
So the memory leak is in data handler. Do you see anywhere that could cause a leak?
December 24, 2022, 3:03pm
Might be caused by the amount of for-loops, maybe adding a
task.wait() in the middle could fix it?
Check the server console for the script thats taking up the most memory
December 24, 2022, 5:30pm
Update: both Lua Heap & DataHandler are skyrocketing at random intervals shown here:
I’m going to try disabling some of the datahandlers functions and seeing what’s causing it
Check for instances that aren’t destroyed and variables that aren’t being cleaned up after use.
This might be caused by QuickNetwork itself, have you tried ProfileService?
December 26, 2022, 12:16am
Solution: QuickNetwork is bad. Profile Service is better.
January 9, 2023, 12:16am
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.