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 | 6 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 | 6 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 5 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
    DefaultChannelPipeline.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]
    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]
    20 frames