portablemc icon indicating copy to clipboard operation
portablemc copied to clipboard

Minecraft: Forge - Failed to initialize graphics window with current settings.

Open system-failure-b8xy opened this issue 2 years ago • 5 comments
trafficstars

Failure details: We are unable to initialize the graphics system. glfwinit failed.

image

system-failure-b8xy avatar Sep 22 '23 14:09 system-failure-b8xy

Can you give us the environment you are using (OS/CPU architecture...)?

mindstorm38 avatar Sep 23 '23 10:09 mindstorm38

Please also provide logs from the terminal, which likely have a much better error message.

Ristovski avatar Sep 23 '23 12:09 Ristovski

I am using Replit OS is Ubuntu 20.04.2 LTS (Focal Fossa) CPU Architecture is x86_64 CPU Model is Intel(R) Xeon(R) CPU @ 2.20GHz

Terminal Output:

[14:06:54] [main] [INFO] ModLauncher running: args [--username, 6fa73c8b, --version, forge-1.20.1-47.2.0, --gameDir, /home/runner/.minecraft, --assetsDir, /home/runner/.minecraft/assets, --assetIndex, 5, --uuid, 6fa73c8be8fa53fda0c2ad5390bb9b5b, --accessToken, ❄❄❄❄❄❄❄❄, --clientId, , --xuid, , --userType, , --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 47.2.0, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412]
[14:06:54] [main] [INFO] ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.8 by Microsoft; OS Linux arch amd64 version 6.2.0-1014-gcp
[14:06:55] [main] [WARN] Configuration file /home/runner/.minecraft/config/fml.toml is not correct. Correcting
[14:06:55] [main] [INFO] Incorrect key [earlyWindowSkipGLVersions] was corrected from null to []
[14:06:55] [main] [INFO] Incorrect key [earlyWindowSquir] was corrected from null to false
[14:06:55] [main] [INFO] Loading ImmediateWindowProvider fmlearlywindow
[14:06:56] [main] [ERROR] ERROR DISPLAY
Failed to initialize graphics window with current settings.


Failure details:
We are unable to initialize the graphics system.
glfwInit failed.


If you click yes, we will try and open https://links.minecraftforge.net/early-display-errors in your default browser

system-failure-b8xy avatar Sep 25 '23 14:09 system-failure-b8xy

Judging from /home/runner/.minecraft/ you are trying to run the launcher on a remote instance on replit which has no hardware-accelerated graphics output and thus initializing OpenGL fails.

You can easily confirm this by running glxinfo -B inside the instance, and looking at the output.

Edit: In case it does have hw accel graphics, it's likely that the OpenGL version is lower than what Minecraft needs to run.

Ristovski avatar Sep 25 '23 17:09 Ristovski

Any update on your problem being solved or not?

mindstorm38 avatar Oct 24 '23 14:10 mindstorm38