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

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

    Crash on Server after Building place

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

    Batch queries failing

    GitHub | 2 years ago | xoraes
    java.lang.IndexOutOfBoundsException: readerIndex(105) + length(4) exceeds writerIndex(105): SlicedByteBuf(ridx: 105, widx: 105, cap: 105/105, unwrapped: PooledUnsafeDirectByteBuf(ridx: 113, widx: 113, cap: 2048))
  3. 0

    Mekanism Power causing crash with Applied Energistics 2

    GitHub | 3 years ago | Saerok
    java.lang.IndexOutOfBoundsException: readerIndex(18) + length(4) exceeds writerIndex(18): UnpooledHeapByteBuf(ridx: 18, widx: 18, cap: 18/35)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Race condition in CompositeByteBuf

    GitHub | 3 years ago | mkw
    java.lang.IndexOutOfBoundsException: index: 140 (expected: range(0, 198692))
  6. 0

    Netty Decoding Error

    Stack Overflow | 3 years ago | user3211694
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(78) + length(4) exceeds writerIndex(80): UnpooledUnsafeDirectByteBuf(ridx: 78, widx: 80, cap: 80)

  1. eti22 40 times, last 6 months ago
1 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(16) + length(4) exceeds writerIndex(16): SlicedByteBuf(ridx: 16, widx: 16, cap: 16/16, unwrapped: UnpooledHeapByteBuf(ridx: 0, widx: 17, cap: 17))

    at io.netty.buffer.AbstractByteBuf.checkReadableBytes()
  2. Netty
    AbstractByteBuf.readInt
    1. io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1175)[AbstractByteBuf.class:4.0.23.Final]
    2. io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:619)[AbstractByteBuf.class:4.0.23.Final]
    2 frames
  3. com.minecolonies.colony
    ColonyManager.handleColonyBuildingViewMessage
    1. com.minecolonies.colony.buildings.AbstractBuilding.createBuildingView(AbstractBuilding.java:710)[AbstractBuilding.class:?]
    2. com.minecolonies.colony.ColonyView.handleColonyBuildingViewMessage(ColonyView.java:348)[ColonyView.class:?]
    3. com.minecolonies.colony.ColonyManager.handleColonyBuildingViewMessage(ColonyManager.java:718)[ColonyManager.class:?]
    3 frames
  4. com.minecolonies.network
    ColonyViewBuildingViewMessage.onMessage
    1. com.minecolonies.network.messages.ColonyViewBuildingViewMessage.onMessage(ColonyViewBuildingViewMessage.java:55)[ColonyViewBuildingViewMessage.class:?]
    2. com.minecolonies.network.messages.ColonyViewBuildingViewMessage.onMessage(ColonyViewBuildingViewMessage.java:16)[ColonyViewBuildingViewMessage.class:?]
    2 frames
  5. MC Forge
    SimpleChannelHandlerWrapper.channelRead0
    1. net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37)[SimpleChannelHandlerWrapper.class:?]
    2. net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17)[SimpleChannelHandlerWrapper.class:?]
    2 frames
  6. Netty
    EmbeddedChannel.writeInbound
    1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[SimpleChannelInboundHandler.class:4.0.23.Final]
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    4. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)[SimpleChannelInboundHandler.class:4.0.23.Final]
    5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    7. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)[SimpleChannelInboundHandler.class:4.0.23.Final]
    8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    10. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)[SimpleChannelInboundHandler.class:4.0.23.Final]
    11. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    12. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    13. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)[SimpleChannelInboundHandler.class:4.0.23.Final]
    14. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    15. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    16. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)[MessageToMessageDecoder.class:4.0.23.Final]
    17. io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)[MessageToMessageCodec.class:4.0.23.Final]
    18. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    19. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    20. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[DefaultChannelPipeline.class:4.0.23.Final]
    21. io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169)[EmbeddedChannel.class:4.0.23.Final]
    21 frames
  7. MC Forge
    FMLProxyPacket.func_148833_a
    1. net.minecraftforge.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:81)[FMLProxyPacket.class:?]
    1 frame
  8. Minecraft
    NetworkManager.channelRead0
    1. net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:151)[ek.class:?]
    2. net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:54)[ek.class:?]
    2 frames
  9. Netty
    AbstractChannelHandlerContext.fireChannelRead
    1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[SimpleChannelInboundHandler.class:4.0.23.Final]
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    3 frames
  10. MC Forge
    NetworkDispatcher.channelRead0
    1. net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleClientSideCustomPacket(NetworkDispatcher.java:386)[NetworkDispatcher.class:?]
    2. net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:252)[NetworkDispatcher.class:?]
    3. net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:53)[NetworkDispatcher.class:?]
    3 frames
  11. Netty
    SingleThreadEventExecutor$2.run
    1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[SimpleChannelInboundHandler.class:4.0.23.Final]
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    4. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[ByteToMessageDecoder.class:4.0.23.Final]
    5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    7. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[ByteToMessageDecoder.class:4.0.23.Final]
    8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    10. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[ByteToMessageDecoder.class:4.0.23.Final]
    11. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    12. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    13. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)[MessageToMessageDecoder.class:4.0.23.Final]
    14. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    15. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    16. io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150)[ReadTimeoutHandler.class:4.0.23.Final]
    17. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[AbstractChannelHandlerContext.class:4.0.23.Final]
    18. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[AbstractChannelHandlerContext.class:4.0.23.Final]
    19. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[DefaultChannelPipeline.class:4.0.23.Final]
    20. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[AbstractNioByteChannel$NioByteUnsafe.class:4.0.23.Final]
    21. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[NioEventLoop.class:4.0.23.Final]
    22. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[NioEventLoop.class:4.0.23.Final]
    23. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[NioEventLoop.class:4.0.23.Final]
    24. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[NioEventLoop.class:4.0.23.Final]
    25. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[SingleThreadEventExecutor$2.class:4.0.23.Final]
    25 frames
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)[?:1.8.0_101]
    1 frame