mojira.dev
MC-96806

Internal Exception io.netty.handler.codec.DecoderException (malformed JSON)

This issue only occurs on a server - not single player or playing via 'Open to LAN'.

I have three command blocks set up on a clock to display a /title for players in a specific area. When they enter this area (only on a server), it causes everyone online to be kicked with the following error message:

"Internal Exception: io.netty.handler.codec.DecoderException: com.google.son.JsonSyntaxException: com.google.son.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1"

Command blocks:
/title @a[996,211,1000,r=1] subtitle ["",{"text":"Red Stained Clay","color":"white"}]
/title @a[996,211,1000,r=1] title []
/title @a[996,211,1000,r=1] times 0 3 2

Deleting the player data file allows me to sign back in to the server, since I respawn outside of that area, however the issue persists. Haven't yet tested in previous snapshots. Originally I thought having the command blocks set to 'Repeat' so rapidly might somehow be causing the issue, but it still happens even on a slow clock with 'Impulse' command blocks. Is affecting 3/3 of players who have tested it on their servers so far.

I can stop this by fixing the JSON of the second command to:
/title @a[996,211,1000,r=1] title ["",{"text":"","color":"white"}]
However the kicking of the player for incorrect JSON seems a little odd, especially because it only occurs on multiplayer servers, no issues on single player.

Linked issues

Attachments

Comments 2

NeunEinser

Can confirm for 16w06a.
A /title @a title [] kicks players with an exception from the server.
The same does happen for

/tellraw @a []

It can be prevented by using the following command instead:

/title @a title [""]
/tellraw @a [""]

Due to the changes to the JSON-texts it is not a bug that the command does not work, it is however a bug that the client gets kicked from a server (or crashes) when trying to execute that command.

The Farlanders

Thanks! Sorry for the duplicate - I did a search for the error message rather than the cause of the issue, and didn't see it.

The Farlanders

(Unassigned)

Unconfirmed

Minecraft 16w05b

Retrieved