io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(2) + length(1) exceeds writerIndex(2): SlicedAbstractByteBuf(ridx: 2, widx: 2, cap: 2/2, unwrapped: PooledUnsafeDirectByteBuf(ridx: 3, widx: 12, cap: 64))

GitHub | mibby | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    DecoderException: java.lang.IndexOutOfBoundsException

    GitHub | 7 months ago | mibby
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(2) + length(1) exceeds writerIndex(2): SlicedAbstractByteBuf(ridx: 2, widx: 2, cap: 2/2, unwrapped: PooledUnsafeDirectByteBuf(ridx: 3, widx: 12, cap: 64))
  2. 0

    when tabbing commands i get kicked and error in console

    GitHub | 7 months ago | Twi5TeD
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): SlicedAbstractByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 128))
  3. 0

    Players get kicked randomly

    GitHub | 3 months ago | JoeyHaalboom
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1061) + length(1) exceeds writerIndex(1061): PooledUnsafeDirectByteBuf(ridx: 1061, widx: 1061, cap: 8192)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Disconnect when using ProtocolLib

    GitHub | 1 month ago | Paulomart
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2515, widx: 2531, cap: 4096))
  6. 0

    server switch when talking in chat

    GitHub | 1 year ago | random1167
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 0, cap: 0)

  1. tyson925 6 times, last 6 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    readerIndex(2) + length(1) exceeds writerIndex(2): SlicedAbstractByteBuf(ridx: 2, widx: 2, cap: 2/2, unwrapped: PooledUnsafeDirectByteBuf(ridx: 3, widx: 12, cap: 64))

    at io.netty.buffer.AbstractByteBuf.checkReadableBytes0()
  2. Netty
    AbstractByteBuf.readByte
    1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1413)
    2. io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:687)
    2 frames
  3. net.md_5.bungee
    MinecraftDecoder.decode
    1. net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:100)
    2. net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:90)
    3. net.md_5.bungee.protocol.DefinedPacket.readString(DefinedPacket.java:29)
    4. net.md_5.bungee.protocol.packet.Handshake.read(Handshake.java:27)
    5. net.md_5.bungee.protocol.DefinedPacket.read(DefinedPacket.java:185)
    6. net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:41)
    7. net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:10)
    7 frames
  4. Netty
    SingleThreadEventExecutor$5.run
    1. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
    3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
    4. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
    5. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
    6. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280)
    7. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396)
    8. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
    9. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
    10. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
    11. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
    12. io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
    13. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
    14. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
    15. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
    16. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    17. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
    18. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
    19. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    20. io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:961)
    21. io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:386)
    22. io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:302)
    23. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)
    23 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame