mojira.dev
MC-15058

Scoreboard "health" objective set to display "belowname" disconnecting player on multiplayer with end of stream

When trying to join a server with the new snapshot/launcher minecraft returns a nullpointerexception and the server states end of stream

Steps to reproduce:

  • Enter /scoreboard objectives add Health health

  • Enter /scoreboard objectives setdisplay belowName Health

  • Leave the world

  • Join the world

Linked issues

MC-13614 Server error MC-14545 SMP doesn't let players in when changing from .exe to snapshot .jar MC-14552 Server kept crashin' MC-15130 Null Pointer Exception? MC-15134 SMP End of Stream MC-15143 java.lang.NullPointerException, cannot connect to old world MC-15147 Internal Server Error MC-15407 java.lang.NullPointerException and end of stream MC-15804 Vanilla Server - Players get Disconnected: "Take too long to log in" MC-16452 Client disconnect from server because of scoreboard MC-16480 End of Stream MC-16646 [SEVERE] Reached end of stream for / IP MC-16754 Worlds do not run in multiplayer MC-16882 Unable to join LAN or server MC-17449 Receiving "End of Stream" when I load a old world with snapshot server MC-17465 Scoreboard Health Function Gives End of Stream Error Upon Joining Multiplayer MC-17478 un-avoidable END OF STREAM MC-17525 I can't connect myself to the server MC-18004 Every one gets kicked at once: [SEVERE] Reached end of stream for /IP

Attachments

Comments

Swiftykitty2K

I have the exact same problem. People could connect to my server fine in updates 1.5.1 and before, but on 13w16a no one can connect! My server is run on OS X 10.8.3 with Apple Java 7. I tryed downgrading to Apple Java 6, but it didn't fix anything. I get the following messages in the server log:

2013-04-18 17:56:51 [INFO] Starting minecraft server version 13w16a
2013-04-18 17:56:51 [INFO] Loading properties
2013-04-18 17:56:51 [INFO] Default game type: SURVIVAL
2013-04-18 17:56:51 [INFO] Generating keypair
2013-04-18 17:56:52 [INFO] Starting Minecraft server on 192.168.2.35:25565
2013-04-18 17:56:52 [INFO] Preparing level "Pangaea XLV"
2013-04-18 17:56:52 [INFO] Preparing start region for level 0
2013-04-18 17:56:53 [INFO] Preparing spawn area: 80%
2013-04-18 17:56:53 [INFO] Done (1.465s)! For help, type "help" or "?"
2013-04-18 17:57:32 [SEVERE] Reached end of stream
2013-04-18 17:57:39 [INFO] Swiftykitty2K[/192.168.2.35:55043] logged in with entity id 491 at (-1902.7971640969888, 63.0, 580.3103940038204)
2013-04-18 17:57:39 [INFO] Disconnecting Swiftykitty2K [/192.168.2.35:55043]: Internal server error
2013-04-18 17:57:39 [WARNING] Failed to handle packet for Swiftykitty2K [/192.168.2.35:55043]: u: Sending packet
u: Sending packet
	at jj.b(SourceFile:443)
	at gw.a(SourceFile:122)
	at gw.a(SourceFile:77)
	at jh.d(SourceFile:161)
	at jh.c(SourceFile:53)
	at ih.a(SourceFile:44)
	at ig.b(SourceFile:29)
	at net.minecraft.server.MinecraftServer.r(SourceFile:488)
	at ib.r(SourceFile:258)
	at net.minecraft.server.MinecraftServer.q(SourceFile:405)
	at net.minecraft.server.MinecraftServer.run(SourceFile:339)
	at gr.run(SourceFile:582)
Caused by: java.lang.NullPointerException
	at fh.a(SourceFile:66)
	at ck.a(SourceFile:159)
	at jj.b(SourceFile:426)
	... 11 more
2013-04-18 17:57:39 [SEVERE] Reached end of stream
2013-04-18 17:57:41 [SEVERE] Reached end of stream
2013-04-18 17:57:53 [INFO] Swiftykitty2K[/192.168.2.35:55050] logged in with entity id 492 at (-1902.7971640969888, 63.0, 580.3103940038204)
2013-04-18 17:57:53 [INFO] Disconnecting Swiftykitty2K [/192.168.2.35:55050]: Internal server error
2013-04-18 17:57:53 [WARNING] Failed to handle packet for Swiftykitty2K [/192.168.2.35:55050]: u: Sending packet
u: Sending packet
	at jj.b(SourceFile:443)
	at gw.a(SourceFile:122)
	at gw.a(SourceFile:77)
	at jh.d(SourceFile:161)
	at jh.c(SourceFile:53)
	at ih.a(SourceFile:44)
	at ig.b(SourceFile:29)
	at net.minecraft.server.MinecraftServer.r(SourceFile:488)
	at ib.r(SourceFile:258)
	at net.minecraft.server.MinecraftServer.q(SourceFile:405)
	at net.minecraft.server.MinecraftServer.run(SourceFile:339)
	at gr.run(SourceFile:582)
Caused by: java.lang.NullPointerException
	at fh.a(SourceFile:66)
	at ck.a(SourceFile:159)
	at jj.b(SourceFile:426)
	... 11 more
2013-04-18 17:57:53 [SEVERE] Reached end of stream
2013-04-18 17:57:55 [SEVERE] Reached end of stream
2013-04-18 17:57:56 [INFO] Swiftykitty2K[/192.168.2.35:55055] logged in with entity id 493 at (-1902.7971640969888, 63.0, 580.3103940038204)
2013-04-18 17:57:56 [INFO] Disconnecting Swiftykitty2K [/192.168.2.35:55055]: Internal server error
2013-04-18 17:57:56 [WARNING] Failed to handle packet for Swiftykitty2K [/192.168.2.35:55055]: u: Sending packet
u: Sending packet
	at jj.b(SourceFile:443)
	at gw.a(SourceFile:122)
	at gw.a(SourceFile:77)
	at jh.d(SourceFile:161)
	at jh.c(SourceFile:53)
	at ih.a(SourceFile:44)
	at ig.b(SourceFile:29)
	at net.minecraft.server.MinecraftServer.r(SourceFile:488)
	at ib.r(SourceFile:258)
	at net.minecraft.server.MinecraftServer.q(SourceFile:405)
	at net.minecraft.server.MinecraftServer.run(SourceFile:339)
	at gr.run(SourceFile:582)
Caused by: java.lang.NullPointerException
	at fh.a(SourceFile:66)
	at ck.a(SourceFile:159)
	at jj.b(SourceFile:426)
	... 11 more
2013-04-18 17:57:56 [SEVERE] Reached end of stream
2013-04-18 17:57:57 [SEVERE] Reached end of stream
2013-04-18 17:58:07 [INFO] Stopping server
2013-04-18 17:58:07 [INFO] Saving players
2013-04-18 17:58:07 [INFO] Saving worlds
2013-04-18 17:58:07 [INFO] Closing listening thread
2013-04-18 17:58:07 [INFO] Saving chunks for level 'Pangaea XLV'/Overworld
2013-04-18 17:58:07 [INFO] Saving chunks for level 'Pangaea XLV'/Nether
2013-04-18 17:58:07 [INFO] Saving chunks for level 'Pangaea XLV'/The End
Swiftykitty2K

Server log where NullPointerException is found.

Swiftykitty2K

I have narrowed the problem somewhat. The issue creating the end of stream in located in the world folder, something with loading pre1.5.1 worlds to 13w16a. To clear this up, my server world was created in weekly snapshot 12w38b and has used every single release, both official and snapshot, since that release, if it makes any difference.

Swiftykitty2K

I can confirm for 13w18b.

EDIT: I believe that the issue directly relates to the idcounts file in the resources folder. When I deleted the idcounts file in the resource folder in world, DIM1 and DIM-1 players can connect just fine.

EDIT2: This doesn't work for some people. More investigating is taking place.

Andrew Dunbard

I tried to delete the idcounts file, but there was only one. Assuming you're running something other than Windows, because there isn't a resources folder. Issue persists.

Swiftykitty2K

Derp. I meant the idcounts in the DATA folder. Back up before you attempt, but it works for me when I delete [world name]>data>idcounts, [world name]>DIM1>data>idcounts and [world name]>DIM-1>data>idcounts. Sorry.

Andrew Dunbard

Hm. I actually don't have idcounts files in the DIM1 and DIM-1 folders. Odd.

Swiftykitty2K

Has anyone been to the Nether or the End on your server? Just in case you didn't know, DIM1=Nether and DIM-1=End. 🙂

Andrew Dunbard

Yes, we've been to the Nether extensively, but not the End. In any case, there's no idcounts file in either place.

Swiftykitty2K

Odd. Well anyways, after backing up your world, try deleting the idcounts folder that you found and tell me if it fixes it! If it doesn't then I did something else that fixed it. :3

Andrew Dunbard

yeah, deleting the only idcounts file I could find had no measurable effect. Same errors.

Swiftykitty2K

Performing more research. I shall inform you when I figure out the problem.

Andrew Dunbard

Attn Dinnerbone: Issue has NOT been resolved. Attempted to run server with new 18c server executable, still refusing connections with "End of Stream"

Tails

Reopened.

Zipron Brendt

Deleting the world/data/scoreboard.dat file like Chili Fries suggested worked for me also. Seems like he has located the problem.

Ed Kelly

Chili Fries is correct, the issue is related to the scoreboard, in particular the health objective type. After the snapshots not working at all for me due to this issue, I removed my health objective and upgraded the server; alas, it works fine now.

Max Hadson

Can also confirm it occurs when the display is set to the sidebar

Frapjump

not just for Health. There's something more general.
+ ooo yay db is workin on it

lapppy

Confirmed for snapshot 13w23b.

lapppy

Did some quick testing, and I can confirm this is fixed in 13w24a!
Thanks Dinnerbone!

Marc Tappert

Nathan Adams

Community Consensus

multiplayer

Snapshot 13w17a, Snapshot 13w18a, Snapshot 13w18b, Snapshot 13w19a, Snapshot 13w21a, Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w23a, Snapshot 13w23b

Snapshot 13w18c, Snapshot 13w24a

Retrieved