This bug is extremely annoying. As a developer, it is impossible to properly utilize custom character loading because due to a unknown memory leak, when LoadCharacter is used frequently in-game, it causes massive server lag and often crashes.
My game had a spawn delay. Every time the character died, the wait time was 30 seconds before they respawned. As soon as this feature was added, our crash rates went up twofold, and we had massive complaints about lag whenever the server got above 30 players. We immediately disabled this new feature, and all the lag issues were fixed.
I have confirmed that this was caused by LoadCharacter() - without that function call the script otherwise runs fine.
There have been many bug reports about this but no response, will this ever be addressed?
I would like to point out that LoadCharacter has had many performance issues and bugs in the past. Some examples:
A new bug report may still be useful as the cause may be different, anyway. Iām wondering if thereās an underlying issue with LoadCharacter that has caused all of the bugs and performance issues with it, including the one this thread is referring to.
Anyway, a proper repro and report is necessary. You should be able to amend your post to include the proper formatting. Making a repro should be really simple ā just make a button that calls LoadCharacter on everyone or give the place a 30 second LoadCharacter delay, then let Roblox staff so the stress testing. Including a video of your existing placeās server crashes would help too.
I havenāt been able to find any memory leak, but Iāve been loading a simple character on a base plate. It might have to do with something else about the character or the place, so detailed reproduce steps would help isolate that particular problem. I have seen, though, a part of LoadCharacter() that is taking too long and Iām looking at ways to help improve that.
Can confirm thereās new memory leak issues - sometimes the characters in our game are nude when using loadcharacter, and scripts are either duplicated/not cleaning up. Memory usage was insanely high too.
As of today, Iām having this issue on my game (sorry, itās paid access)
I tried reuploading the game to another place, and the bug doesnāt occur, so Iām not sure this one is easy to repro.
But, Iām still gonna try to narrow down the issue and post a repro (if possible), but I think it might be only affecting specific places.
EDIT: I fixed it in my own place but have no idea how, but I was still able to make a repro ĀÆ\_(ć)_/ĀÆ
Avatar Type Options: Morph to R15
Avatar Scaling Options: Player Choice
Avatar Animation Options: Player Choice
Avatar Collision Options: Inner Box
Avatar Body Type: Standard
There is still some minor server lag when called from multiple clients simultaneously. We had to remove our custom respawn system again, which used LoadCharacter.