mojira.dev
MC-122953

Crash when typing scoreboard criteria with invalid character

The bug

The game crashes when trying to add an invalid character (Non a-z0-9/.-) (colon ":" or bracket "[]", to name a few) after, for example, minecraft.used: or minecraft.custom:.

How to reproduce

scoreboard objectives add foo minecraft.custom::
scoreboard objectives add foo minecraft.custom:test[
scoreboard objectives add foo minecraft.custom:testA

(Uppercase characters are invalid...)

The game will crash after placing the "invalid character".

Crash report

17w49a\: [^crash-2017-12-06_22.35.01-client.txt]

Description: charTyped event handler

g: Non [a-z0-9/._-] character in path of location: minecraft:(
	at mv.<init>(SourceFile:32)
	at mv.a(SourceFile:41)
	at bmk.a(SourceFile:75)
	at by.a(SourceFile:43)
	at by.parse(SourceFile:22)
	at com.mojang.brigadier.tree.ArgumentCommandNode.parse(ArgumentCommandNode.java:55)
	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:169)
	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
	at com.mojang.brigadier.CommandDispatcher.parse(CommandDispatcher.java:143)
	at bpr.h(SourceFile:160)
	at bpr.a(SourceFile:96)
	at bpr$$Lambda$724/640592192.accept(Unknown Source)
	at boc.a(SourceFile:146)
	at boc.b(SourceFile:141)
	at boc.charTyped(SourceFile:375)
	at bow.charTyped(SourceFile:40)
	at bmu.a(SourceFile:360)
	at bmu$$Lambda$728/1205558159.run(Unknown Source)
	at bqo.a(SourceFile:428)
	at bmu.a(SourceFile:360)
	at bmu$$Lambda$159/56531119.invoke(Unknown Source)
	at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520)
	at bnh.a(SourceFile:282)
	at bmx.b(SourceFile:846)
	at bmx.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:140)

Attachments

Comments 2

In contrast to MC-122317, this is also affected by Uppercase characters, where in /give you can use Uppercase as normal.

ScyllarusDactyl

(Unassigned)

Confirmed

crash, criteria, scoreboard

Minecraft 17w49a, Minecraft 17w49b

Minecraft 17w50a

Retrieved