mojira.dev
MC-4715

Crash when using spawned in firework / Server kicks you with an End of Stream error

When a spawned in firework is launched the server kicks with End of stream and can not reconnect until entity is despawned.
java.lang.NullPointerException
at ef.a(SourceFile:310)
at mj.a(SourceFile:237)
at mj.a(SourceFile:157)
at et.a(SourceFile:36)
at ef.a(SourceFile:214)
at cg.h(SourceFile:178)
at cg.d(SourceFile:15)
at ci.run(SourceFile:114)

Linked issues

MC-6204 Firework Crashes My Server MC-4358 Fireworks going through lava kick players with end of stream in multiplayer MC-4723 Using a Firework Rocket with no stars (just paper and gunpowder) kicks the player with an End of Stream error. MC-4731 Minecraft crashes when placing rocket with no stars MC-4783 Open To LAN Bug MC-4809 Fireworks In Multiplayer MC-4828 End of stream MC-4874 Disconnect when firing firework MC-4895 End Of Stream Error, In 1.4.6 Pre-Release, If you create a firework without any bonus effects, and place on, it gives you a end of stream error when your on a multiplayer server thats running on 1.4.6 MC-4939 Flipping a lever causes the server to become unresponsive MC-4946 Firework specifications scrubbed, When stacked. Causes unrecoverable 'End of stream' error. MC-4948 Feyverki. MC-4994 Normal Firework usage on servers cause End of Stream for client MC-5014 Fireworks causes the server to loose connection MC-5027 Fireworks on multiplayer MC-5034 Minecraft server throws me out, complaining about NPE MC-5040 Fireworks causing server disconnect and an inability to reconnect MC-5041 Red Stone will cause errors in MultiPLayer MC-5045 After my friend launched a firework, something happened to the server and both of us cant get in the server anymore. MC-5050 Players connecting to a LAN world crash on the use of firework rockets MC-5066 strange firework MC-5083 Game Crashes when using fireworks MC-5085 NullPointerException on connection MC-5089 Crash on server close MC-5090 Fireworks Crashes anyone near by when placing** MC-5114 End of Stream MC-5122 End of Stream Error on 1.4.6 server MC-5123 Fireworks Server Crash MC-5131 Multiplayer crashes on Firework placement MC-5150 Firework's disconnects you from server MC-5190 Firework Rocket fails to operate in multiplayer environments MC-5200 Server crash when launching fireworks MC-5248 Crashing when right clicking Firework rocket MC-5258 Server 1.4.6 drops clients when connect or lunch fireworks MC-5265 Shows End of Stream on Open To LAN Upon dispensing fireworks from dispenser. MC-5374 Crashes when using empty firework in LAN MC-5596 Dispenser Issue on LAN Servers MC-6307 Bug with fireworks in dispenser MC-6577 Fire work cause end of stream when fired in a cave MC-6610 Fireworks fail servers MC-6638 Can't launch framework rocket on server (causes "end of stream" error) MC-7504 Firework Usage on Server Caused Connection Loss

Attachments

Comments

kumasasa

Can you please attach the complete crash report ?

YukonAppleGeek

It only happens on a server and it repeatedly kicks you until the entity is despawned and the console only outputs that.

kumasasa

updated title

Rickard Åberg

Confirmed, just installed 1.4.6pre to try out the fireworks, instant crash upon firing them.
This obviously needs fixing since it's one of the features announced for 1.4.6.

I'm not sure what the title implys but this firework was created with gunpowder/paper.

Crashes with "INFO java.lang.NullPointerException".

Connor B

The server I'm on has been down for just about 2 days now because of this.

Still shows up in the server list, but trying to connect either gives a communication error or End of Stream.

No idea what the server's saying since I don't own it.

YukonAppleGeek

The way you fix it is constantly keep connecting and after about 10-30 connects the entity despawns and it no longer kicks you.

Rickard Åberg

Well, if you can't login the entity won't despawn afaik.
I'm not sure but maybe it wasn't up on launching the fireworks the server crashed, could've been that my friend dropped them from the invenotry to the ground. Still, it's a bad bug.

Or it could be related to this MC-4723

Rickard Åberg

And even if i restart the server, it won't let me connect properly. 😞

Julien Hoffmann

Happens for me, too. Crafted a normal rocket (paper + gun powder) - placing it on the ground (using right-click) instantly kicks every player from the server.
I was no longer able to connect until after I tried for the 10th time.

Anthony Dranfield

If your server is experiencing issues with the fireworks you can load the map on single player. This will make the firework despawn and will allow you to rejoin the server. If that doesn't work open the world in mcedit and delete the fireworks entity.

Martin Goth

Still confirmed in 1.4.6
The server kicks all players on the server with end of stream (not only the one that launched the rocket)
Also launching using dispensers works fine.

_aD

I find the same symptoms when launching a crafted firework using a dispenser.

James Paige

Griefers apparently can use this as a denial-of-service attack 😞

Greg

The users client side crashes anyone on a server nearby where the firework is placed. The 3x gunpowder + paper is what method I used. From what information I have gathered, I found out that ANYONE WITHIN 64 blocks will be kicked (including the placer of said firework) and receive the error message "End of Stream".

I created these from scratch AND spawned them using "gamemode 1" environment.

I checked the server.log but there are no useful information there.

*I can log back into the server just fine.

*I'm using a Linux server.

Zach Bora

Apparently my problem is related to this so posting MY stack trace. Need to fix this one too while you do this ticket which in my opinion is 2 different issues.

java.lang.NullPointerException
at ayp.a(SourceFile:303)
at azi.j_(SourceFile:74)
at azr.a(SourceFile:51)
at net.minecraft.client.Minecraft.l(SourceFile:1347)
at net.minecraft.client.Minecraft.J(SourceFile:582)
at net.minecraft.client.Minecraft.run(SourceFile:534)
at java.lang.Thread.run(Unknown Source)

Michael Crawford

Just happened to me on my server, as well.

Rodney Beck

Confirming this on v1.4.6 final. No error log is generated on either the client or the server. Doesn't kill my server but does disconnect the user with an "End of Stream" error.

Kicks players regardless of whether rocket was launched by hand or dispenser.

Ryan T. Miller

This happened on my server as well. I spawned in a blank firework, right click on the ground with it, and myself and the other person on the server nearby were kicked off the server with an End of Stream message. Trying to log back in would give us more end of stream errors or communication errors, as well as a particular java.socket error (didn't manage to copy down which one)

We repeated this twice, and did not want to try it anymore, as it required us both to attempt logging in dozens of times before we could get back on.

This is a horrifying bug, as it allows the server to be swiftly shut down with ill intent or innocent ignorance of this bug.

Rickard Åberg

Yea, everyone get this bug. I'm suprised this wasn't hotfixed.
Like someone mentioned, it can be used as a DoS attack. 😞

Michael Griffith

This issue seems to be quite serious for server security and stability, I would think the priority would be much higher.

Eli Kane

Is there any way to relocate the player without them being logged in? My server keeps me out, but my daughter (in another part of the world) can still log in successfully. A work around would sure be nice until this is fixed.

James Paige

Eli: keep trying to log in over and over. Each log-in causes a little game time to pass, so after about 20 or so failures, the firework will despawn, and you will be able to get in.

God help you if there is a dispenser full of fireworks on a redstone loop 😛

Rickard Åberg

You can always edit your player.dat file with nbtedit to change your coords... but that requires that you have access to the server.

Kilo Force

Agreed, why is this considered a minor issue?

Ron Risley

No surprise, but noted that it occurs on LAN worlds as well. My 7 year old discovered this bug within two hours of updating – it's not likely to go unnoticed!

Michael Crawford

How is this only a minor issue? Seems like a relatively big deal, if it can keep people from playing altogether.

James Paige

I am going to guess that "Minor" is the default priority, and nobody with permissions to edit the priority has noticed this bug yet.

Anon Ymus

There are no other priorities.

kumasasa

"Minor" is the only possible priority in this bug tracker.

Nikita Tratorov

When I try to lunch fireworks - server (1.4.6 with diablo-jdk1.6) kicks me out. And I can't connect anymore.
I updated java to openjdk6, but still cant connect, see the log:
Starting Minecraft...
210 recipes
27 achievements
2012-12-23 13:43:56 INFO Starting minecraft server version 1.4.6
2012-12-23 13:43:56 INFO Loading properties
2012-12-23 13:43:56 INFO Default game type: SURVIVAL
2012-12-23 13:43:56 INFO Generating keypair
2012-12-23 13:43:57 INFO Starting Minecraft server on *:25565
2012-12-23 13:43:57 WARNING **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
2012-12-23 13:43:57 WARNING The server will make no attempt to authenticate usernames. Beware.
2012-12-23 13:43:57 WARNING While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
2012-12-23 13:43:57 WARNING To change this, set "online-mode" to "true" in the server.properties file.
2012-12-23 13:43:57 INFO Preparing level "world"
2012-12-23 13:43:57 INFO Preparing start region for level 0
2012-12-23 13:43:58 INFO Done (1,132s)! For help, type "help" or "?"
Invalid argument <- Client opens LAN games
Invalid argument <- Client try to connect
2012-12-23 13:44:03 INFO NikitaTratorov/95.28.208.227:53318 logged in with entity id 27 at (-357.0897381757311, 64.0, -493.33058578735177)
java.lang.NullPointerException
at ef.a(SourceFile:310)
at mj.a(SourceFile:237)
at mj.a(SourceFile:157)
at et.a(SourceFile:36)
at ef.a(SourceFile:214)
at cg.h(SourceFile:178)
at cg.d(SourceFile:15)
at ci.run(SourceFile:114)
2012-12-23 13:44:04 INFO NikitaTratorov lost connection: disconnect.genericReason
stop
2012-12-23 13:48:57 INFO Stopping the server
2012-12-23 13:48:57 INFO Stopping server
2012-12-23 13:48:57 INFO Saving players
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
at java.net.ServerSocket.implAccept(ServerSocket.java:470)
at java.net.ServerSocket.accept(ServerSocket.java:438)
at hu.run(SourceFile:66)
Closing listening thread2012-12-23 13:48:57 INFO Saving worlds
2012-12-23 13:48:57 INFO Saving chunks for level 'world'/Overworld
2012-12-23 13:48:57 INFO Saving chunks for level 'world'/Nether
2012-12-23 13:48:57 INFO Saving chunks for level 'world'/The End

webjocky

Can anyone else confirm that this only happens under the following circumstances:
End of Stream Crash with or without dispensers with plain Firework Rockets.
End of Stream Crash WITH Dispensers and any color Small Ball fireworks (no trails/twinkle/etc.., just plain Small Ball).
All other firework scenarios with or without dispensers seem to work fine.

Nikita Tratorov

Can anyone else confirm that this only happens under the following circumstances:

Yes. While fireworks is lunched, I can't log in to server. This method works for me:

Eli: keep trying to log in over and over. Each log-in causes a little game time to pass, so after about 20 or so failures, the firework will despawn, and you will be able to get in.

So, there is a problem with fireworks in multiplayer.
But in single player all works fine, even with dispenser.

NightKev

> "Minor" is the only possible priority in this bug tracker.
Well that's pretty dumb, you'd think at least mods would be able to promote severe issues like this to "major" or something.

YukonAppleGeek

(Unassigned)

Confirmed

crash, fireworks_rocket, null-pointer-exception

Snapshot 12w50b, Minecraft 1.4.6

Minecraft 1.4.7

Retrieved