mojira.dev
MC-14690

ScoreBoard health objective crashes game

When typing the command "/scoreboard players reset"then hitting tab will crash the game.

Client> u: Ticking memory connection
Client> 	at jm.b(SourceFile:39)
Client> 	at bhc.b(SourceFile:84)
Client> 	at net.minecraft.server.MinecraftServer.r(SourceFile:488)
Client> 	at net.minecraft.server.MinecraftServer.q(SourceFile:405)
Client> 	at bgz.q(SourceFile:124)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:339)
Client> 	at gr.run(SourceFile:582)
Client> Caused by: java.lang.NullPointerException
Client> 	at z.a(SourceFile:175)
Client> 	at z.a(SourceFile:196)
Client> 	at ht.a(SourceFile:527)
Client> 	at aa.b(SourceFile:123)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:705)
Client> 	at jj.a(SourceFile:751)
Client> 	at cx.a(SourceFile:29)
Client> 	at cj.b(SourceFile:64)
Client> 	at jj.d(SourceFile:56)
Client> 	at jm.b(SourceFile:35)
Client> 	... 6 more
Client> 2013-04-25 17:00:55 [SERVER] [SEVERE] Encountered an unexpected exception u
Client> u: Ticking memory connection
Client> 	at jm.b(SourceFile:39)
Client> 	at bhc.b(SourceFile:84)
Client> 	at net.minecraft.server.MinecraftServer.r(SourceFile:488)
Client> 	at net.minecraft.server.MinecraftServer.q(SourceFile:405)
Client> 	at bgz.q(SourceFile:124)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:339)
Client> 	at gr.run(SourceFile:582)
Client> Caused by: java.lang.NullPointerException
Client> 	at z.a(SourceFile:175)
Client> 	at z.a(SourceFile:196)
Client> 	at ht.a(SourceFile:527)
Client> 	at aa.b(SourceFile:123)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:705)
Client> 	at jj.a(SourceFile:751)
Client> 	at cx.a(SourceFile:29)
Client> 	at cj.b(SourceFile:64)
Client> 	at jj.d(SourceFile:56)
Client> 	at jm.b(SourceFile:35)
Client> 	... 6 more
Client> 2013-04-25 17:00:55 [SERVER] [SEVERE] This crash report has been saved to: C:\Users\Harvest\AppData\Roaming\.minecraft\crash-reports\crash-2013-04-25_17.00.55-server.txt
Client> 2013-04-25 17:00:55 [SERVER] [INFO] Stopping server
Client> 2013-04-25 17:00:55 [SERVER] [INFO] Saving players
Client> #@?@# Game crashed! Crash report could not be saved. #@?@#
Client> 2013-04-25 17:00:55 [SERVER] [INFO] Stopping server
Client> java.lang.IllegalArgumentException: Empty string not allowed
Client> 	at cg.<init>(SourceFile:15)
Client> 	at bu.a(SourceFile:77)
Client> 	at asa.e(SourceFile:186)
Client> 	at asa.b(SourceFile:112)
Client> 	at alh.a(SourceFile:88)
Client> 	at alh.a(SourceFile:76)
Client> 	at jb.a(SourceFile:642)
Client> 	at jb.a(SourceFile:627)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:263)
Client> 	at net.minecraft.server.MinecraftServer.k(SourceFile:283)
Client> 	at bgz.k(SourceFile:234)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:372)
Client> 	at gr.run(SourceFile:582)
Client> AL lib: (EE) alc_cleanup: 1 device not closed
Game ended with bad state (exit code -2)

Text from the launcher

Related issues

Attachments

Comments

migrated
[media][media]
hunter tracy

Update:
The crash only happens if you set the sidedisplay to display health. After quitting the game, a blank player will appear and then trying to bring up that player's name using tab will cause a crash.
Sooo.... scoreboard creating ghosts that then cause the crash?

Tails

Unable to reproduce in 13w21b.

hunter tracy

Reproduced in 13w21b
do the following.
/scoreboard objectives add Health health
/scoreboard objectives setdisplay sidebar

Log out then, log back into the world.
Then,
/scoreboard players reset [tab]
game crashes.
It tries to access a name that is invalid, the game creates a "ghost" when you log out. You will see an empty slot with a 20 for health in the sidebar.

Client> 2013-05-28 17:50:39 [CLIENT] [INFO] [CHAT] set, add, remove, reset, list
Client> u: Ticking memory connection
Client> 	at jp.b(SourceFile:50)
Client> 	at bie.b(SourceFile:84)
Client> 	at net.minecraft.server.MinecraftServer.s(SourceFile:491)
Client> 	at net.minecraft.server.MinecraftServer.r(SourceFile:408)
Client> 	at bib.r(SourceFile:125)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:342)
Client> 	at gu.run(SourceFile:585)
Client> Caused by: java.lang.NullPointerException
Client> 	at z.a(SourceFile:170)
Client> 	at z.a(SourceFile:191)
Client> 	at hw.a(SourceFile:531)
Client> 	at aa.b(SourceFile:124)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:708)
Client> 	at jm.a(SourceFile:757)
Client> 	at cz.a(SourceFile:31)
Client> 	at cj.b(SourceFile:64)
Client> 	at jm.d(SourceFile:57)
Client> 	at jp.b(SourceFile:37)
Client> 	... 6 more
Client> 2013-05-28 17:50:40 [SERVER] [SEVERE] Encountered an unexpected exception u
Client> u: Ticking memory connection
Client> 	at jp.b(SourceFile:50)
Client> 	at bie.b(SourceFile:84)
Client> 	at net.minecraft.server.MinecraftServer.s(SourceFile:491)
Client> 	at net.minecraft.server.MinecraftServer.r(SourceFile:408)
Client> 	at bib.r(SourceFile:125)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:342)
Client> 	at gu.run(SourceFile:585)
Client> Caused by: java.lang.NullPointerException
Client> 	at z.a(SourceFile:170)
Client> 	at z.a(SourceFile:191)
Client> 	at hw.a(SourceFile:531)
Client> 	at aa.b(SourceFile:124)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:708)
Client> 	at jm.a(SourceFile:757)
Client> 	at cz.a(SourceFile:31)
Client> 	at cj.b(SourceFile:64)
Client> 	at jm.d(SourceFile:57)
Client> 	at jp.b(SourceFile:37)
Client> 	... 6 more
Client> 2013-05-28 17:50:40 [SERVER] [SEVERE] This crash report has been saved to: C:\Users\Harvest\AppData\Roaming\.minecraft\crash-reports\crash-2013-05-28_17.50.40-server.txt
Client> 2013-05-28 17:50:40 [SERVER] [INFO] Stopping server
Client> 2013-05-28 17:50:40 [SERVER] [INFO] Saving players
Client> #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Harvest\AppData\Roaming\.minecraft\crash-reports\crash-2013-05-28_17.50.40-server.txt
Client> 2013-05-28 17:50:40 [SERVER] [INFO] Stopping server
Client> java.lang.IllegalArgumentException: Empty string not allowed
Client> 	at cg.<init>(SourceFile:15)
Client> 	at bu.a(SourceFile:77)
Client> 	at asn.e(SourceFile:186)
Client> 	at asn.b(SourceFile:112)
Client> 	at alu.a(SourceFile:88)
Client> 	at alu.a(SourceFile:76)
Client> 	at je.a(SourceFile:646)
Client> 	at je.a(SourceFile:631)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:266)
Client> 	at net.minecraft.server.MinecraftServer.l(SourceFile:286)
Client> 	at bib.l(SourceFile:235)
Client> 	at asx.E(SourceFile:1890)
Client> 	at ayj.run(SourceFile:72)
Client> java.lang.IllegalArgumentException: Empty string not allowed
Client> 	at cg.<init>(SourceFile:15)
Client> 	at bu.a(SourceFile:77)
Client> 	at asn.e(SourceFile:186)
Client> 	at asn.b(SourceFile:112)
Client> 	at alu.a(SourceFile:88)
Client> 	at alu.a(SourceFile:76)
Client> 	at je.a(SourceFile:646)
Client> 	at je.a(SourceFile:631)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:266)
Client> 	at net.minecraft.server.MinecraftServer.l(SourceFile:286)
Client> 	at bib.l(SourceFile:235)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:375)
Client> 	at gu.run(SourceFile:585)
Client> AL lib: (EE) alc_cleanup: 1 device not closed
Game ended with bad state (exit code -1)
Deleting C:\Users\Harvest\AppData\Roaming\.minecraft\versions\13w21b\13w21b-natives-3561969918283
Couldn't delete C:\Users\Harvest\AppData\Roaming\.minecraft\versions\13w21b\13w21b-natives-3561969918283 - scheduling for deletion upon exit
Tails

Ah I was doing it wrong. I entered the reset command first then hit tab, but confirmed now 🙂

hunter tracy

This is spit out when hitting esc in a ghosted world.

Client> 2013-05-28 18:17:15 [SERVER] [INFO] Starting integrated minecraft server version 13w21b
Client> 2013-05-28 18:17:15 [SERVER] [INFO] Generating keypair
Client> 2013-05-28 18:17:15 [SERVER] [INFO] Preparing start region for level 0
Client> loading single player
Client> 2013-05-28 18:17:16 [SERVER] [INFO] GaleHarvest[/127.0.0.1:0] logged in with entity id 94703 at (52.403427666534974, 4.0, 1067.3630653424768)
Client> 2013-05-28 18:17:16 [SERVER] [INFO] GaleHarvest joined the game
Client> Setting up custom skins
Client> 2013-05-28 18:17:18 [SERVER] [INFO] Saving and pausing game...
Client> 2013-05-28 18:17:18 [SERVER] [INFO] Saving chunks for level 'New World'/Overworld
Client> java.lang.IllegalArgumentException: Empty string not allowed
Client> 	at cg.<init>(SourceFile:15)
Client> 	at bu.a(SourceFile:77)
Client> 	at asn.e(SourceFile:186)
Client> 	at asn.b(SourceFile:112)
Client> 	at alu.a(SourceFile:88)
Client> 	at alu.a(SourceFile:76)
Client> 	at je.a(SourceFile:646)
Client> 	at je.a(SourceFile:631)
Client> 	at net.minecraft.server.MinecraftServer.a(SourceFile:266)
Client> 	at bib.r(SourceFile:121)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:342)
Client> 	at gu.run(SourceFile:585)
Client> 2013-05-28 18:17:18 [SERVER] [INFO] Saving chunks for level 'New World'/Nether
Client> 2013-05-28 18:17:18 [SERVER] [INFO] Saving chunks for level 'New World'/The End

hunter tracy

(Unassigned)

Confirmed

crash, health, objective, scoreboard

Snapshot 13w17a, Snapshot 13w19a, Snapshot 13w21a, Snapshot 13w21b

Snapshot 13w24a

Retrieved