[SPIGOT-4940] Cannot Drop Air - Villager Enchants Crash Server Created: 15/May/19  Updated: 26/May/19  Resolved: 16/May/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Xavior Penguin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.14.1, crash, enchantment, villager
Environment:

Server OS: Windows 2008 R2 SP1 (Latest Updates)
Java Release: Version 8 Update 191
CPU: Intel Xeon @3.20Ghz 2 Physical Processors w/4 cores a piece (DP 5060)
RAM: 32GB DDR2 ECC

Error Occurred on Test Machine:
CPU: Processor Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
RAM: Installed Physical Memory (RAM) 64.0 GB
OS: Microsoft Windows 10 Home
GPU: NVIDIA Geforce GTX 1080


Attachments: Text File 2019-05-14-4.log     Text File crash-2019-05-14_14.21.48-server.txt     Text File crash-2019-05-15_15.26.45-server.txt     Text File crash-2019-05-15_16.01.11-server.txt     Text File crash-2019-05-15_16.09.10-server.txt     Text File crash-2019-05-15_16.12.37-server.txt     Text File crash-2019-05-15_16.28.10-server.txt     Text File crash-2019-05-15_16.54.22-server.txt     Text File latest.log     Zip Archive world.zip    
Issue Links:
Relates
relates to SPIGOT-4987 Shulkerbox inv does not save item pos... Resolved
Version: Implementing API version 1.14.1-R0.1-SNAPSHOT
Guidelines Read: Yes

 Description   

This is from one of my Testers on a server I manage: "Whenever that I win a raid and get the "Hero of the Village" effect the server will crash during the time when villagers start gifting me free items. I tested this inside a village that I've created with 38 villagers of all the different job traits each having their own bed. "

Steps to replicate:
1. Find a village or build one
2. Either wait for raid or run command "/effect give USERNAME minecraft:bad_omen 1000"
3. Fight the raid to win to get "Hero of the Village" Enchant. (Also works if you give that enchant to yourself instead of fighting the raid.)
4. Receive gifts by walking up to Villagers
5. Server Crash

Logs included in report as well as YouTube video (YouTube Video here: https://www.youtube.com/watch?v=hgeGtTKzNL4&feature=youtu.be ). This was also tested on Vanilla 1.14.1 on a server and this error did not pop up. Tried running with and without plugins and received same error. Any time server crashes, the two provided attachments are almost always the same.

Also, during this time, lag spikes can occur. Don't know if it is my server or Spigot, will test for that later.



 Comments   
Comment by Xavior Penguin [ 16/May/19 ]

You can use my server if you wish. I believe I have it to restart when it crashes.
web.geekxp.net:49520
I apologize for possible slowness due to my server.

EDIT: You can do whatever. You might need OP tho.

Comment by sinubux [ 16/May/19 ]

Here's the map we're using (if I attached it right).

 

world.zip

 

If you want, I can can also just share the IP of the server we're testing on.

Comment by md_5 [ 16/May/19 ]

Yeah can you upload the map with the fletchers (just giving myself the enchant doesn’t seem to make them reward me)

Comment by sinubux [ 15/May/19 ]

(I'm part of the same group trying to test the issue)

 

We tested it on a different, new server (clean install, no datapacks, no plugins, fresh map), still the same problem. It definitely only affects fletchers, we tested all 13 different villager types individually.

 

It doesn't immediately crash when a fletcher throws an item, rather, it seems to be a random chance that the item that they throw is glitched (I'm guessing something to do with tipped arrows). Occasionally, I'd receive a couple items correctly (namely regular arrows, and tipped arrows with instant health), before the server crashed.

 

Here are all the crash reports that we got:

32 random villagers, including fletchers-

 crash-2019-05-15_15.26.45-server.txt

 

20 fletchers-

crash-2019-05-15_16.01.11-server.txt

 

4 fletchers-

crash-2019-05-15_16.09.10-server.txt

 

10 fletchers-

crash-2019-05-15_16.12.37-server.txt

 

20 fletchers (again)-

crash-2019-05-15_16.28.10-server.txt

 

I'm guessing it'd work with just one fletcher as well, but the less of them you have, the longer it takes for the server to crash (The 4 fletcher crash probably took around a minute or so from the time they started throwing items. The 20 fletcher crashes happen almost instantly).

 

We also tested this with 20 fletchers on a vanilla 1.14.1 server, no crashes there.

 

Comment by md_5 [ 15/May/19 ]

I can't reproduce this - do you have a world I can join to get a crash easily?

 

I think it may be gifts from fletchers only, but I need to confirm

Comment by Xavior Penguin [ 15/May/19 ]

Just tried it without all datapacks and still crashes. See attachments. crash-2019-05-15_16.54.22-server.txt latest.log

Comment by md_5 [ 15/May/19 ]

Please try without data packs installed.

Generated at Tue Apr 22 03:57:07 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.