[SPIGOT-7580] ConcurrentModificationException on GoalSelector#tick Created: 05/Feb/24  Updated: 25/Dec/24  Resolved: 05/Feb/24

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

Type: Bug Priority: Minor
Reporter: Marvin Klar Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: bug, entity, error, spigot

Version: 1.17.1
Guidelines Read: Yes

 Description   

I got the following Exception on my Server:

```
[01:13:16] [Server thread/ERROR]: Entity threw exception at world:-804.5000776586575,46.9375,-232.63654721077813
java.util.ConcurrentModificationException: null
    at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:756) ~[?:?]
    at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:778) ~[?:?]
    at net.minecraft.world.entity.ai.goal.GoalSelector.tick(GoalSelector.java:85) ~[app:?]
    at net.minecraft.world.entity.Mob.serverAiStep(Mob.java:841) ~[app:?]
    at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3189) ~[app:?]
    at net.minecraft.world.entity.Mob.aiStep(Mob.java:625) ~[app:?]
    at net.minecraft.world.entity.AgeableMob.aiStep(AgeableMob.java:154) ~[app:?]
    at net.minecraft.world.entity.animal.Animal.aiStep(Animal.java:59) ~[app:?]
    at net.minecraft.world.entity.animal.Wolf.aiStep(Wolf.java:193) ~[app:?]
    at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2915) ~[app:?]
    at net.minecraft.world.entity.Mob.tick(Mob.java:393) ~[app:?]
    at net.minecraft.world.entity.animal.Wolf.tick(Wolf.java:209) ~[app:?]
    at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1120) ~[app:?]
    at net.minecraft.world.level.Level.guardEntityTick(Level.java:977) ~[app:?]
    at net.minecraft.server.level.ServerLevel.lambda$tick$7(ServerLevel.java:775) ~[app:?]
    at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:756) ~[app:?]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1627) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-411]
    at java.lang.Thread.run(Thread.java:840) ~[?:?]
```



 Comments   
Comment by md_5 [ 05/Feb/24 ]

Not a spigot server

Generated at Tue Apr 08 03:01:13 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.