Cosmetic Armor Reworked

Cosmetic Armor Reworked

113M Downloads

Client kicked- java.lang.IllegalStateException: CauseStackManager called from off main thread

ProsperCraft opened this issue · 8 comments

commented

If you take your hat, and with it in your hand, click on the cosmetic armor button it will kick you from the server with a stacktrace in console.

https://gist.github.com/ProsperCraft/fb0296f788697a976eecaed8255d6fb9

Reproduced here -

https://gist.github.com/ProsperCraft/6b39501a4aa72590b0b1bf9765b2ffa6

My modpack-
https://minecraft.curseforge.com/projects/towncraft

commented

I couldn't reproduce this in singleplayer.
Could you try to reproduce this in a vanilla forge server?
If this is a sponge server issue, please try updating sponge or ask help from them.

commented

Is that still an issue?

commented

@zsn741656478 Do you mean pick something up using your cursor in your inventory, and click the button will get you kicked in a sponge server?

commented

You can't access the world from a packet handler due to multithreading. Sponge detects it. Without Sponge you'll get world corruption or random CME.

commented

Thanks for the info. I just tested and confirmed it.
So, the dropping of the items you are working on during gui transfer was a old behavior.
I will make the items stay in the inventory.

commented

@zsn741656478 Do you mean pick something up using your cursor in your inventory, and click the button will get you kicked in a sponge server?

Oh, YES

commented

Hmm, i probably should just use Baubles approach of scheduling the task in main thread.

commented

The same.
https://i.loli.net/2019/01/14/5c3c30837c6fd.png
Take anything in your hand and click on the cosmetic armor button. You will be kick from server,
Fix it please.

@zlainsama