r4g3baby / SimpleScore

A simple animated scoreboard plugin for your minecraft server.
https://www.spigotmc.org/resources/simplescore.23243/
MIT License
68 stars 32 forks source link

Exception in thread "Craft Scheduler Thread - 3" #73

Open josealissonbr opened 7 months ago

josealissonbr commented 7 months ago

Plugin Version

v3.12.5

Server Version

Spigot 1.8.8

Describe the Bug

I didn't find a reason for the exception, but out of nowhere I get this in the console sometimes.

Relevant Log Output

[04:14:54 WARN]: Exception in thread "Craft Scheduler Thread - 3" 
[04:14:54 WARN]: org.apache.commons.lang.UnhandledException: Plugin SimpleScore v3.12.5 generated an exception while executing task 96
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
        at org.github.paperspigot.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:23)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:911)
        at java.util.ArrayList$Itr.next(ArrayList.java:861)
        at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getPlayers(CraftWorld.java:755)
        at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:23)
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
        ... 4 more