Race condition when handling character appearance

Hello,

I’m writing this bug report because when stopping a playtest session, sometimes it errors.

  18:23:10.846  :: Adonis :: Beginning Adonis cleanup & shutdown process...  -  Server
  18:23:10.847  :: Adonis :: Unloading complete  -  Server
  18:23:10.847  Disconnect from ::ffff:127.0.0.1|60331  -  Studio
  18:23:11.068  LoadCharacter: Failed to handle character appearance, player not in world.  -  Server
  18:23:11.068  Stack Begin  -  Studio
  18:23:11.069  Script 'ServerScriptService.Match', Line 130  -  Studio
  18:23:11.069  Stack End  -  Studio

I noticed that it errored after I disconnected from the local server, maybe that’s the issue?

PC Info: Windows 10 22H2
Date First Experienced: 16/12/2023
Date Last Experienced: 25/12/2023 (last time i went into studio as of writing this)

Repro Steps:

  1. Open Roblox Studio and open a place

  2. Script something that makes the playtest session lag for like 5 secs

  3. Retry if nothing shows up

Sometimes character appearance will finish loading when player has already left the experience.
You should use pcall to call LoadCharacter and handle errors that it might report.

1 Like

I’m sorry I forgot to look at the entire backtrace.
Thanks for the reply

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.