dniym / IllegalStack

A spigot based plugin dedicated to fixing glitches and exploits that have made it into final Minecraft releases.
GNU General Public License v3.0
129 stars 34 forks source link

IllegalStack using Folia Async on Paper 1.20.1? Causing errors at shutdown/restart #171

Closed veteranmina closed 10 months ago

veteranmina commented 12 months ago

Required Information

Describe the bug Upon shutdown/restart of server console spam occurs from IllegalStack preventing server on task.

To Reproduce Steps to reproduce the behavior:

  1. Turn on server
  2. Run either shutdown or restart of server, logs are then flooded with IllegalStack errors below:
[22:00:21] [Folia Async Scheduler Thread #5/WARN]: [IllegalStack] Async task for IllegalStack v2.9.2 generated an exception
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
    at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler.runDelayed(FoliaEntityScheduler.java:64) ~[paper-1.20.1.jar:?]
    at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler.run(FoliaEntityScheduler.java:51) ~[paper-1.20.1.jar:?]
    at main.java.me.dniym.utils.Scheduler.executeOrScheduleSync(Scheduler.java:71) ~[IllegalStack-2.9.2a.jar:?]
    at main.java.me.dniym.timers.fTimer.run(fTimer.java:265) ~[IllegalStack-2.9.2a.jar:?]
    at main.java.me.dniym.utils.Scheduler.lambda$runTaskTimerAsynchronously$14(Scheduler.java:215) ~[IllegalStack-2.9.2a.jar:?]
    at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[paper-1.20.1.jar:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

Plugins being used on the server image

Checklist:

veteranmina commented 12 months ago

I noticed the log shows 2.9.2, however before posting this I saw version 2.9.4 was out however it also produced the same error.

dniym commented 10 months ago

Should be fixed as of IllegalStack version 2.9.8