Long command block text crash
After using command blocks for a very long /tellraw command I was disconnect from server when playing on singleplayer then after pressing cancel get sent to the multiplayer screen?
What I expected to happen was...:
The command would run (I heard commands could be infinitely long) or in the previous output box in command blocks it would say "Command Too Long"
What actually happened was...:
I was sent to a screen that said "Disconnected by server, Chat message too long" and after pressing cancel got sent to the multiplayer screen even though i was playing on a singleplayer world.
Steps to Reproduce:
1. In a singleplayer world, put this command into a command block(Or another long comand)
/tellraw @a {"text":"<Bartender> What can i do for you?","color":"white","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","extra":[{"text":"[Buy drink]","color":"green","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @p {text:\"<Bartender> Sure, there you go\"}"},"hoverEvent":{"action":"show_text","value":"Can i get a drink?"}},{"text":" [Nothing]","color":"red","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @a {\"text\":\"<Bartender> So your new here?\",\"color\":\"white\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"extra\":[{\"text\":\"[Yes] \",\"color\":\"green\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p {text:\\\"<Bartender> Nice, you should check out the docks\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"I just came for a visit\"}},{\"text\":\"[No]\",\"color\":\"red\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p {text:\\\"<Villager> I've never seen you before\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"No i just came for a drink\"}}]}"},"hoverEvent":{"action":"show_text","value":"I don't need anything"}}]}
2. Click on Nothing and you sould be disconnected
3. click "Back to Title Screen" and you should end up in the multiplay screen
Thank you for your help
Environment
Windows 7, unknown java version
Linked Issues
Created Issue:
Long command block text crash
After using command blocks for a very long /tellraw command I was disconnect from server when playing on singleplayer then after pressing cancel get sent to the multiplayer screen?
What I expected to happen was...:
The command would run (I heard commands could be infinitely long) or in the previous output box in command blocks it would say "Command Too Long"What actually happened was...:
I was sent to a screen that said "Disconnected by server, Chat message too long" and after pressing cancel got sent to the multiplayer screen even though i was playing on a singleplayer world.Steps to Reproduce:
{text:\"<Bartender> Sure, there you go\"}
1. In a singleplayer world, put this command into a command block(Or another long comand)
/tellraw @a {"text":"<Bartender> What can i do for you?","color":"white","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","extra":[{"text":"[Buy drink]","color":"green","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @p"},"hoverEvent":{"action":"show_text","value":"Can i get a drink?"}},{"text":" [Nothing]","color":"red","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @a {\"text\":\"<Bartender> So your new here?\",\"color\":\"white\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"extra\":[{\"text\":\"[Yes] \",\"color\":\"green\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p
{text:\\\"<Bartender> Nice, you should check out the docks\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"I just came for a visit\"}},{\"text\":\"[No]\",\"color\":\"red\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p
{text:\\\"<Villager> I've never seen you before\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"No i just came for a drink\"}}]}"},"hoverEvent":{"action":"show_text","value":"I don't need anything"}}]}
2. Click on Nothing and you sould be disconnected
3. click "Back to Title Screen" and you should end up in the multiplay screenThank you for your help
Environment
Windows 7, unknown java version
After using command blocks for a very long /tellraw command I was disconnect from server when playing on singleplayer then after pressing cancel get sent to the multiplayer screen?
What I expected to happen was...:
The command would run (I heard commands could be infinitely long) or in the previous output box in command blocks it would say "Command Too Long"What actually happened was...:
I was sent to a screen that said "Disconnected by server, Chat message too long" and after pressing cancel got sent to the multiplayer screen even though i was playing on a singleplayer world.Steps to Reproduce:
{text:\"<Bartender> Sure, there you go\"}
1. In a singleplayer world, put this command into a command block(Or another long comand)
/tellraw @a {"text":"<Bartender> What can i do for you?","color":"white","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","extra":[{"text":"[Buy drink]","color":"green","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @p"},"hoverEvent":{"action":"show_text","value":"Can i get a drink?"}},{"text":" [Nothing]","color":"red","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @a {\"text\":\"<Bartender> So your new here?\",\"color\":\"white\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"extra\":[{\"text\":\"[Yes] \",\"color\":\"green\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p
{text:\\\"<Bartender> Nice, you should check out the docks\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"I just came for a visit\"}},{\"text\":\"[No]\",\"color\":\"red\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p
{text:\\\"<Villager> I've never seen you before\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"No i just came for a drink\"}}]}"},"hoverEvent":{"action":"show_text","value":"I don't need anything"}}]}
2. Click on Nothing and you sould be disconnected
3. click "Back to Title Screen" and you should end up in the multiplay screenThank you for your help
After using command blocks for a very long /tellraw command I was disconnect from server when playing on singleplayer then after pressing cancel get sent to the multiplayer screen?
What I expected to happen was...:
The command would run (I heard commands could be infinitely long) or in the previous output box in command blocks it would say "Command Too Long"What actually happened was...:
I was sent to a screen that said "Disconnected by server, Chat message too long" and after pressing cancel got sent to the multiplayer screen even though i was playing on a singleplayer world.Steps to Reproduce:
1. In a singleplayer world, put this command into a command block(Or another long comand)/tellraw @a {"text":"<Bartender> What can i do for you?","color":"white","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","extra":[{"text":"[Buy drink]","color":"green","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @p {text:\"<Bartender> Sure, there you go\"}"},"hoverEvent":{"action":"show_text","value":"Can i get a drink?"}},{"text":" [Nothing]","color":"red","bold":"false","italic":"false","underlined":"false","strikethrough":"false","obfuscated":"false","clickEvent":{"action":"run_command","value":"/tellraw @a {\"text\":\"<Bartender> So your new here?\",\"color\":\"white\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"extra\":[{\"text\":\"[Yes] \",\"color\":\"green\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p {text:\\\"<Bartender> Nice, you should check out the docks\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"I just came for a visit\"}},{\"text\":\"[No]\",\"color\":\"red\",\"bold\":\"false\",\"italic\":\"false\",\"underlined\":\"false\",\"strikethrough\":\"false\",\"obfuscated\":\"false\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p {text:\\\"<Villager> I've never seen you before\\\"}\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"No i just came for a drink\"}}]}"},"hoverEvent":{"action":"show_text","value":"I don't need anything"}}]}2. Click on Nothing and you sould be disconnected
3. click "Back to Title Screen" and you should end up in the multiplay screenThank you for your help
duplicates
Confirmed.
Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
No longer crashes, but command is not executed due to limit of chat buffer., see
MC-30955