Skip to content

Game stuck on launch when the mod can't download mappings #774

@mahdoosh1

Description

@mahdoosh1

last error log before getting stuck:

[16:09:56] [Yggdrasil Key Fetcher/ERROR]: Failed to request yggdrasil public key
com.mojang.authlib.exceptions.MinecraftClientException: Failed to read from https://api.minecraftservices.com/publickeys due to Unexpected end of file from server
	at knot//com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:111)
	at knot//com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:56)
	at knot//com.mojang.authlib.yggdrasil.YggdrasilServicesKeyInfo.fetch(YggdrasilServicesKeyInfo.java:114)
	at knot//com.mojang.authlib.yggdrasil.YggdrasilServicesKeyInfo$1.run(YggdrasilServicesKeyInfo.java:89)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:309)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.net.SocketException: Unexpected end of file from server
	at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:923)
	at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:727)
	at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:920)
	at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:727)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1392)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1302)
	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:493)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:307)
	at knot//com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:82)
	... 9 more

render thread trace:

"Render thread" #3 [7426] prio=5 os_prio=0 cpu=13495.37ms elapsed=767.32s tid=0x000073d17401acd0 nid=7426 in Object.wait()  [0x000073d17abfd000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait0(java.base@25.0.2/Native Method)
	- waiting on <0x0000000647d2cee0> (a jdk.internal.net.http.HttpClientImpl$SelectorManager)
	at java.lang.Object.wait(java.base@25.0.2/Object.java:389)
	at java.lang.Thread.join(java.base@25.0.2/Thread.java:1881)
	- locked <0x0000000647d2cee0> (a jdk.internal.net.http.HttpClientImpl$SelectorManager)
	at java.lang.Thread.join(java.base@25.0.2/Thread.java:2009)
	at jdk.internal.net.http.HttpClientImpl.awaitTermination(java.net.http@25.0.2/HttpClientImpl.java:605)
	at java.net.http.HttpClient.close(java.net.http@25.0.2/HttpClient.java:892)
	at jdk.internal.net.http.HttpClientFacade.close(java.net.http@25.0.2/HttpClientFacade.java:192)
	at net.earthcomputer.clientcommands.util.MappingsHelper.lambda$static$0(MappingsHelper.java:129)
	at net.earthcomputer.clientcommands.util.MappingsHelper$$Lambda/0x000000005c6f38e0.get(Unknown Source)
	at net.minecraft.class_156.method_656(class_156.java:593)
	at net.earthcomputer.clientcommands.util.MappingsHelper.<clinit>(MappingsHelper.java:61)
	at net.earthcomputer.clientcommands.ClientCommands.onInitializeClient(ClientCommands.java:78)
	at net.fabricmc.loader.impl.game.minecraft.Hooks$$Lambda/0x000000005bfb4440.accept(Unknown Source)
	at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:405)
	at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
	at net.minecraft.class_310.<init>(class_310.java:475)
	at net.minecraft.client.main.Main.main(Main.java:234)

i asked gemini to explain the traces and this is his answer:

Execution Trace

    Render Thread [7426] triggers <clinit> for net.earthcomputer.clientcommands.util.MappingsHelper.

    Static initializer invokes HttpClient.close() via lambda$static$0.

    Render Thread enters TIMED_WAITING at jdk.internal.net.http.HttpClientImpl.awaitTermination (line 605).

    HttpClient-2-SelectorManager [8321] remains in native epoll_wait (RUNNABLE).

The Deadlock The Render Thread holds the Class Initialization Lock for MappingsHelper. It is blocking to wait for the SelectorManager thread to terminate. If SelectorManager requires any synchronization or class resolution involving MappingsHelper to complete its shutdown, a circular dependency occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions