PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
52 stars 21 forks source link

BUG - Could not pass event ERROR could not pass block place event #1259

Closed EchocallingEarth closed 2 years ago

EchocallingEarth commented 2 years ago

Terms

Discord tag (optional)

EchocallingEarth#0001

What happened?

Unknown Cause As you can see there is extremely little useful information for me to provide.

Steps to reproduce the issue

Unsure how to reproduce as no chat errors just console side

Server version

06:34:58 INFO: CMI: 9.0.5.0 SqLite 06:34:58 INFO: CMILib: 1.0.3.11 06:34:58 INFO: Server: Purpur 1.17.1-R0.1-SNAPSHOT 06:34:58 INFO: CMI economy: Enabled Vault: 1.7.3-b CMI Chat: Enabled 06:34:58 INFO: Modules -> 55 enabled 1 disabled: votifier

ItemsAdder Version

v2.4.19b

ProtocolLib Version

4.7.0

LoneLibs Version

1.0.15

LightAPI Version (optional)

NA - As it is disabled till Lighting issues are resolved

LibsDisguises Version (optional)

10.0.26 snapshot

FULL server log

https://pastebin.com/LAzAM9QY

Error (optional)

[01:44:35] [Server thread/ERROR]: Could not pass event a to ItemsAdder v2.4.19b
java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.MinecraftKey.getNamespace()" because "minecraft" is null
    at org.bukkit.craftbukkit.v1_17_R1.util.CraftNamespacedKey.fromMinecraft(CraftNamespacedKey.java:24) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.biomeBaseToBiome(CraftBlock.java:348) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.CraftRegionAccessor.getBiome(CraftRegionAccessor.java:202) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.getBiome(CraftBlock.java:335) ~[patched_1.17.1.jar:git-Purpur-1407]
    at dev.lone.itemsadder.Core.h.a.e(SourceFile:138) ~[ItemsAdder.jar:?]
    at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[patched_1.17.1.jar:git-Purpur-1407]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[patched_1.17.1.jar:git-Purpur-1407]
    at dev.lone.itemsadder.Core.f.a.b.b.a.a.c(SourceFile:234) ~[ItemsAdder.jar:?]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1583) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:528) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1499) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1292) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Purpur-1407]
    at java.lang.Thread.run(Thread.java:831) ~[?:?]
[01:44:39] [Server thread/ERROR]: Could not pass event BlockBreakEvent to ItemsAdder v2.4.19b
java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.MinecraftKey.getNamespace()" because "minecraft" is null
    at org.bukkit.craftbukkit.v1_17_R1.util.CraftNamespacedKey.fromMinecraft(CraftNamespacedKey.java:24) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.biomeBaseToBiome(CraftBlock.java:348) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.CraftRegionAccessor.getBiome(CraftRegionAccessor.java:202) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.getBiome(CraftBlock.java:335) ~[patched_1.17.1.jar:git-Purpur-1407]
    at dev.lone.itemsadder.Core.h.a.h(SourceFile:94) ~[ItemsAdder.jar:?]
    at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[patched_1.17.1.jar:git-Purpur-1407]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.level.ServerPlayerGameMode.destroyBlock(ServerPlayerGameMode.java:402) ~[app:?]
    at net.minecraft.server.level.ServerPlayerGameMode.destroyAndAck(ServerPlayerGameMode.java:356) ~[app:?]
    at net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:316) ~[app:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1806) ~[app:?]
    at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:34) ~[app:?]
    at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:8) ~[app:?]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[app:?]
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1442) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.shouldRun(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1420) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1413) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:132) ~[app:?]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1391) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1302) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Purpur-1407]
    at java.lang.Thread.run(Thread.java:831) ~[?:?]
[01:44:40] [Server thread/ERROR]: Could not pass event BlockBreakEvent to ItemsAdder v2.4.19b
java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.MinecraftKey.getNamespace()" because "minecraft" is null
    at org.bukkit.craftbukkit.v1_17_R1.util.CraftNamespacedKey.fromMinecraft(CraftNamespacedKey.java:24) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.biomeBaseToBiome(CraftBlock.java:348) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.CraftRegionAccessor.getBiome(CraftRegionAccessor.java:202) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.getBiome(CraftBlock.java:335) ~[patched_1.17.1.jar:git-Purpur-1407]
    at dev.lone.itemsadder.Core.h.a.h(SourceFile:94) ~[ItemsAdder.jar:?]
    at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[patched_1.17.1.jar:git-Purpur-1407]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Purpur-1407]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.level.ServerPlayerGameMode.destroyBlock(ServerPlayerGameMode.java:402) ~[app:?]
    at net.minecraft.server.level.ServerPlayerGameMode.destroyAndAck(ServerPlayerGameMode.java:356) ~[app:?]
    at net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:316) ~[app:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1806) ~[app:?]
    at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:34) ~[app:?]
    at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:8) ~[app:?]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[app:?]
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1442) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.shouldRun(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1420) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1413) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:110) ~[app:?]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1552) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1292) ~[patched_1.17.1.jar:git-Purpur-1407]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Purpur-1407]
    at java.lang.Thread.run(Thread.java:831) ~[?:?]

Configurations

metrics: true update-checker: true disable-plugin-loading-messages_DONT_ASK_ME_FOR_SUPPORT_IF_YOU_SET_TRUETHANKS: false resource-pack: hosting: no-host: enabled: false auto-external-host: enabled: true self-host: enabled: false server-ip: 65.101.47.170 pack-port: 8192 external-host: enabled: false url: https://www.dropbox.com/s/glbz67da1j57qbv/packv1.zip?dl=1 apply-on-join: true kick-player-on-decline: false kick-player-on-fail: false delay-ticks: 1 notify-other-plugins-interfering: true title: enabled: true protect-player: black-screen: false hide-hud: false custom-font: enabled: false name: ipaexg.ttf shift: '[0,0]' size: 11.0 oversample: 2.0 thin-font: enabled: false zip: fix_transparent_noteblocksdisable-for-more-performance: false ignore-files-ext:

Screenshots/Videos

NA

EchocallingEarth commented 2 years ago

Possible relation to FAWE however additional tests have not confirmed this. As during heavy testing, the error only should 2 times out of 100 tests. and a new error showed about 10 times. And it also did not occur every time.

This is the additional error noted. EchocallingEarth issued server command: //paste [09:59:02 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:09 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:14 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:21 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:25 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:27 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:34 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:39 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null [09:59:48 ERROR]: Could not pass event EntityDeathEvent to ItemsAdder v2.4.19b java.lang.NullPointerException: null

EchocallingEarth commented 2 years ago

Edit to above comment - Can not confirm the cause as after a full day of testing I was unable to confirm related to FAWE. As the issue occurred at random not just when using FAWE.

Therefore I will have to leave this as still NO CLUE what is causing the Bug

LoneDev6 commented 2 years ago

You probably have an unstable datapack which adds custom biomes or you're running a old version of Spigot or an unstable fork. Let me know.

(next time please send configurations and texts as a file, don't paste the text here, it's hard to read. Thanks