Closed hafarooki closed 4 years ago
above stacktrace is from jstack. I was doing some mass UUID -> name conversion so mojang's probably limiting my connections, that's probably it
Either that or maybe the connection just timed out. From your stacktrace I would say that this is nothing I can do about in GameBox.
I had this issue again several times, why is it loading people's profiles on the main thread?
I'll reopen and see when I find time to add this. I should rewrite the way GameBox loads the top lists anyway (#34).
thanks :smile:
There are lots of sites that cache the skin, you might want to see if you can use this instead, I think Crafatar works for that
as a temporary solution, can this be disabled? It's holding it up every startup now :confused:
As a temporary "fix" you could remove the top lists. Go to the game configurations and comment out the toplists. This way you won't lose the statistics, but the plugin won't load the heads.
Heads could just be loaded in another thread nah ?
Only the call for the texture is the problem. And yes, sure I can do that on another thread. That's what Miclebrick already said.
I will do this together with #61
That, or get the profile async. Then the server won't do a synchronous call for the texture when you retrieve the head. But that's a paper-only thing (getting the profile) iirc.
As far as I know I can just cache the textures as string, and use fake GameProfiles to apply them to heads. That should work for Bukkit. It just needs the authlib from mojang.
Closing in favour of #61
above stacktrace is from jstack. I was doing some mass UUID -> name conversion so mojang's probably limiting my connections, that's probably it