GrimAnticheat / Grim

Fully async, multithreaded, predictive, open source, 3.01 reach, 1.005 timer, 0.01% speed, 99.99% antikb, "bypassable" 1.8-1.20 anticheat.
GNU General Public License v3.0
1.08k stars 317 forks source link

Folia region errors, with a fake reach exploit to PR nocom into grim #1143

Open 3vaporate opened 1 year ago

3vaporate commented 1 year ago

Stack trace

[10:03:46 WARN]: [GrimAC] Entity task for GrimAC v2.3.45 generated an exception
java.lang.IllegalStateException: Cannot read world asynchronously
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:58) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at org.bukkit.craftbukkit.v1_19_R3.block.CraftBlock.getNMS(CraftBlock.java:86) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at org.bukkit.craftbukkit.v1_19_R3.block.CraftBlock.getBlockData(CraftBlock.java:181) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at ac.grim.grimac.events.packets.patch.ResyncWorldUtil.lambda$resyncPositions$2(ResyncWorldUtil.java:100) ~[grimac-2.3.44.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler.lambda$wrap$0(FoliaEntityScheduler.java:32) ~[folia-1.19.4.jar:?]
        at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:173) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1527) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:361) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:385) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]

How to replicate it if known

Not known, #1131 seems to fix this.

Grim version

eed2a82

Server version

Folia (1.19.4)

Plugins

WorldEdit, WorldGuard, LPX, LuckPerms, and of course Grim.

3vaporate commented 1 year ago

Its worth noting that people were complaining that they were randomly getting hit, and when that complaining was going on, these errors were getting spammed. I'm now using a self-built Grim jar of a PR and this issue no longer happens.

MWHunter commented 1 year ago

This error is possible if the user teleports across regions the tick they place a block