io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1040) + length(1) exceeds writerIndex(1040): PooledUnsafeDirectByteBuf(ridx: 1040, widx: 1040, cap: 8192)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Can't join server
    via GitHub by detig-iii
    ,
  • GitHub comment 1622#152098538
    via GitHub by kxjhwbb
    ,
  • GitHub comment 1631#156183412
    via GitHub by kukubaczek
    ,
  • GitHub comment 1631#156193222
    via GitHub by Xayanix
    ,
  • GitHub comment 1717#177364060
    via GitHub by BoiaFaus
    ,
  • GitHub comment 27#181209443
    via GitHub by L4BORG
    ,
  • GitHub comment 27#181412956
    via GitHub by L4BORG
    ,
    • io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1040) + length(1) exceeds writerIndex(1040): PooledUnsafeDirectByteBuf(ridx: 1040, widx: 1040, cap: 8192) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:98) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911) at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:883) at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:389) at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:305) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IndexOutOfBoundsException: readerIndex(1040) + length(1) exceeds writerIndex(1040): PooledUnsafeDirectByteBuf(ridx: 1040, widx: 1040, cap: 8192) at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1179) at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:589) at net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:108) at net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:98) at net.md_5.bungee.protocol.DefinedPacket.readString(DefinedPacket.java:29) at net.md_5.bungee.protocol.packet.PlayerListItem.read(PlayerListItem.java:38) at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:33) at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:10) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    tyson925
    tyson9256 times, last one,