mojira.dev
MC-81017

Game crashes when command in command block is too long

Well, I'm creating some only one command command block vanilla mods.
Sometimes I reach the character cap in a command block.

However, for some reasons I can enter more characters than minecraft can process and when I try to press the done-button the game crashes.

At the beginning of my crash report there's written "io.netty.handler.codec.EncoderException: String too big (was 32764 bytes encoded, max 32767)"

You'll find my crash report and the command I tried to enter ("CommandIsTooLong.txt") in the attachments.

Linked issues

Attachments

Comments 18

Confirmed, I'm also getting a crash with long commands too, I'll attach mine. Please also attach yours since yours seems to be different from mine.

edit: To reproduce, put a long command in a command block and attempt to save it. Example: http://pastebin.com/trRDzJBR

Added my crash report
However, if I paste your /say hiii(...), I'm getting the different crash report, too. I've added it as well to the attachments.
It might be related to the number of characters you try to enter.

Please also attach/include the command you were trying to set.

Added it as "CommandIsTooLong.txt"

My part is a duplicate of MC-68458, yours is different. I've cleaned up the report to reflect that.

8 more comments

The issue is that the Command Block allows us to crash the game by inputting more than the cap, when it should stop inputting once it reaches the cap.

Yep, Affects 1.8.8 too.

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

Fixed: you can't enter strings longer than the cap, anymore.

Daniel

(Unassigned)

Confirmed

Minecraft 1.8.7, Minecraft 1.8.8

Minecraft 1.10.2

Retrieved