mojira.dev
MC-87041

Kicked from server, Console spams "Netty Epoll Server IO #6/ERROR"

When playing on a server running the affected version, the server can only handle 1 player online at the time.

Other players connecting get kicked out after 2/3 seconds with the following message in the server console.

Netty Epoll Server IO #6/ERROR io.netty.util.IllegalReferenceCountException: refCnt: 0

and the players get the message;

Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndix(17) + length(58090) exceeds writerIndex(17); UnpooledHeapyByteBuf(ridx: 17, widx: 17, cap: 17)

The first player on the server has no problems playing. But if he/she is second, he/she will get kicked out.

Linked issues

Comments 59

Same problem on my server in 15w35e.

Fenhl (Max Dominik Weber)

Affects 15w35e. Another player and myself are constantly kicking each other off the server, getting the same error (except with different numbers). Server log shows the same error messages.

Fenhl (Max Dominik Weber)

The issue only seems to occur when the players are within viewing distance of each other.

Not on my end. It seems to be a regional thing, though I've yet to pinpoint what or where it is on my server. If we're both in the same place, but out of the effected area, nothing will happen. At least on my end, it seems to be near spawn, but nothing to do with anything in that region file, as removing it doesn't seem to help.

Fenhl (Max Dominik Weber)

You're right, it only happens around spawn. Two players being within view distance of each other in the affected area is also a requirement for the bug to trigger though.

49 more comments
[Mod] redstonehelper

Someone in the comments there said it wasn't a duplicate.

Fenhl (Max Dominik Weber)

That claim appears to be based on the numbers being different in the error messages. The problem is exactly the same though: large amounts of block updates in areas with more than one player kick some or all of these players.

In the claimed duplicated report, we can actually see the full stack trace of the error, in this one we cannot. As a programmer I would never claim this error to be identical to the other one without being able to trace where this error comes up from. There are plenty of ways to cause an individual error to appear without being the same culprit. I will agree to it possibly stemming from the same core issue (major block updates), but cannot agree to it being duplicates based on the presented error information. For all I know this error could stem from (hypothetical) class baz whereas the one claiming to be a duplicate of this one, stems from class bab.

Actually, it happened to me when connecting to a server at version 1.8.

Yeonguso Baiteu

It only happens on my server. Someone joined and then everyone got kicked. Everytime anyone tries to join, it kicks them and says Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndix(17) + length(58090) exceeds writerIndex(17); UnpooledHeapyByteBuf(ridx: 17, widx: 17, cap: 17)

Emiel Brinkman

michael

Community Consensus

Minecraft 15w34d, Minecraft 15w35e, Minecraft 15w36c, Minecraft 15w37a, Minecraft 15w38a, Minecraft 15w39b, Minecraft 15w39c, Minecraft 15w40b, Minecraft 15w41b

Minecraft 15w41a

Retrieved