PlayerVaults icon indicating copy to clipboard operation
PlayerVaults copied to clipboard

Player heads in vault and server freeze

Open BoredFrostbite opened this issue 6 years ago • 10 comments

PlayerVaultsX version: 4.0.6

Server software: 1.12.2

Details: Server sometimes freezes when a player use /pv [number], after checking the player vault, there were filled with heads (maybe the main cause?)

*I removed the paper watchdog log and timings because it was soooooo long (and pretty much not necessary).

BoredFrostbite avatar Dec 12 '18 12:12 BoredFrostbite

crap, I just found it that 4.0.6 is only for 1.13, maybe it was the real cause, I will switch to 4.0.5 and leave this here in case it happens again.

BoredFrostbite avatar Dec 12 '18 13:12 BoredFrostbite

If you could produce an error and perhaps show your plugins and a timings report I might be able to help at least identify what's causing it. Also, the changes in 4.0.6 should only be affecting vault signs.

ArtelGG avatar Dec 15 '18 14:12 ArtelGG

Can you give us the exact contents of the inventory, your playervaults .yml file that contains this player's inventory, log files showing this, or any info on how to reproduce exactly.

drtshock avatar Dec 16 '18 00:12 drtshock

@drtshock

Can you give us the exact contents of the inventory, your playervaults .yml file that contains this player's inventory, log files showing this, or any info on how to reproduce exactly.

I have a sneaking suspicion this may be an issue with a player head plugin, perhaps one that allows the users to "redeem" them for money or something along those lines.

ArtelGG avatar Dec 16 '18 02:12 ArtelGG

I checked that player's vault, vault number 3 is filled with player heads. About reproducing the freeze, I tried several times but it won't freeze anymore, maybe because I used the wrong version before (4.0.6 for 1.12.2 instead of 4.0.5, something went wrong and the server frozen [althought you said that 4.0.6 only affects vault signs]) You can see the log and timings link by looking at the edit history (I don't mind pasting it back but its length is kinda annoying for me).

5b36d543-3dba-3c3d-857a-2162a64b90ea.zip

BoredFrostbite avatar Dec 16 '18 03:12 BoredFrostbite

I did some testing on my test server with 1.8.8 and 1.12.2 PaperSpigot's, I didn't get any lag other than client end with 1.8.8, however, on 1.12.2 my server and client did hiccup a bit during the first opening of the vault. It might be an issue with how 1.9+ handles player heads.

ArtelGG avatar Dec 16 '18 04:12 ArtelGG

Yeah just tested that vault and it gave me a little bit of a delay in populating the heads in the inventory. Not sure what the best way to handle this would be..

drtshock avatar Dec 17 '18 06:12 drtshock

You could try adding the items to a load-queue if they're an instance of a skull. Load them in packs of 5 or something.

ArtelGG avatar Dec 17 '18 06:12 ArtelGG

Perhaps, I would be concerned that we'd be open to dupes during that save window though.

drtshock avatar Dec 17 '18 18:12 drtshock

You could mark them as in a vault, load the skulls, then open the inventory? It might add some delay but it'd most likely fix it.

ArtelGG avatar Dec 31 '18 05:12 ArtelGG