mojira.dev
MC-9211

Client crash when sending two objective-creation packets with the same name

I fully realize this may be a silly bug report; a crash like this is likely fully normal for a development snapshot (and this one in particular even useful while debugging the scoreboard). Making sure it doesn't slip through to final release regardless.

If you send two scoreboard objective-creation packets to the client with the same objective names, the game will crash with an IllegalArgumentException referencing the duplicate objective

Quick edit here: The game also crashes if an objective-deletion packet with a name unknown to the client is received, however the game does not crash if you send a scoreboard display packet with a name unknown to the client.

Linked issues

Attachments

Comments 11

Note:

Description: Exception in world tick
java.lang.IllegalArgumentException: An objective with the name 'Test' already exists!
	at aqs.a(SourceFile:30)
	at bcj.a(SourceFile:1063)
	at fa.a(SourceFile:43)

Please do not mark issues as private, unless your bug report is a security issue containing information that may compromise your server/client.

Affects 13w06a as well.

Unless you can replicate this in vanilla, there is no issue. It is your duty, if you're sending custom packets, to remember what the client knows about already.

These are valid packets used by the Bukkit API, do you suggest this bug is taken to them instead?

1 more comments

This is 100% absolutely a bug with Bukkit. They should be tracking which players know about which objectives, and not send two different objectives with the same name - doing so can either cause huge screwups, or I can make it catch this early and tell you about it (this is what it does now). I think the catching it earlier is the best solution.

(to be clear, if you're using the supported Bukkit Scoreboard API you won't get this crash)

I will report this to bukkit, but to be clear I am using the supported Bukkit scoreboard API, and I still get this crash. This may be paritally due to the fact we are using a proxy as well, so I'm sure this may neither be a bukkit bug.

If it's not Bukkit then it could very well be your proxy. At the end of the day, something is telling the client "I have a whole new thing called xxxx" and this is not allowed and would cause big bugs if we had not caught it first, so it's working as intended on our end.

Ok, thanks you for the quick response time, much appreciated.

Connor James

(Unassigned)

Unconfirmed

Snapshot 13w05b, Snapshot 13w06a

Retrieved