mojira.dev
MC-79818

Player writing § in chat gets disconnected and client freezes

This is based on MC-79813

When you use a /tellraw command or a book with JSON to let the player run a command containing "§", they will get disconnected and their client freezes.

Command

/tellraw @p {"text":"Click","clickEvent":{"action":"run_command","value":"\u00a7kTest"}}

Game Output

[16:36:09] [Server thread/INFO]: Marcono1234 lost connection: TextComponent{text='Illegal characters in chat', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
[16:36:09] [Server thread/INFO]: Marcono1234 left the game
[16:36:09] [Server thread/INFO]: Stopping singleplayer server as player logged out
[16:36:09] [Server thread/WARN]: handleDisconnection() called twice
[16:36:09] [Server thread/INFO]: Stopping server
[16:36:09] [Server thread/INFO]: Saving players
[16:36:09] [Server thread/INFO]: Saving worlds
[16:36:09] [Server thread/INFO]: Saving chunks for level 'Test test'/Overworld
[16:36:09] [Server thread/INFO]: Saving chunks for level 'Test test'/Nether
[16:36:09] [Server thread/INFO]: Saving chunks for level 'Test test'/The End

Note: The freezing might be caused by MC-92255, however the handleDisconnection() called twice warning is unusual

Related issues

Attachments

Comments

migrated
[media]
SunCat

Still in 1.9.4

marcono1234

Still kicks the player in 1.11 but the client does not freeze anymore, probably invalid now On a different PCs it froze again for me

bemoty

Hm, client doesn't freeze for me in 1.12.1. Fixed?

[INFO]: Bemoty lost connection: Illegal characters in chat
[INFO]: Bemoty left the game
pokechu22

After some advanced testing I was able to get the "handleDisconnection() called twice" message with a direct reproduction of MC-92255 using /kick; as such this is simply a direct duplicate of that (just another case where the player was kicked).

marcono1234

(Unassigned)

Confirmed

JSON, chat, json, tellraw

Minecraft 1.8.4, Minecraft 15w39c, Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a

Retrieved