io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(16) + length(770414) exceeds writerIndex(31): PooledUnsafeDirectByteBuf(ridx: 16, widx: 31, cap: 512)

GitHub | Underbalanced | 2 months ago
  1. 0

    SSLHandler Removal Exceptions

    GitHub | 2 months ago | Underbalanced
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(16) + length(770414) exceeds writerIndex(31): PooledUnsafeDirectByteBuf(ridx: 16, widx: 31, cap: 512)
  2. 0

    DNS datagram buffer insufficient sizing

    GitHub | 1 year ago | dmk23
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(512) + length(4) exceeds writerIndex(512): PooledUnsafeDirectByteBuf(ridx: 512, widx: 512, cap: 4096)
  3. 0

    Crash on Server after Building place

    GitHub | 4 months ago | Kostronor
    java.lang.IndexOutOfBoundsException: readerIndex(16) + length(4) exceeds writerIndex(16): SlicedByteBuf(ridx: 16, widx: 16, cap: 16/16, unwrapped: UnpooledHeapByteBuf(ridx: 0, widx: 17, cap: 17))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash on Server after Building place

    GitHub | 4 months ago | Kostronor
    java.lang.IndexOutOfBoundsException: readerIndex(16) + length(4) exceeds writerIndex(16): SlicedByteBuf(ridx: 16, widx: 16, cap: 16/16, unwrapped: UnpooledHeapByteBuf(ridx: 0, widx: 17, cap: 17))
  6. 0

    GitHub comment 148#196307655

    GitHub | 9 months ago | Tom-III
    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: 125, cap: 512))

    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(16) + length(770414) exceeds writerIndex(31): PooledUnsafeDirectByteBuf(ridx: 16, widx: 31, cap: 512)

      at io.netty.buffer.AbstractByteBuf.checkReadableBytes0()
    2. Netty
      AdvancedLeakAwareByteBuf.readBytes
      1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1395)
      2. io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1389)
      3. io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:850)
      4. io.netty.buffer.WrappedByteBuf.readBytes(WrappedByteBuf.java:655)
      5. io.netty.buffer.AdvancedLeakAwareByteBuf.readBytes(AdvancedLeakAwareByteBuf.java:502)
      5 frames
    3. com.freeuniversegames.general
      NetworkFileEncoderDecoder.read
      1. com.freeuniversegames.general.general_eight.netty.variant.VLQDecoder.unsafeDecodeArray(VLQDecoder.java:199)
      2. com.freeuniversegames.general.general_eight.netty.variant.VLQDecoder.unsafeDecodeString(VLQDecoder.java:140)
      3. com.freeuniversegames.general.general_eight.netty.variant.VLQDecoder.unsafeDecodeString(VLQDecoder.java:162)
      4. com.freeuniversegames.general.general_eight.netty.variant.NetworkFileEncoderDecoder.readMetaData(NetworkFileEncoderDecoder.java:128)
      5. com.freeuniversegames.general.general_eight.netty.variant.NetworkFileEncoderDecoder.read(NetworkFileEncoderDecoder.java:146)
      5 frames
    4. com.freeuniversegames.infastructure
      FileServer$1$2.decode
      1. com.freeuniversegames.infastructure.development_file_server.FileServer$1$2.decode(FileServer.java:253)
      1 frame
    5. Netty
      ForkJoinWorkerThread.run
      1. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
      2. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
      3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      6. io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
      7. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      10. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
      11. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      13. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
      14. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
      15. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:610)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
      17. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465)
      18. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437)
      19. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      20. io.netty.util.internal.chmv8.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1412)
      21. io.netty.util.internal.chmv8.ForkJoinTask.doExec(ForkJoinTask.java:280)
      22. io.netty.util.internal.chmv8.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:877)
      23. io.netty.util.internal.chmv8.ForkJoinPool.scan(ForkJoinPool.java:1711)
      24. io.netty.util.internal.chmv8.ForkJoinPool.runWorker(ForkJoinPool.java:1666)
      25. io.netty.util.internal.chmv8.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:126)
      25 frames