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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Kostronor
, 1 year ago
readerIndex(16) + length(4) exceeds writerIndex(16): SlicedByteBuf(ridx: 16, widx: 16, cap: 16/16, unwrapped: UnpooledHeapByteBuf(ridx: 0, widx: 17, cap: 17))
via GitHub by dmk23
, 2 years ago
readerIndex(57) + length(4) exceeds writerIndex(57): DuplicatedByteBuf(ridx: 57, widx: 57, cap: 4096, unwrapped: PooledUnsafeDirectByteBuf(ridx: 68, widx: 68, cap: 4096))
via GitHub by peterix
, 2 years ago
readerIndex(69) + length(4) exceeds writerIndex(69): SlicedByteBuf(ridx: 69, widx: 69, cap: 69/69, unwrapped: UnpooledHeapByteBuf(ridx: 1, widx: 70, cap: 70/70))
via GitHub by Saerok
, 2 years ago
readerIndex(18) + length(4) exceeds writerIndex(18): UnpooledHeapByteBuf(ridx: 18, widx: 18, cap: 18/35)
via GitHub by clucky
, 2 years ago
readerIndex(1) + length(70) exceeds writerIndex(47): SlicedByteBuf(ridx: 1, widx: 47, cap: 47/47, unwrapped: UnpooledHeapByteBuf(ridx: 0, widx: 47, cap: 47))
via GitHub by cg49me
, 1 year ago
readerIndex(295) + length(10753) exceeds writerIndex(830): UnpooledHeapByteBuf(ridx: 295, widx: 830, cap: 830)
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(AbstractByteBuf.java:1175)
at io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:619)
at com.minecolonies.colony.buildings.AbstractBuilding.createBuildingView(AbstractBuilding.java:710)
at com.minecolonies.colony.ColonyView.handleColonyBuildingViewMessage(ColonyView.java:348)
at com.minecolonies.colony.ColonyManager.handleColonyBuildingViewMessage(ColonyManager.java:718)
at com.minecolonies.network.messages.ColonyViewBuildingViewMessage.onMessage(ColonyViewBuildingViewMessage.java:55)
at com.minecolonies.network.messages.ColonyViewBuildingViewMessage.onMessage(ColonyViewBuildingViewMessage.java:16)
at net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:108)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)

Users with the same issue

40 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.