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

    Disconnect when using ProtocolLib

    GitHub | 3 months 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

    GitHub comment 137#282177920

    GitHub | 1 month ago | PhanaticD
    io.netty.handler.codec.DecoderException: Error decoding packet class Team with contents: +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 41 0f 42 42 42 42 42 42 42 42 42 42 42 42 32 33 |A.BBBBBBBBBBBB23| |00000010| 30 00 0f 42 42 42 42 42 42 42 42 42 42 42 42 32 |0..BBBBBBBBBBBB2| |00000020| 33 30 03 c2 a7 66 03 c2 a7 66 01 06 61 6c 77 61 |30...f...f..alwa| |00000030| 79 73 05 6e 65 76 65 72 ff 13 09 4a 75 6c 69 6f |ys.never...Julio| |00000040| 30 32 31 38 0c 46 6c 75 66 66 79 5f 42 65 61 72 |0218.Fluffy_Bear| |00000050| 73 0b 4d 45 47 41 4d 45 52 32 34 30 31 0d 4a 65 |s.MEGAMER2401.Je| |00000060| 73 73 69 63 61 5f 42 6c 61 64 65 06 54 41 53 31 |ssica_Blade.TAS1| |00000070| 32 37 0f 4c 75 6e 61 72 45 63 6c 69 70 73 65 37 |27.LunarEclipse7| |00000080| 36 37 |67 | +--------+-------------------------------------------------+----------------+
  3. 0

    when tabbing commands i get kicked and error in console

    GitHub | 8 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))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IndexOutOfBounds on v26

    GitHub | 1 year 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))
  6. 0

    GitHub comment 8#191999231

    GitHub | 1 year 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))

  1. tyson925 6 times, last 7 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