Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bukkitWorldRef is null #4442

Closed
2 tasks done
1470429149 opened this issue Jun 3, 2024 · 1 comment · Fixed by #4443
Closed
2 tasks done

bukkitWorldRef is null #4442

1470429149 opened this issue Jun 3, 2024 · 1 comment · Fixed by #4443
Labels
Requires Testing This is a new issue which needs to be approved before labeled with "bug"

Comments

@1470429149
Copy link

Server Implementation

Paper

Server Version

1.20.4

Describe the bug

[09:16:41 ERROR]: Could not pass event PlayerNaturallySpawnCreaturesEvent to PlotSquared v7.3.9-SNAPSHOT
java.lang.NullPointerException: Cannot invoke "java.lang.ref.WeakReference.get()" because "bukkitWorldRef" is null
        at com.plotsquared.bukkit.util.BukkitWorld.of(BukkitWorld.java:78) ~[plotsquared-bukkit-7.3.9-SNAPSHOT.jar:?]
        at com.plotsquared.bukkit.util.BukkitUtil.adapt(BukkitUtil.java:136) ~[plotsquared-bukkit-7.3.9-SNAPSHOT.jar:?]
        at com.plotsquared.bukkit.listener.PaperListener.onPlayerNaturallySpawnCreaturesEvent(PaperListener.java:271) ~[plotsquared-bukkit-7.3.9-SNAPSHOT.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor95.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:git-Paper-496]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.4.jar:git-Paper-496]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.4.jar:git-Paper-496]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:567) ~[?:?]
        at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:488) ~[?:?]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:868) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1724) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1525) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-496]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[09:16:41 ERROR]: Could not pass event PlayerNaturallySpawnCreaturesEvent to PlotSquared v7.3.9-SNAPSHOT
java.lang.NullPointerException: Cannot invoke "java.lang.ref.WeakReference.get()" because "bukkitWorldRef" is null
        at com.plotsquared.bukkit.util.BukkitWorld.of(BukkitWorld.java:78) ~[plotsquared-bukkit-7.3.9-SNAPSHOT.jar:?]
        at com.plotsquared.bukkit.util.BukkitUtil.adapt(BukkitUtil.java:136) ~[plotsquared-bukkit-7.3.9-SNAPSHOT.jar:?]
        at com.plotsquared.bukkit.listener.PaperListener.onPlayerNaturallySpawnCreaturesEvent(PaperListener.java:271) ~[plotsquared-bukkit-7.3.9-SNAPSHOT.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor95.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:git-Paper-496]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.4.jar:git-Paper-496]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.4.jar:git-Paper-496]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:567) ~[?:?]
        at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:488) ~[?:?]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:868) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1724) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1525) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226) ~[paper-1.20.4.jar:git-Paper-496]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-496]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]

To Reproduce

on join server

Expected behaviour

null

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

null

PlotSquared Version

PlotSquared-7.3.9-SNAPSHOT

Checklist

Anything else?

No response

@1470429149 1470429149 added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Jun 3, 2024
@1470429149
Copy link
Author

1470429149 commented Jun 3, 2024

#4435 #4439
Although the memory leak problem has been optimized, new problems have emerged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Testing This is a new issue which needs to be approved before labeled with "bug"
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant