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

GitHub | zedwick | 5 months ago
  1. 0

    Kicked on game start: Internal Exception + NullPointerException

    GitHub | 5 months ago | zedwick
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(14) + length(1) exceeds writerIndex(14): UnpooledHeapByteBuf(ridx: 14, widx: 14, cap: 14)
  2. 0

    FlanĀ“s Mod Lan Crash 5.1 Mc 1.8

    GitHub | 2 months ago | Ostfront
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(20) + length(1) exceeds writerIndex(20): UnpooledHeapByteBuf(ridx: 0, widx: 20, cap: 20)
  3. 0

    1.7.X Version client cant use Uskyblock Server

    GitHub | 1 year ago | swan201
    io.netty.handler.codec.DecoderException: java.lang.RuntimeException: An internal error occured.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1622#152098538

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

    While cloning large amounts of blocks (About 4 chunks) from loaded chunks to an area around active players this causes random player disconnects. With only one player on the server this is a non-issue. Only affects clients when multiple are connected around the clones output area. Server Error {noformat} [Netty Epoll Server IO #26/ERROR]: io.netty.util.IllegalReferenceCountException: refCnt: 0 {noformat} Client Error {noformat} java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledHeapByteBuf(ridx: 0, widx: 0, cap: 69888/69888) at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_25] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_25] at g.a(SourceFile:46) [15w38b.jar:?] at bab.as(SourceFile:920) [15w38b.jar:?] at bab.a(SourceFile:377) [15w38b.jar:?] at net.minecraft.client.main.Main.main(SourceFile:125) [15w38b.jar:?] Caused by: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledHeapByteBuf(ridx: 0, widx: 0, cap: 69888/69888) at io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1175) ~[netty-all-4.0.23.Final.jar:4.0.23.Final] at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:570) ~[netty-all-4.0.23.Final.jar:4.0.23.Final] at em.readByte(SourceFile:663) ~[15w38b.jar:?] at aqw.a(SourceFile:87) ~[15w38b.jar:?] at ard.a(SourceFile:908) ~[15w38b.jar:?] at bif.a(SourceFile:522) ~[15w38b.jar:?] at gp.a(SourceFile:68) ~[15w38b.jar:?] at gp.a(SourceFile:11) ~[15w38b.jar:?] at fh$1.run(SourceFile:13) ~[15w38b.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_25] at g.a(SourceFile:45) ~[15w38b.jar:?] ... 3 more {noformat} Per Lorgon111 {noformat} Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndix(13) + length(6684) exceeds writerIndex(13); UnpooledHeapyByteBuf(ridx: 13, widx: 13, cap: 13) {noformat}

    Mojang JIRA | 1 year ago | Michael Parker
    java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledHeapByteBuf(ridx: 0, widx: 0, cap: 69888/69888)

  1. tyson925 6 times, last 4 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(14) + length(1) exceeds writerIndex(14): UnpooledHeapByteBuf(ridx: 14, widx: 14, cap: 14)

    at io.netty.buffer.AbstractByteBuf.checkReadableBytes()
  2. Netty
    AbstractByteBuf.readByte
    1. io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1175)[AbstractByteBuf.class:4.0.23.Final]
    2. io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:570)[AbstractByteBuf.class:4.0.23.Final]
    2 frames
  3. Minecraft
    PacketBuffer.readByte
    1. net.minecraft.network.PacketBuffer.readByte(SourceFile:699)[eq.class:?]
    1 frame
  4. net.minecraft.network
    SPacketEntityMetadata.func_148837_a
    1. net.minecraft.network.datasync.DataSerializers$1.func_187159_a(SourceFile:28)[kj$1.class:?]
    2. net.minecraft.network.datasync.DataSerializers$1.func_187159_a(SourceFile:20)[kj$1.class:?]
    3. net.minecraft.network.datasync.EntityDataManager.func_187215_b(SourceFile:229)[kk.class:?]
    4. net.minecraft.network.play.server.SPacketEntityMetadata.func_148837_a(SourceFile:30)[hp.class:?]
    4 frames
  5. Minecraft
    NettyPacketDecoder.decode
    1. net.minecraft.network.NettyPacketDecoder.decode(SourceFile:40)[er.class:?]
    1 frame
  6. Netty
    SingleThreadEventExecutor$2.run
    1. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249)[ByteToMessageDecoder.class:4.0.23.Final]
    2. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)[ByteToMessageDecoder.class:4.0.23.Final]
    3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    4. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    5. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[ByteToMessageDecoder.class:4.0.23.Final]
    6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    7. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    8. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[ByteToMessageDecoder.class:4.0.23.Final]
    9. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    10. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    11. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)[MessageToMessageDecoder.class:4.0.23.Final]
    12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    13. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    14. io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150)[ReadTimeoutHandler.class:4.0.23.Final]
    15. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    16. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    17. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[DefaultChannelPipeline.class:4.0.23.Final]
    18. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[AbstractNioByteChannel$NioByteUnsafe.class:4.0.23.Final]
    19. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[NioEventLoop.class:4.0.23.Final]
    20. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[NioEventLoop.class:4.0.23.Final]
    21. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[NioEventLoop.class:4.0.23.Final]
    22. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[NioEventLoop.class:4.0.23.Final]
    23. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[SingleThreadEventExecutor$2.class:4.0.23.Final]
    23 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_45]
    1 frame