ProtocolLib

3M Downloads

ProtocolLib4. 7.0 latest version unlimited reporting error

luoxiawuchen opened this issue · 0 comments

commented

Describe the bug
(I'm sorry my English is not good)
From protocollib4 6.0 + working with mythicmobs and NPC plug-ins
(for example, citizens2, adyeshach, etc.)will generate a large number of error reports,
But protocollib4 Version 5.1 does not have this problem.

To Reproduce
Steps to reproduce the behavior:

  1. Install (citizens2 or adyeshach) and mythicmobs, and ProtocolLib4.7.0
  2. Open the server
  3. Set NPC to roam or view players (or let players die directly)
  4. Unlimited reporting of errors in the background
  5. https://github.com/TabooLib/Adyeshach/actions (Adyeshach download)

Expected behavior
Unlimited reporting of errors in the background.

Screenshots
If applicable, add screenshots to help explain your problem.

Version Info
Provide your ProtocolLib install info with /protocol dump through pastebin.
ProtocolLib Dump
Timestamp: 01/04/22 15:34:18

ProtocolLib Version: ProtocolLib v4.7.0
Bukkit Version: 1.16.5-R0.1-SNAPSHOT
Server Version: 1.16.5-904 (MC: 1.16.5)
Java Version: 11.0.11

ProtocolLib: com.comphenix.protocol.ProtocolLib@5b6158a1[
statistics=com.comphenix.protocol.metrics.Statistics@38d90519
backgroundCompiler=com.comphenix.protocol.reflect.compiler.BackgroundCompiler@440477da
packetTask=3
tickCounter=27833
unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@433662f2
configExpectedMod=1
updater=com.comphenix.protocol.updater.SpigotUpdater@12439e65
redirectHandler=com.comphenix.protocol.ProtocolLib$2@6242b0f9
commandProtocol=com.comphenix.protocol.CommandProtocol@51fa1cc
commandPacket=com.comphenix.protocol.CommandPacket@75ce626f
commandFilter=com.comphenix.protocol.CommandFilter@7bf06a05
packetLogging=com.comphenix.protocol.PacketLogging@c42c8fa
skipDisable=false
isEnabled=true
loader=org.bukkit.plugin.java.JavaPluginLoader@742b097f
server=CraftServer{serverName=Mohist,serverVersion=1.16.5-904,minecraftVersion=1.16.5}
file=plugins\ProtocolLib4.7.0.jar
description=org.bukkit.plugin.PluginDescriptionFile@a282c96
dataFolder=plugins\ProtocolLib
classLoader=org.bukkit.plugin.java.PluginClassLoader@29c2af9f
naggable=true
newConfig=YamlConfiguration[path='', root='YamlConfiguration']
configFile=plugins\ProtocolLib\config.yml
logger=org.bukkit.plugin.PluginLogger@3c7bb3a9
]
Manager: com.comphenix.protocol.injector.PacketFilterManager@487b7801[
unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@433662f2
packetListeners=[PacketAdapter[plugin=MythicMobs, sending=ListeningWhitelist[priority=NORMAL, packets=[REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42], ENTITY_LOOK[class=PacketPlayOutEntityLook, id=43]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], com.gmail.berndivader.mythicmobsext.compatibility.protocollib.PacketReader@193fea1a]
packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@3fcb104
playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@2ae3afe2
inputBufferedPackets=[]
recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@4b64a7ec
sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@58cc75f1
hasClosed=false
classLoader=org.bukkit.plugin.java.PluginClassLoader@29c2af9f
reporter=com.comphenix.protocol.ProtocolLib$1@3e5e8b7d
server=CraftServer{serverName=Mohist,serverVersion=1.16.5-904,minecraftVersion=1.16.5}
library=ProtocolLib v4.7.0
asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@975afeb
knowsServerPackets=true
knowsClientPackets=true
phaseLoginCount=1
phasePlayingCount=2
packetCreation=false
nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@32f93241
pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@5448b1a2
hasRecycleDistance=true
minecraftVersion=(MC: 1.16.5)
debug=false
]

Listeners:
io.lumine.xikage.mythicmobs.utils.events.functional.protocol.ProtocolListener@58f2e707[
types=[ENTITY_LOOK[class=PacketPlayOutEntityLook, id=43], REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42]]
exceptionConsumer=io.lumine.xikage.mythicmobs.utils.events.functional.SubscriptionBuilder$$Lambda$8326/0x0000000101e01440@4dc94351
filters={io.lumine.xikage.mythicmobs.compatibility.ProtocolLibSupport$$Lambda$8363/0x0000000101e01840@1e4a495a}
preExpiryTests={}
midExpiryTests={}
postExpiryTests={}
handlers={io.lumine.xikage.mythicmobs.utils.Delegates$ConsumerToBiConsumerSecond@fd9c8ca}
callCount=17532
active=true
plugin=MythicMobs v4.13.1-a7901084
connectionSide=SERVER_SIDE
receivingWhitelist=EMPTY_WHITELIST
sendingWhitelist=ListeningWhitelist[priority=NORMAL, packets=[REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42], ENTITY_LOOK[class=PacketPlayOutEntityLook, id=43]], gamephase=PLAYING, options=[]]
]
com.gmail.berndivader.mythicmobsext.compatibility.protocollib.PacketReader@193fea1a[
outgoing=ListeningWhitelist[priority=LOWEST, packets=[ENTITY_METADATA[class=PacketPlayOutEntityMetadata, id=77], UPDATE_HEALTH[class=PacketPlayOutUpdateHealth, id=82]], gamephase=BOTH, options=[]]
incoming=EMPTY_WHITELIST
]

Plugins Using ProtocolLib:
MythicMobsExtension by []
MythicMobs by [Lumine]

Additional context
[15:13:03 ERROR]: [MythicMobs] [EVENTS] Exception thrown whilst handling event: com.comphenix.protocol.events.PacketEvent
[15:13:03 WARN]: java.lang.RuntimeException: Cannot retrieve entity from ID.
[15:13:03 WARN]: at com.comphenix.protocol.wrappers.BukkitConverters$11.getSpecific(BukkitConverters.java:727)
[15:13:03 WARN]: at com.comphenix.protocol.wrappers.BukkitConverters$11.getSpecific(BukkitConverters.java:706)
[15:13:03 WARN]: at com.comphenix.protocol.reflect.StructureModifier.readInternal(StructureModifier.java:229)
[15:13:03 WARN]: at com.comphenix.protocol.reflect.StructureModifier.read(StructureModifier.java:197)
[15:13:03 WARN]: at io.lumine.xikage.mythicmobs.compatibility.ProtocolLibSupport.lambda$load$1(ProtocolLibSupport.java:28)
[15:13:03 WARN]: at io.lumine.xikage.mythicmobs.utils.Delegates$ConsumerToBiConsumerSecond.accept(Delegates.java:144)
[15:13:03 WARN]: at io.lumine.xikage.mythicmobs.utils.events.functional.protocol.ProtocolListener.onPacket(ProtocolListener.java:122)
[15:13:03 WARN]: at io.lumine.xikage.mythicmobs.utils.events.functional.protocol.ProtocolListener.onPacketSending(ProtocolListener.java:81)
[15:13:03 WARN]: at com.comphenix.protocol.injector.SortedPacketListenerList.invokeSendingListener(SortedPacketListenerList.java:195)
[15:13:03 WARN]: at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketSending(SortedPacketListenerList.java:149)
[15:13:03 WARN]: at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:535)
[15:13:03 WARN]: at com.comphenix.protocol.injector.PacketFilterManager.invokePacketSending(PacketFilterManager.java:516)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ProtocolInjector.packetQueued(ProtocolInjector.java:346)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ProtocolInjector.onPacketSending(ProtocolInjector.java:308)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ChannelInjector.processSending(ChannelInjector.java:433)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ChannelInjector.access$800(ChannelInjector.java:70)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ChannelInjector$3.handleScheduled(ChannelInjector.java:373)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ChannelInjector$3.onMessageScheduled(ChannelInjector.java:343)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.ChannelProxy$2.schedulingRunnable(ChannelProxy.java:127)
[15:13:03 WARN]: at com.comphenix.protocol.injector.netty.EventLoopProxy.execute(EventLoopProxy.java:95)
[15:13:03 WARN]: at net.minecraft.network.NetworkManager.func_150732_b(NetworkManager.java:207)
[15:13:03 WARN]: at net.minecraft.network.NetworkManager.func_201058_a(NetworkManager.java:179)
[15:13:03 WARN]: at net.minecraft.network.play.ServerPlayNetHandler.func_211148_a(ServerPlayNetHandler.java:1578)
[15:13:03 WARN]: at net.minecraft.network.play.ServerPlayNetHandler.func_147359_a(ServerPlayNetHandler.java:1552)
[15:13:03 WARN]: at jdk.internal.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
[15:13:03 WARN]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:13:03 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[15:13:03 WARN]: at ink.ptms.adyeshach.taboolib.common.reflect.Reflex.invoke(Reflex.kt:74)
[15:13:03 WARN]: at ink.ptms.adyeshach.taboolib.common.reflect.Reflex$Companion.invokeMethod(Reflex.kt:115)
[15:13:03 WARN]: at ink.ptms.adyeshach.taboolib.common.reflect.Reflex$Companion.invokeMethod$default(Reflex.kt:111)
[15:13:03 WARN]: at ink.ptms.adyeshach.taboolib.module.nms.MinecraftServerUtilKt.sendPacket(MinecraftServerUtil.kt:51)
[15:13:03 WARN]: at ink.ptms.adyeshach.api.nms.NMSImpl.sendPacketI(NMSImpl.kt:54)
[15:13:03 WARN]: at ink.ptms.adyeshach.api.nms.NMSImpl.setHeadRotation(NMSImpl.kt:403)
[15:13:03 WARN]: at ink.ptms.adyeshach.common.entity.EntityInstance.setHeadRotation$lambda-8(EntityInstance.kt:373)
[15:13:03 WARN]: at ink.ptms.adyeshach.common.entity.EntityInstance.forViewers(EntityInstance.kt:220)
[15:13:03 WARN]: at ink.ptms.adyeshach.common.entity.EntityInstance.setHeadRotation(EntityInstance.kt:372)
[15:13:03 WARN]: at ink.ptms.adyeshach.common.entity.EntityInstance.spawn(EntityInstance.kt:178)
[15:13:04 WARN]: at ink.ptms.adyeshach.common.entity.type.AdyEntityLiving.visible(AdyEntityLiving.kt:62)
[15:13:04 WARN]: at ink.ptms.adyeshach.common.entity.manager.ManagerEvents$e$2.invoke(ManagerEvents.kt:109)
[15:13:04 WARN]: at ink.ptms.adyeshach.common.entity.manager.ManagerEvents$e$2.invoke(ManagerEvents.kt:107)
[15:13:04 WARN]: at ink.ptms.adyeshach.taboolib.platform.BukkitExecutor$submit$5.run(BukkitExecutor.kt:79)
[15:13:04 WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:98)
[15:13:04 WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:462)
[15:13:04 WARN]: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1060)
[15:13:04 WARN]: at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
[15:13:04 WARN]: at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:1006)
[15:13:04 WARN]: at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:821)
[15:13:04 WARN]: at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:269)
[15:13:04 WARN]: at java.base/java.lang.Thread.run(Thread.java:829)
[15:13:04 WARN]: Caused by: FieldAccessException: Cannot find entity from ID 449766.
[15:13:04 WARN]: at com.comphenix.protocol.injector.EntityUtilities.getEntityFromID(EntityUtilities.java:265)
[15:13:04 WARN]: at com.comphenix.protocol.injector.PacketFilterManager.getEntityFromID(PacketFilterManager.java:851)
[15:13:04 WARN]: at com.comphenix.protocol.wrappers.BukkitConverters$11.getSpecific(BukkitConverters.java:721)
[15:13:04 WARN]: ... 48 more
[15:13:04 WARN]: Caused by: java.lang.IllegalArgumentException: Unable to find a field that matches {modifiers=[required: 0, banned: 0], name=\QtrackedEntities\E, type=input instanceof interface java.util.Map}
[15:13:04 WARN]: at com.comphenix.protocol.reflect.FuzzyReflection.getField(FuzzyReflection.java:460)
[15:13:04 WARN]: at com.comphenix.protocol.injector.EntityUtilities.getNewEntityTracker(EntityUtilities.java:173)
[15:13:04 WARN]: at com.comphenix.protocol.injector.EntityUtilities.getEntityTrackerEntry(EntityUtilities.java:187)
[15:13:04 WARN]: at com.comphenix.protocol.injector.EntityUtilities.getEntityFromID(EntityUtilities.java:241)
[15:13:04 WARN]: ... 50 more

Thank you for your patience!