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))

GitHub | Paulomart | 2 weeks ago
  1. 0

    Disconnect when using ProtocolLib

    GitHub | 2 weeks 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))
  2. 0

    when tabbing commands i get kicked and error in console

    GitHub | 6 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

    IndexOutOfBounds on v26

    GitHub | 11 months ago | Tom-III
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(2) + length(65) exceeds writerIndex(10): SlicedAbstractByteBuf(ridx: 2, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 45, widx: 1793, cap: 65536))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 8#191999231

    GitHub | 11 months ago | Tom-III
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(2) + length(65) exceeds writerIndex(10): SlicedAbstractByteBuf(ridx: 2, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2918, widx: 3003, cap: 32768))
  6. 0

    GitHub comment 8#191988278

    GitHub | 11 months ago | Tom-III
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(2) + length(65) exceeds writerIndex(10): SlicedAbstractByteBuf(ridx: 2, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 206919, widx: 206960, cap: 262144))

  1. tyson925 6 times, last 5 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(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2515, widx: 2531, cap: 4096))

    at io.netty.buffer.AbstractByteBuf.checkReadableBytes0()
  2. Netty
    AbstractByteBuf.readByte
    1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1395)
    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:108)
    2. net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:98)
    3. net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:28)
    4. net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:10)
    4 frames
  4. Netty
    SingleThreadEventExecutor$5.run
    1. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    4. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    5. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
    6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    7. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    8. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    9. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
    10. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280)
    11. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396)
    12. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
    13. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    14. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    15. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    16. io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
    17. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    18. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    19. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    20. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    21. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    22. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    23. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    24. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
    25. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:651)
    26. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:574)
    27. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:488)
    28. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:450)
    29. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
    29 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame