GetCharacterAppearanceAsync Yields Forever

Using GetCharacterAppearanceAsync on a UserId that currently has no avatar items equipped, minus gear, will cause the function to yield forever, effectively killing the current thread.

This may have been an issue previously but I’ve only very recently encountered it in my game, where Zombies take the appearance of players previously killed, which caused all of the Zombies to break.

4 Likes

Looking into this. Can you post a repro case?

Literally just any user who has nothing equipped apart from gear. UserId 51654660 is the one that caused issues with my game, as he has nothing equipped as of the time of this posting. The following code in a script;

print(“Loading Appearance”)
local Appearance = game.Players:GetCharacterAppearanceAsync(51654660)
print(“Loaded”)

Will print “Loading Appearance” but will never print “Loaded” and will never time out or return any errors. You can test this on your own UserId by just un-equipping your avatar items, but you can keep your gear equipped.

1 Like

Thanks, will give it a try tomorrow.

2 Likes

Hey TheBadassKetchup: thanks for reporting this. We tracked the issue and were able to fix it live. Let me know if you’re still having any problems. I was able to repro with your user ID and can now load appearance with that id.

4 Likes

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