hpfxd / PandaSpigot

Fork of Paper for 1.8.8 focused on improved performance and stability.
GNU General Public License v3.0
261 stars 68 forks source link

Crash every so often: Exception ticking world entities #211

Open MeowRay opened 4 months ago

MeowRay commented 4 months ago

I upgraded from spigot 1.8.8 to pandaspigot and now the server crashes every hour or so. on spigot everything is fine, pandaspigot.yml and paper.yml are defaults

which behaviours are more likely to cause crashes on pandaspigot than spigot?

log file

[13:48:54] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.server.v1_8_R3.ReportedException: Exception ticking world entities
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:981) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.util.NoSuchElementException
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    ... 5 more
[13:48:54] [Server thread/ERROR]:   Cause of unexpected exception was
java.util.NoSuchElementException: null
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at java.lang.Thread.run(Thread.java:1583) [?:?]

crash file

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 2024/7/9 13:48
Description: Exception ticking world entities

java.util.NoSuchElementException
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970)
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412)
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818)
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641)
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126)
    at java.base/java.lang.Thread.run(Thread.java:1583)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)

-- Affected level --
Details:
    Level name: world
    All players: 22 total; [EntityPlayer['KmmasggThe_non'/3811, l='world', x=9.07, y=107.00, z=2.90](KmmasggThe_non at 9.065021546612533,107.0,2.898150964763369), EntityPlayer['ILoveYooToo_'/5455, l='world', x=-1.16, y=108.00, z=-2.20](ILoveYooToo_ at -1.1642179462995048,108.0,-2.201648366055871), EntityPlayer['Bao_L_'/23407, l='world', x=0.00, y=108.00, z=0.00](Bao_L_ at 0.0,108.0,0.0), EntityPlayer['zzn110324'/26729, l='world', x=0.00, y=108.00, z=0.00](zzn110324 at 0.0,108.0,0.0), EntityPlayer['skbbo'/27281, l='world', x=37.47, y=103.00, z=2.34](skbbo at 37.47414032614304,103.0,2.3444684372617832), EntityPlayer['Your_frien_d'/28571, l='world', x=10.50, y=107.00, z=-3.39](Your_frien_d at 10.498976049453248,107.0,-3.3861910966528717), EntityPlayer['LAOYUN03'/15806, l='world', x=67.57, y=96.00, z=30.07](LAOYUN03 at 67.57253807410206,96.0,30.072636977529704), EntityPlayer['MyFirstLove'/28947, l='world', x=49.23, y=96.00, z=25.31](MyFirstLove at 49.229979930647495,96.0,25.30509354915185), EntityPlayer['TwillightCat'/26868, l='world', x=27.57, y=95.00, z=25.91](TwillightCat at 27.569314084658803,95.0,25.91331615170409), EntityPlayer['joking_life'/27009, l='world', x=69.15, y=96.00, z=28.63](joking_life at 69.14535859364486,96.0,28.634738842539353), EntityPlayer['RainArcher'/17009, l='world', x=70.44, y=96.00, z=-2.45](RainArcher at 70.44019307117304,96.0,-2.453390298695871), EntityPlayer['Pupil_Less'/16853, l='world', x=65.93, y=97.25, z=-14.67](Pupil_Less at 65.93482579667881,97.24918707874468,-14.668727465668145), EntityPlayer['OP_FUKO'/29718, l='world', x=12.81, y=107.00, z=6.21](OP_FUKO at 12.813514633128808,107.0,6.209928696233193), EntityPlayer['_PuppetCat'/22481, l='world', x=27.87, y=95.12, z=19.69](_PuppetCat at 27.869319350431827,95.1212968405392,19.6908126336787), EntityPlayer['adasdasjda'/30307, l='world', x=54.23, y=96.36, z=27.36](adasdasjda at 54.22840025071557,96.36075,27.355135595004242), EntityPlayer['dullbird'/15808, l='world', x=11.34, y=88.65, z=-0.27](dullbird at 11.335497690181619,88.65161050663136,-0.2693725144532005), EntityPlayer['xiaohaier520_'/14099, l='world', x=10.45, y=28.00, z=-0.57](xiaohaier520_ at 10.44519072741596,28.0,-0.5664009027857986), EntityPlayer['52325'/15859, l='world', x=24.70, y=96.00, z=-6.18](52325 at 24.69999998807907,96.0,-6.18180644800902), EntityPlayer['awdglkj'/21875, l='world', x=16.68, y=98.00, z=0.16](awdglkj at 16.678900209970532,98.0,0.15801152079183373), EntityPlayer['xck_xck'/6997, l='world', x=15.89, y=106.41, z=0.38](xck_xck at 15.893884931082585,106.40739540236494,0.3786034935296573), EntityPlayer['DeferentPine578'/23301, l='world', x=9.99, y=107.00, z=-3.09](DeferentPine578 at 9.993712215637455,107.0,-3.0919006405927405), EntityPlayer['MissChick'/26797, l='world', x=3.20, y=108.00, z=-0.70](MissChick at 3.196819175978076,108.0,-0.6975497039461258)]
    Chunk stats: ServerChunkCache: 625 Drop: 309
    Level seed: -2553036791068859462
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options: 3;minecraft:air;1;village
    Level spawn location: -1.00,108.00,-2.00 - World: (-1,108,-2), Chunk: (at 15,6,14 in -1,-1; contains blocks -16,0,-16 to -1,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 895267842 game time, 1000 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 36386 (now: false), thunder time: 38312 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970)
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412)
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818)
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641)
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126)
    at java.base/java.lang.Thread.run(Thread.java:1583)

-- System Details --
Details:
    Minecraft Version: 1.8.8
    Operating System: Linux (amd64) version 4.18.0-305.12.1.el8_4.x86_64
    Java Version: 21.0.3, BellSoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), BellSoft
    Memory: 2986552680 bytes (2848 MB) / 4294967296 bytes (4096 MB) up to 8589934592 bytes (8192 MB)
    JVM Flags: 20 total; -Xmx8G -Xms4G -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    CraftBukkit Information: 
   Running: PandaSpigot version git-PandaSpigot-"f2013ee" (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT) false
caelandev commented 4 months ago

there might be a issue when entities are being iterated or activated its just a panda spigot performance feature where entities are actively being processed to reduce server load

MeowRay commented 4 months ago

there might be a issue when entities are being iterated or activated its just a panda spigot performance feature where entities are actively being processed to reduce server load

Is it possible to add the option to disable relevant entity optimisations for compatibility and stability?

iamnoksio commented 4 months ago

public class NoSuchElementException extends RuntimeException Thrown by various accessor methods to indicate that the element being requested does not exist.

[13:48:54] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.server.v1_8_R3.ReportedException: Exception ticking world entities
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:981) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.util.NoSuchElementException
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  ... 5 more
[13:48:54] [Server thread/ERROR]:     Cause of unexpected exception was
java.util.NoSuchElementException: null
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at java.lang.Thread.run(Thread.java:1583) [?:?]

crash file

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 2024/7/9 13:48
Description: Exception ticking world entities

java.util.NoSuchElementException
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970)
  at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412)
  at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818)
  at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641)
  at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126)
  at java.base/java.lang.Thread.run(Thread.java:1583)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)

You're also running java 21 which is not the java version PandaSpigot has been compiled to, and can lead to errors like that

MeowRay commented 4 months ago

public class NoSuchElementException extends RuntimeException Thrown by various accessor methods to indicate that the element being requested does not exist.

[13:48:54] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.server.v1_8_R3.ReportedException: Exception ticking world entities
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:981) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.util.NoSuchElementException
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    ... 5 more
[13:48:54] [Server thread/ERROR]:   Cause of unexpected exception was
java.util.NoSuchElementException: null
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
    at java.lang.Thread.run(Thread.java:1583) [?:?]

crash file

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 2024/7/9 13:48
Description: Exception ticking world entities

java.util.NoSuchElementException
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970)
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412)
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818)
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641)
    at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126)
    at java.base/java.lang.Thread.run(Thread.java:1583)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
    at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
    at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
    at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
    at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)

You're also running java 21 which is not the java version PandaSpigot has been compiled to, and can lead to errors like that

I tried java17 and it still crashes

iamnoksio commented 4 months ago

public class NoSuchElementException extends RuntimeException Thrown by various accessor methods to indicate that the element being requested does not exist.

[13:48:54] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.server.v1_8_R3.ReportedException: Exception ticking world entities
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:981) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.util.NoSuchElementException
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  ... 5 more
[13:48:54] [Server thread/ERROR]:     Cause of unexpected exception was
java.util.NoSuchElementException: null
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126) ~[PandaSpigot-1.8.8.jar:git-PandaSpigot-"f2013ee"]
  at java.lang.Thread.run(Thread.java:1583) [?:?]

crash file

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 2024/7/9 13:48
Description: Exception ticking world entities

java.util.NoSuchElementException
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)
  at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:970)
  at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:412)
  at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:818)
  at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:641)
  at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$spin$0(MinecraftServer.java:126)
  at java.base/java.lang.Thread.run(Thread.java:1583)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
  at org.bukkit.craftbukkit.v1_8_R3.util.UnsafeList$Itr.next(UnsafeList.java:248)
  at org.spigotmc.ActivationRange.activateChunkEntities(ActivationRange.java:153)
  at org.spigotmc.ActivationRange.activateEntities(ActivationRange.java:135)
  at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1550)
  at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:602)

You're also running java 21 which is not the java version PandaSpigot has been compiled to, and can lead to errors like that

I tried java17 and it still crashes

show the logs w java 17