[SPIGOT-7923] Empty stacks are not allowed Created: 23/Oct/24  Updated: 25/Dec/24  Resolved: 25/Oct/24

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

Type: Bug Priority: Minor
Reporter: tty000 Assignee: Doc
Resolution: Fixed Votes: 1
Labels: None
Environment:

– Head –
Thread: Render thread
Stacktrace:
at lo.<init>(SourceFile:29)
at cqy.b(SourceFile:39)
 
– Incoming Packet –
Details:
Type: clientbound/minecraft:entity_event
Is Terminal: false
Is Skippable: false
Stacktrace:
at aaf.a(SourceFile:56)
at gfg.a(SourceFile:131)
at gfg.a(SourceFile:110)
at aaf.a(SourceFile:32)
at brx.d(SourceFile:164)
at bsb.d(SourceFile:23)
at brx.B(SourceFile:138)
at brx.bA(SourceFile:123)
at fmf.c(SourceFile:1307)
at fmf.f(SourceFile:933)
at net.minecraft.client.main.Main.main(SourceFile:265)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at oolloo.jlw.Wrapper.invokeMain(Wrapper.java:110)
at oolloo.jlw.Wrapper.main(Wrapper.java:103)
 
– Connection –
Details:
Protocol: play
Flow: CLIENTBOUND
Is Local: false
Server type: OTHER
Server brand: Spigot
 
– System Details –
Details:
Minecraft Version: 1.21.2
Minecraft Version ID: 1.21.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 21.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 327485296 bytes (312 MiB) / 687865856 bytes (656 MiB) up to 4294967296 bytes (4096 MiB)
CPUs: 8
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz
Identifier: Intel64 Family 6 Model 165 Stepping 3
Microarchitecture: Comet Lake
Frequency (GHz): 3.70
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 8
Graphics card #0 name: Intel(R) UHD Graphics 630
Graphics card #0 vendor: Intel Corporation
Graphics card #0 VRAM (MiB): 1024.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 31.0.101.2111
Memory slot #0 capacity (MiB): 16384.00
Memory slot #0 clockSpeed (GHz): 2.67
Memory slot #0 type: DDR4
Virtual memory max (MiB): 40741.47
Virtual memory used (MiB): 34268.88
Swap memory total (MiB): 24576.00
Swap memory used (MiB): 3168.86
Space in storage for jna.tmpdir (MiB): available: 419532.44, total: 476681.00
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 419532.44, total: 476681.00
Space in storage for io.netty.native.workdir (MiB): available: 419532.44, total: 476681.00
Space in storage for java.io.tmpdir (MiB): available: 9576.82, total: 102402.00
Space in storage for workdir (MiB): available: 419532.44, total: 476681.00
JVM Flags: 6 total; -XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmn614m -Xmx4096m


Attachments: Text File disconnect-2024-10-24_21.32.24-client.txt     File r.-1.-1.mca     File r.-1.-2.mca     File server.properties     File world.7z    
Version: 1.21.2
Guidelines Read: Yes

 Description   

The server has been updated from version 1.21 to 1.21.2.

The player may get disconnected at a certain point when near a structure involving villagers, minecarts, or boats.
The following is the error log:
---- Minecraft Network Protocol Error Report ----
// Wait, was the last bit one or zero?
 
Time: 2024-10-23 15:51:23
Description: Packet handling error
 
java.lang.IllegalArgumentException: Empty stacks are not allowed
at lo.<init>(SourceFile:29)
at cqy.b(SourceFile:39)
at gfk.a(SourceFile:1137)
at adv.a(SourceFile:41)
at adv.a(SourceFile:13)
at aaf.a(SourceFile:27)
at brx.d(SourceFile:164)
at bsb.d(SourceFile:23)
at brx.B(SourceFile:138)
at brx.bA(SourceFile:123)
at fmf.c(SourceFile:1307)
at fmf.f(SourceFile:933)
at net.minecraft.client.main.Main.main(SourceFile:265)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at oolloo.jlw.Wrapper.invokeMain(Wrapper.java:110)
at oolloo.jlw.Wrapper.main(Wrapper.java:103)
 
 
A detailed walkthrough of the error, its code path and all known details is as follows:



 Comments   
Comment by tty000 [ 25/Oct/24 ]

The map was created in version 1.21, and there are no issues on that version. In fact, I don't think I ever upgraded to 1.21.1; maybe I should try upgrading to 1.21.1 first.  
I have never used any plugins or datapacks.  
The map has cuts because this world is a regenerated version where I moved parts of the original problematic world into this map. The original map was quite large, so I couldn't upload it directly, but if needed, I can provide a simplified version with other chunks removed.  
Finally, thanks for the reply! I can try clearing the eggs or the dispenser before upgrading.

Comment by Doc [ 24/Oct/24 ]

I found how this happen its mostly related to projectiles and dispensers.

PR Created: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1495/overview

 

Comment by Doc [ 24/Oct/24 ]

Ok in that map i found a issue.. but need know:

  • In what version was created the map? and for what versions pass? (1.21 to 1.21.1 to 1.21.2?)
  • In any moment you use a mod/datapack in that map?
  • The map is the normal you use? i notice a few cuts in the world then not sure if maybe its more a map breaking rather than a spigot bug

Currently the issue are eggs fired by the dispenser by the chicken farm in that location i need check if the issue is the dispenser or just the eggs.

Comment by tty000 [ 24/Oct/24 ]

I conducted a more detailed test again and found that there may be an issue with the -1 and -1mca in the entity.
I directly created a new service from scratch using version 1.21.3, but when I added entity's -1, -1mca and region's -1, -1 at the same time, I would encounter problems if I stayed near that coordinate for a while.
I used the PCL2 launcher for testing, and previously someone on the server used the official Microsoft launcher, which caused us to encounter a problem.
Here are the main world files and error logs from my testing:

world.7z disconnect-2024-10-24_21.32.24-client.txt

Comment by Doc [ 24/Oct/24 ]

Can you provide a zip with the world, also you are using vanilllla client or a custom client? if you get kicked with a error the launcher tells you about a directory to get a file with detailed log.

Comment by md_5 [ 24/Oct/24 ]

No issues at that location with those chunks for me

Comment by tty000 [ 24/Oct/24 ]

Thank you for your reply.

I didn't use the plugin.

The bug will happend Near the -256 79 -433. Located in the main world. I've placed the relevant files below; is it okay to send the map this way?
server.properties

r.-1.-1.mca
r.-1.-2.mca

Comment by md_5 [ 23/Oct/24 ]

Are you using mods? Can you provide a copy of the map and coordinates?

Comment by Doc [ 23/Oct/24 ]

I cannot replicate this.

Can you provide the server.properties and the map? also you are using any plugin?

Generated at Tue Apr 15 11:10:15 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.