Skip to content

ChunkUnloadEvent spam #4824

@bobhenl

Description

@bobhenl

Server Implementation

Paper

Server Version

1.21.11

Describe the bug

Hello, my console is spamming ChunkUnloadEvent, out of nowhere, I previously tried regenerate these roads, but I restarted server since it, not it just spams.

15:53:39 ERROR]: Could not pass event ChunkUnloadEvent to PlotSquared v7.5.10-SNAPSHOT
java.lang.NullPointerException: Cannot invoke "com.plotsquared.core.util.ReflectionUtils$RefMethod.of(Object)" because "this.methodGetHandleChunk" is null
        at plotsquared-bukkit-7.5.10-SNAPSHOT.jar//com.plotsquared.bukkit.listener.ChunkListener.unloadChunk(ChunkListener.java:179) ~[?:?]
        at plotsquared-bukkit-7.5.10-SNAPSHOT.jar//com.plotsquared.bukkit.listener.ChunkListener.onChunkUnload(ChunkListener.java:249) ~[?:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:71) ~[paper-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.world.level.chunk.LevelChunk.unloadCallback(LevelChunk.java:684) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at ca.spottedleaf.moonrise.paper.util.BaseChunkSystemHooks.onChunkNotBorder(BaseChunkSystemHooks.java:101) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at ca.spottedleaf.moonrise.patches.chunk_system.scheduling.NewChunkHolder.handleFullStatusChange(NewChunkHolder.java:1287) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at ca.spottedleaf.moonrise.patches.chunk_system.scheduling.ChunkHolderManager.processPendingFullUpdate(ChunkHolderManager.java:1489) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at ca.spottedleaf.moonrise.patches.chunk_system.scheduling.ChunkHolderManager.processTicketUpdates(ChunkHolderManager.java:1449) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at ca.spottedleaf.moonrise.patches.chunk_system.scheduling.ChunkHolderManager.tick(ChunkHolderManager.java:909) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.world.level.TicketStorage.purgeStaleTickets(TicketStorage.java:259) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:481) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:809) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1824) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1616) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:427) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1672) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1340) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:388) ~[paper-1.21.11.jar:1.21.11-100-4873e3f]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

To Reproduce

  1. Not really sure, I think it's after I used that /plot regenallroads OR deleting the world region folder to delete chunks. Then it loaded without problems, but after a while it started spamming this.

Expected behaviour

No errors?

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/6881254477b14db99e7cebcca07e0eba

PlotSquared Version

7.5.10-SNAPSHOT

Checklist

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Requires TestingThis is a new issue which needs to be approved before labeled with "bug"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions