mojira.dev
MC-265589

Brigadier exception can be repeatedly logged if command has invalid syntax

If a command has invalid syntax, exception

com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException

can be logged. This can be a problem if the command is in a repeating command block. This causes the same error to repeatedly get logged, making the log file gradually get larger.

Example command:

/tellraw @p {"text":"a","hoverEvent":{"action":"show_item","value":"{id:stone"}}
/tellraw @p {"text":"a","hoverEvent":{"action":"show_item","value":"{id:stone"}}

A similar report is MC-121913

With this report it was more of an issue because it was made around 1.13 when many commands changed, likely leading to many syntax errors.

But nonetheless my report seems to be similar at least in regards to the potential for a huge log file if the problem is not noticed.

Linked issues

Comments 2

This appears to be fixed as of 23w40a.

If I had to take a guess I'd say the fix was a result of the changes to the raw JSON format in this snapshot.

mattp12

(Unassigned)

Confirmed

Commands

1.20.2

23w40a

Retrieved