Launching Minecraft after starting the launcher hangs for ~30s in "Prepare"
While launching the game for the first time I noticed that it requires an unexpected long time after I (re)started the launcher.
Problem description
While inspecting the launcher log I found out that when starting the game inspects all JRE files. Sha1Cacher runs into a problem (when reading WinFallbackLookup.dll) for the first time:
[Info: 2023-01-03 09:39:24.6085160: PistonInstaller.cpp(283)] Inspecting files in C:\...\java-runtime-gamma [Info: 2023-01-03 09:39:24.6086056: PistonInstaller.cpp(284)] Using Sha1Cacher from thread 2716 [Error: 2023-01-03 09:39:24.6190328: Sha1Cacher.cpp(57)] Error reading cached SHA-1: bin/WinFallbackLookup.dll /#// 16660356700798870 [Info: 2023-01-03 09:39:24.6385445: Sha1Cacher.cpp(111)] SHA1 cacher get C:\...\api-ms-win-core-console-l1-1-0.dll, internal: /:\...\api-ms-win-core-console-l1-1-0.dll
After this the launcher hangs for nearly exactly 30s (I assume this is some kind of timeout) in the "Prepare"-Phase:
[Info: 2023-01-03 09:39:28.2058376: PistonInstaller.cpp(286)] Finished using Sha1Cacher from thread 2716
[Info: 2023-01-03 09:39:28.2100040: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Debug Have 3442 total files to check or download
[Info: 2023-01-03 09:39:28.2248375: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:39:29.4678618: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:39:30.2815531: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:39:30.6730166: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:39:31.0791758: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
...
[Info: 2023-01-03 09:40:00.4160632: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:40:00.6694063: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
Then it reruns the inspection and this time it succeeds and launches the game:
[Info: 2023-01-03 09:40:00.6704424: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Info Starting!
[Info: 2023-01-03 09:40:00.6707129: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Info Minecraft client 1.19.3 is ready to start.
[Info: 2023-01-03 09:40:00.6707869: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Debug Nothing to download!
[Info: 2023-01-03 09:40:00.6708328: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Debug Downloading Java Runtime java-runtime-gamma:17.0.3
[Info: 2023-01-03 09:40:00.6744973: PistonInstaller.cpp(337)] Inspecting files in C:\...\java-runtime-gamma
[Info: 2023-01-03 09:40:00.6883486: Sha1Cacher.cpp(111)] SHA1 cacher get C:\...\api-ms-win-core-console-l1-1-0.dll, internal: /:\...\api-ms-win-core-console-l1-1-0.dll
[Info: 2023-01-03 09:40:00.6892072: Sha1Cacher.cpp(111)] SHA1 cacher get C:\...\api-ms-win-core-console-l1-2-0.dll, internal: /:\...\api-ms-win-core-console-l1-2-0.dll
...
[Info: 2023-01-03 09:40:01.0411712: Sha1Cacher.cpp(111)] SHA1 cacher get C:\...\release, internal: /:\...\release
[Info: 2023-01-03 09:40:01.0511936: PistonInstaller.cpp(521)] Using Sha1Cacher from thread 4920
[Info: 2023-01-03 09:40:01.0615690: Sha1Cacher.cpp(146)] SHA1 cacher put C:\...\WinFallbackLookup.dll, internal: /:\...\WinFallbackLookup.dll, hash:
[Info: 2023-01-03 09:40:01.0616027: Sha1Cacher.cpp(146)] SHA1 cacher put C:\...\api-ms-win-core-console-l1-2-0.dll, internal: /:\...\api-ms-win-core-console-l1-2-0.dll, hash:
...
[Info: 2023-01-03 09:40:01.0889981: Sha1Cacher.cpp(146)] SHA1 cacher put C:\...\api-ms-win-core-heap-l1-1-0.dll, internal: /:\...\api-ms-win-core-heap-l1-1-0.dll, hash:
[Info: 2023-01-03 09:40:01.0937012: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:40:01.1130927: PistonInstaller.cpp(612)] Finished using Sha1Cacher from thread 4920
[Info: 2023-01-03 09:40:01.1182681: PistonInstaller.cpp(757)] Removing staging directory C:\...\windows-x64_staging
[Info: 2023-01-03 09:40:01.1196127: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Debug Nothing to extract!
[Info: 2023-01-03 09:40:01.1196867: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Info Using default game log configuration client-1.12.xml (outputs XML)
[Info: 2023-01-03 09:40:01.1200887: MinecraftJavaLoggingContext.cpp(267)] Destroying logging context!
[Info: 2023-01-03 09:40:01.1201624: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:40:01.1204620: LauncherAppRenderer.cpp(290)] MCLauncher.triggerUpdateEvent("coreEvent.downloads");
[Info: 2023-01-03 09:40:01.1207624: GameVersionManager.cpp(780)] resolveVersionID: Resolved custom:latest-release to 1.19.3
[Warning: 2023-01-03 09:40:01.1213454: JavaLaunchConfiguration.cpp(384)] Detected duplicate libraries in version file: com.mojang:text2speech
[Warning: 2023-01-03 09:40:01.1214298: JavaLaunchConfiguration.cpp(384)] Detected duplicate libraries in version file: com.mojang:text2speech
...
[Warning: 2023-01-03 09:40:01.1251815: JavaLaunchConfiguration.cpp(384)] Detected duplicate libraries in version file: org.lwjgl:lwjgl
[Info: 2023-01-03 09:40:01.1261709: JavaLaunchConfiguration.cpp(212)] Java argument:-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
...
[Info: 2023-01-03 09:40:01.1267474: JavaLaunchConfiguration.cpp(212)] Java argument:-XX:G1HeapRegionSize=32M
[Info: 2023-01-03 09:40:01.1268133: MinecraftJavaLoggingContext.cpp(52)] Launcher/launcher (main) Info Using default game log configuration client-1.12.xml (outputs XML)
[Info: 2023-01-03 09:40:01.1303325: MinecraftJavaRunningContext.cpp(309)] Starting game in folder D:\...\default_workdir using java executable C:\...\javaw.exe
[Info: 2023-01-03 09:40:01.1305553: Process_Windows.cpp(33)] Creating process C:\...\javaw.exe
For more information see launcher_log_2023-01-03.txt
Possible causes / Narrowing down the problem
- I recorded with "Process Monitor" all accesses to WinFallbackLookup.dll from the launcher and they look fine PathWinFallbackLookup.CSV

- I assume there is some kind of problem when the Inspection/Sha1Cacher is initialized for the first time
- The problem seems to exist since a longer time because when I searched for it I found multiple logs that are over a year old.
- I'm using roughly the following launcher profile: launcher_profiles.json

At least 2 things should be fixed here:
1. The Sha1Cacher should not crash when doing the initial inspection
2. If a crash occurs the launcher should not idle for ~30s and retry the inspection instantly
2023-01-03, 11:04 AM
2024-10-04, 10:48 AM
2024-10-02, 05:58 PM
0
1
-