ProtocolLib

3M Downloads

Unexpected error occured while the server is running

Pixeluted opened this issue ยท 5 comments

commented

image

commented

Got the same issue right after updating Spigot and VotingPlugin, I'm running ProtocolLib v4.8.0 on Java 17.0.4.1, Spigot version is 3599-Spigot-4aa5ead-aaf484f (MC: 1.19.2).
Edit: here's the stacktrace:

[21:46:27] [Netty Epoll Server IO #3/INFO]: Error Unable to intercept a read client packet. (java.lang.IllegalArgumentException: Unable to find a field null with the ty
pe com.mojang.authlib.GameProfile in net.minecraft.network.protocol.login.PacketLoginInStart) occured in com.comphenix.protocol.injector.netty.ChannelInjector@67037381.
[21:46:27] [Netty Epoll Server IO #3/ERROR]:   [ProtocolLib] INTERNAL ERROR: Unable to intercept a read client packet.
  If this problem hasn't already been reported, please open a ticket
  at https://github.com/dmulloy2/ProtocolLib/issues with the following data:
  Stack Trace:
  java.lang.IllegalArgumentException: Unable to find a field null with the type com.mojang.authlib.GameProfile in net.minecraft.network.protocol.login.PacketLoginInStar
t
        at com.comphenix.protocol.reflect.FuzzyReflection.getFieldByType(FuzzyReflection.java:397)
        at com.comphenix.protocol.reflect.accessors.Accessors.getFieldAccessor(Accessors.java:57)
        at com.comphenix.protocol.injector.netty.ChannelInjector.handleLogin(ChannelInjector.java:658)
        at com.comphenix.protocol.injector.netty.ChannelInjector.decode(ChannelInjector.java:591)
        at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:510)
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:449)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at com.comphenix.protocol.injector.netty.ChannelInjector$2.channelRead(ChannelInjector.java:292)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800)
        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:487)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:385)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at java.base/java.lang.Thread.run(Thread.java:833)
Dump:
  Parameters: 
    io.netty.buffer.PooledUnsafeDirectByteBuf@4a2479ac[
      memoryAddress=281454787379216
      recyclerHandle=NOOP_HANDLE
      chunk=Chunk(3661c867: 2%, 49152/4194304)
      handle=1125929971613696
      memory=java.nio.DirectByteBuffer[pos=0 lim=4194304 cap=4194304]
      offset=16384
      length=9
      maxLength=16
      cache=io.netty.buffer.PoolThreadCache@42ad536
      tmpNioBuf=<null>
      allocator=PooledByteBufAllocator(directByDefault: true)
refCnt=2
      readerIndex=9
      writerIndex=9
      markedReaderIndex=0
      markedWriterIndex=0
      maxCapacity=2147483647
    ]
    manager:
      com.comphenix.protocol.injector.PacketFilterManager@571d5cfd[
        unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@3c386264
        packetListeners=[PacketAdapter[plugin=VotingPlugin, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[UPDATE_SIGN[class=PacketPlay
InUpdateSign, id=43]], gamephase=PLAYING, options=[]]]]
        packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@1f66d81a
        playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@77f40bce
        inputBufferedPackets=[]
        recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@4a334b79
        sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@35e72b19
        hasClosed=false
        classLoader=org.bukkit.plugin.java.PluginClassLoader@5c0e9874
        reporter=com.comphenix.protocol.ProtocolLib$1@4b95419f
        server=CraftServer{serverName=CraftBukkit,serverVersion=3599-Spigot-4aa5ead-aaf484f,minecraftVersion=1.19.2}
        library=ProtocolLib v4.8.0
        asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@171eec88
        knowsServerPackets=true
        knowsClientPackets=true
        phaseLoginCount=0
        phasePlayingCount=1
        packetCreation=false
        nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@3812ffd7
        pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@6a74c43a
        hasRecycleDistance=true
        minecraftVersion=(MC: 1.19.2)
        debug=false
      ]
Sender:
    com.comphenix.protocol.injector.netty.ChannelInjector@67037381[
      decodeBuffer=protected void net.minecraft.network.PacketDecoder.decode(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,java.util.List) throws java.
lang.Exception
      encodeBuffer=protected void net.minecraft.network.PacketEncoder.encode(io.netty.channel.ChannelHandlerContext,java.lang.Object,io.netty.buffer.ByteBuf) throws jav
a.lang.Exception
      factory=com.comphenix.protocol.injector.netty.InjectionFactory@62582b64
      player=com.comphenix.protocol.injector.server.TemporaryPlayerInvocationHandler@75e53ceb
      updated=<null>
      playerName=<null>
      playerConnection=<null>
      networkManager=net.minecraft.network.NetworkManager@4d7ff0c0
      originalChannel=[id: 0xab7757b3, L:/10.0.0.74:25565 - R:/93.100.157.166:56091]
      channelField=VolatileField [accessor=DefaultFieldAccessor [field=public io.netty.channel.Channel net.minecraft.network.NetworkManager.m], container=net.minecraft.
network.NetworkManager@4d7ff0c0, previous=[id: 0xab7757b3, L:/10.0.0.74:25565 - R:/93.100.157.166:56091], current=com.comphenix.protocol.injector.netty.ChannelInjector$
3@634de823, previousLoaded=true, currentSet=true, forceAccess=true]
      packetMarker={}
      currentEvent=<null>
      finalEvent=<null>
      unfilteredProcessedPackets=com.comphenix.protocol.injector.netty.PacketFilterQueue@3f9382c5
      vanillaDecoder=net.minecraft.network.PacketDecoder@dd89c07
      vanillaEncoder=net.minecraft.network.PacketEncoder@62e0b57f
      finishQueue=[]
      channelListener=com.comphenix.protocol.injector.netty.ProtocolInjector@3812ffd7
      processor=com.comphenix.protocol.injector.NetworkProcessor@4d466743
      injected=true
      closed=false
      cumulation=PooledUnsafeDirectByteBuf(ridx: 9, widx: 9, cap: 9)
      cumulator=io.netty.handler.codec.ByteToMessageDecoder$1@ab9f801
      singleDecode=false
      first=true
      firedChannelRead=false
      selfFiredChannelRead=true
      decodeState=1
      discardAfterReads=16
      numReads=0
      added=true
    ]
Version:
    ProtocolLib v4.8.0
  Java Version:
    17.0.4.1
  Server:
    3599-Spigot-4aa5ead-aaf484f (MC: 1.19.2)

    ```

    The error occurred multiple times.
commented

I see this same error is reported in #1936

commented

I have the same issue
Paper 1.19 and plugins are CraftBook, DeadChest, DiscordSRV, dynmap, Essentials, floodgate, Geyser-Spigot, Orebfuscator, ProtocolLib, Skoice, ViaBackwards, ViaRewind, ViaVersion, WorldEdit, WorldGuard

commented

Looks like this is not an issue in the latest built version. https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/

commented

Yep, with the updated version it works fine. Thanks!