[SPIGOT-5151] Chest opening server crash Created: 07/Jul/19  Updated: 14/Jul/19  Resolved: 08/Jul/19

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

Type: Bug Priority: Major
Reporter: Mathias Eck Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

RAM Shard server

MYSQL db

Intel Xeon E5-1650v4 @ 3.60GHz CPU

NVMe SSDs in RAID 1

DDR4 ECC RAM

1Gbps Network Port


Attachments: JPEG File 20190714132815_1.jpg     Text File log.txt     Text File log.txt     Text File log.txt    
Version: 1.14.3 (latest)
Plugin: Only spigot 1.14.3 without any additional plugins
Guidelines Read: Yes

 Description   

When opening a chest under water, the game connection will time out and crash.

My guess is, that there is something in the chest, because the chest can't be opened.

 

Server thread/FATAL Error executing task on Server 07.07 10:41:44 [Server] INFO java.util.NoSuchElementException: null 07.07 10:41:44 [Server] INFO at org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet.removeFirstLong(LongLinkedOpenHashSet.java:470) ~[Spigot_Latest_1.14.3.jar:git-Spigot-4d2f30f-f1f3355] 07.07 10:41:44 [Server] INFO at net.minecraft.server.v1_14_R1.LightEngineGraph.b(SourceFile:190) ~[Spigot_Latest_1.14.3.jar:git-Spigot-4d2f30f-f1f3355]



 Comments   
Comment by Keith Armstrong [ 14/Jul/19 ]

I retried it again as well and got a different error message this time. It looks like both of our crashes occur in the fastutil.longs package.

Also, I found another abandoned ship that was underwater on my server, and the chest opened without crashing oddly enough?

 log.txt

Comment by Mathias Eck [ 14/Jul/19 ]

I just tried it again.

Here is the Seed ID:
-9007893997242310891

And the coordinates are:

-204, 49, 385

The chest is under water in a sunken ship.

Comment by Keith Armstrong [ 14/Jul/19 ]

I just experienced the same issue on my server and found this bug report by searching for "LongLinkedOpenHashSet.removeFirstLong chest" on google.

I found an abandoned ship that was partially buried in the beach/ocean. I dug out the sand/sandstone and when I try to open or destroy the chest (below sea level), the server crashes. Other chests that players in my world have created are able to be opened as well as world-generated chests that are in villages. Also, there is an underwater ruin next to the abandoned ship that has a chest that can be opened without crashing the server.

 

Seed: 2641382322690549427

Chest coords: -173 53 -200

 

When I attempted to recreate this bug by making a fresh Spigot server with the level seed and tp-ing to the location, the chest took a good 3 seconds from right clicking on the chest, to the chest contents screen appearing, but the server did not crash.

 

Also it may be related, but a half hour before I opened the chest, my server crashed while saving and gave me a "Failed to save chunk 0,-2" error. As far as I could tell everything looked like it was still in place. Also everything worked for the next half hour until the abandoned ship chest incident.

log.txt

Generated at Mon Dec 15 03:33:13 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.