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

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 detig-iii
, 1 year ago
java.lang.IndexOutOfBoundsException: readerIndex(1040) + length(1) exceeds writerIndex(1040): PooledUnsafeDirectByteBuf(ridx: 1040, widx: 1040, cap: 8192)
via GitHub by WolverinDEV
, 2 months ago
java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2486, widx: 2502, cap: 4096))
via GitHub by Paulomart
, 10 months ago
java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2515, widx: 2531, cap: 4096))
via GitHub by DuckCraftPvP
, 1 year ago
java.lang.IndexOutOfBoundsException: readerIndex(3) + length(200) exceeds writerIndex(21): UnpooledSlicedByteBuf(ridx: 3, widx: 21, cap: 21/21, unwrapped: PooledUnsafeDirectByteBuf(ridx: 81635, widx: 81916, cap: 131072))
via GitHub by JoeyHaalboom
, 11 months ago
java.lang.IndexOutOfBoundsException: readerIndex(1061) + length(1) exceeds writerIndex(1061): PooledUnsafeDirectByteBuf(ridx: 1061, widx: 1061, cap: 8192)
via GitHub by Twi5TeD
, 1 year ago
java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): SlicedAbstractByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 128))
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1040) + length(1) exceeds writerIndex(1040): PooledUnsafeDirectByteBuf(ridx: 1040, widx: 1040, cap: 8192)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1179)
at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:589)
at net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:108)
at net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:98)
at net.md_5.bungee.protocol.DefinedPacket.readString(DefinedPacket.java:29)
at net.md_5.bungee.protocol.packet.PlayerListItem.read(PlayerListItem.java:38)
at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:33)
at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:10)

Users with the same issue

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

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