mojira.dev
MC-121233

Tab-completing a function name (with a ton of available functions) kicks the player

When attempting to tab-complete a function name in the function command, the game will freeze and then kick the player if there are too many functions, yielding the following:

Internal Exception: java.nio.channels.ClosedChannelException

The player is then sent to the Multiplayer screen, even when kicked in singleplayer (this is MC-45602).

Linked issues

Comments 3

How many functions do you have? The only way I can think of this happening is if the tab complete packet that was generated exceeded the 1 megabyte limit (that packet doesn't have any maximums that'd affect this - while each entry has a max length, the total array doesn't, and you'd need several billion functions for it to overflow...).

Also, can you reproduce this with packet debug logging enabled? When that's enabled it should add a stacktrace for exceptions like that in the log.

This does not only happen when auto-completing. Apparently, this also happens when opening a world with many functions. See MC-122676 (world download examples available there)

Can no longer reproduce as of the snapshots. Figures! 🙂

tryashtar

(Unassigned)

Confirmed

Minecraft 1.12.2

Minecraft 18w03b

Retrieved