Issue Type: Connectivity Impact: Very High Frequency: Constantly Date First Experienced: 2021-02-12 11:02:00 (-08:00) Date Last Experienced: 2021-02-13 15:02:00 (-08:00)
Looking at all the stats on the developer console, there seems to be nothing out of the ordinary at all, even leading up the disconnection. The only thing in common that we’ve observed amongst all the crashes, are character humanoid scale value instances being modified near the disconnection point.
Expected Behavior:
As a player, I expect to play the game without disconnecting, and be able to rejoin the game without being presented with an ID=17 error, or
As a developer, to see any kind of developer console or microprofiler statistics behaving differently leading up to the crash
if it’s a game script running too long, I figure it’d at least output a “game script timeout”, which it doesn’t seem to (and it seems like there’s no place in the code where this case might occur)
Actual Behavior:
In certain servers, the gameserver suddenly disconnects everyone after a couple of minutes (with no visible anomalies in developer console statistics or microprofiler dumps leading up to the disconnection event), but stays up, and continues allowing players to join, except they cannot actually connect to the gameserver, and instead end up getting presented with an ID=17 connection error.
Workaround:
There is no workaround for this problem that we’ve been able to find.
Could you post the snippet of code that caused LoadCharacter() to be called so many times? Did LoadCharacter() get called so many time before Player.CharacterAppearanceLoaded event is fired?
This is the actual code (lines 283 & 285 in the first screenshot were not there before, and adding these to ignore cases where player & targetPlayer are the same player, prevented the sequence of events that led to the crash):
My guess is that the LoadCharacter call in line 270 replaced the character after the CharacterRemoving hook at line 140 was installed & as a result it called the function containing line 270 again, causing it to get stuck in a loop
Hello, I am currently having the same disconnectivity issues.
I saw this bug report and pushed a hotfix today that fixed an exposed remote event that prevents clients from constantly calling LoadCharacter(), but players are still reporting constant disconnects. I want to bring this to your attention as there may still be an engine issue.