mindstorm38 / portablemc

A fast, reliable and cross-platform command-line Minecraft launcher and API for developers. Including fast and easy installation of common mod loaders such as Fabric, Forge, NeoForge and Quilt.
https://pypi.org/project/portablemc/
GNU General Public License v3.0
354 stars 20 forks source link

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

Open JustinsKittens opened 1 year ago

JustinsKittens commented 1 year ago

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

image

mindstorm38 commented 1 year ago

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

Ristovski commented 1 year ago

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

JustinsKittens commented 1 year ago

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
Ristovski commented 1 year ago

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.

mindstorm38 commented 11 months ago

Any update on your problem being solved or not?