[MC-11997] Minecraft exits on 503 for http://s3.amazonaws.com/MinecraftResources/ Created: 15/Mar/13  Updated: 16/Mar/13  Resolved: 16/Mar/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.5
Fix Version/s: None

Type: Bug
Reporter: Vincent Pelletier Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: crash, server, singleplayer

Attachments: File hs_err_pid9525.log    
Confirmation Status: Unconfirmed
Game Mode: Creative

 Description   

Crash happened on loading a game, while chunks where being loaded & displayed (not all the world was visible). I guess the "Unexpected end of file from server" error comes from server dying from the first "Server returned HTTP response code: 503 for URL: http://s3.amazonaws.com/MinecraftResources/" error. Loading that URL in a browser right after the crash works (amazon hickup ?). Minecraft could probably retry instead of dying.

2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/lava_flow.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/water_flow.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_0.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_1.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/lava.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/portal.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/blocks/water.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/items/clock.txt
2013-03-15 22:06:55 [CLIENT] [INFO] Found animation info for: textures/items/compass.txt
java.io.IOException: Server returned HTTP response code: 503 for URL: http://s3.amazonaws.com/MinecraftResources/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
at java.net.URL.openStream(URL.java:1031)
at aum.run(SourceFile:33)
2013-03-15 22:07:08 [SERVER] [INFO] Starting integrated minecraft server version 1.5
2013-03-15 22:07:08 [SERVER] [INFO] Generating keypair
2013-03-15 22:07:08 [SERVER] [INFO] Preparing start region for level 0
loading single player
2013-03-15 22:07:09 [SERVER] [INFO] Subdino[/127.0.0.1:0] logged in with entity id 213 at (200.9899741361323, 74.88349698158974, -276.31128138916205)
2013-03-15 22:07:09 [SERVER] [INFO] Saving and pausing game...
2013-03-15 22:07:09 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/Overworld
2013-03-15 22:07:09 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/Nether
2013-03-15 22:07:09 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/The End
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:770)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:767)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)
at bfp.run(SourceFile:26)
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:770)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:767)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)
at bfp.run(SourceFile:26)
2013-03-15 22:07:17 [SERVER] [INFO] Saving and pausing game...
2013-03-15 22:07:17 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/Overworld
2013-03-15 22:07:17 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/Nether
2013-03-15 22:07:17 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/The End



 Comments   
Comment by Vincent Pelletier [ 16/Mar/13 ]

Thanks for the login automation hint. May be "dangerous" though, as they are then contained in JVM crash logs.

I tried 10 times on v7: no crash (I confirmed the jvm version using minecraft's snooper report).
I tried 10 times on v6: 10 segfaults.

So "closed invalid" resolution sounds right indeed.
Thank you very much.

Comment by Kumasasa [ 16/Mar/13 ]

You may take a look at MC-3895 regarding crash in the nether and Java updates.

Comment by Kumasasa [ 16/Mar/13 ]

Just now a similar crash came in: hs_err_pid4900.log in MC-12048

Comment by Kumasasa [ 16/Mar/13 ]

Resolving this now, feel free to put additional info to this ticket.

Comment by Kumasasa [ 16/Mar/13 ]

You can at least login with the command line: http://www.minecraftwiki.net/wiki/Stand_alone_client, but there is no function to load a world.

Comment by Vincent Pelletier [ 16/Mar/13 ]

I tried with v7 once, no crash.
I retried with v6 once, no crash (?!). Next try on v6: again burning CPU, 200% (ie, 2 cores full speed - I now recall it was also what happened yesterday on 2nd try, and I confirm the jvm doesn't react on "kill", so I "-9"'ed). 3rd try on v6: crash, again address 0xb.

I'll try to reproduce the crash on v7.
Is there a way to automate login & map loading steps ?

Comment by Vincent Pelletier [ 16/Mar/13 ]

JVM crash log of 3rd attempt

Comment by Kumasasa [ 16/Mar/13 ]

Ah, ok. Couldn't read out of your comments that the JVM crashed and not Minecraft.

I'd like to resolve this ticket, since the original issue ("exits on 503") is not an issue, it's only catching the non working HTTP connections and throwing that at the console.

In fact it is segfaulting in some part of Minecraft:

# Problematic frame:
# J  aqx.a(DDD)Laqw;

but I strongly suspect the JVM and not Minecraft.

Nevertheless, please attach a hs_err_pid*.log, maybe there is some valuable information inside.

Did you try updating OpenJDK to Version 7 ?

Comment by Vincent Pelletier [ 16/Mar/13 ]

Do you mean ~/hs_err_pid$PID.log files ? None was generated for the first crash, but when I tried to reproduce it 4 were generated (see below). Yesterday I gave a try at running java under valgrind, tons of errors are logged even before getting to the login & changelog screen. Then I tried gdb in hope to be able to understand jvm's state better, but the jvm segfaulted even before the login screen.

Scrolling up my terminal, I realise I missed a bit of output:

/home/vincent/bin/minecraft : ligne 5 :  8354 Trappe pour point d'arrêt et de trace              "$JAVA" -Xmx2048M -Xms1024M -cp ~/bin/minecraft.jar net.minecraft.LauncherFrame

LANG is fr_FR, this should be something like "Trace and brakpoint trap". bin/minecraft is a trivial shell script:

#!/bin/sh
#JAVA="/usr/lib/jvm/java-6-sun/jre/bin/java"
JAVA="java"

"$JAVA" -Xmx2048M -Xms1024M -cp ~/bin/minecraft.jar net.minecraft.LauncherFrame

Detail of other runs:
1) Stuck churning CPU, UI unresponsive, had to kill (-9 ?) it, so output is:

2013-03-15 22:25:13 [SERVER] [INFO] Starting integrated minecraft server version 1.5
2013-03-15 22:25:13 [SERVER] [INFO] Generating keypair
2013-03-15 22:25:13 [SERVER] [INFO] Preparing start region for level 0
loading single player
2013-03-15 22:25:13 [SERVER] [INFO] Subdino[/127.0.0.1:0] logged in with entity id 213 at (200.9899741361323, 74.88349698158974, -276.31128138916205)
2013-03-15 22:25:14 [SERVER] [INFO] Saving and pausing game...
2013-03-15 22:25:14 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/Overworld
2013-03-15 22:25:14 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/Nether
2013-03-15 22:25:14 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/The End
/home/vincent/bin/minecraft : ligne 5 :  9348 Processus arrêté      "$JAVA" -Xmx2048M -Xms1024M -cp ~/bin/minecraft.jar net.minecraft.LauncherFrame

2) Segfault:

[...]
2013-03-15 22:26:43 [SERVER] [INFO] Saving chunks for level 'Creative 1.4.2'/The End
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2afed3720b, pid=9525, tid=139822370756352
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.12.1
# Distribution: Debian GNU/Linux 7.0 (wheezy), package 6b27-1.12.1-2
# Problematic frame:
# J  aqx.a(DDD)Laqw;
#
# An error report file with more information is saved as:
# /home/vincent/hs_err_pid9525.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
/home/vincent/bin/minecraft : ligne 5 :  9525 Abandon                 "$JAVA" -Xmx2048M -Xms1024M -cp ~/bin/minecraft.jar net.minecraft.LauncherFrame

3), 4), 5) segfault caused by access to address 0xb

Given that I cannot reproduce the problem anymore, should this ticket be closed ? Should I attach an hs_err_pid*.log file before ?

Comment by Kumasasa [ 16/Mar/13 ]

Please attach the crash report.

Comment by Vincent Pelletier [ 15/Mar/13 ]

Re-reading the timestamps, I may have jumped to conclusion too early: the crash happened several seconds after the stack traces. I also noticed I get those "Unexpected end of file from server" also when a game is running fine. I'm starting to suspect something more system-specific, so more details:
Debian sid x86_64, OpenJDK 6 (package version: 6b27-1.12.1-2)

Comment by Vincent Pelletier [ 15/Mar/13 ]

It did crash, yes.
For some reason, I cannot reproduce the reported output, and crash occurs after a split second, while for the bug reported here I had the time to make a few (<5, looking around a bit) steps in the game while it was loading the level.
Game data being cached in ram at os level ? Partial data migration leading to another problem ? Just my character facing toward something triggering the bug now (log mentions saving the game, maybe my char is facing a different direction now, hard to tell for sure).

Comment by Kumasasa [ 15/Mar/13 ]

But did Minecraft really crash or did you just get those messages in the console ?

Generated at Sun Jan 12 12:29:28 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.