NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.46k stars 12.95k forks source link

atlauncher: Fails to launch Minecraft 1.20.6: GLFW Failed to detect any supported platform #319632

Open UlyssesZh opened 2 weeks ago

UlyssesZh commented 2 weeks ago

Describe the bug

Using AtLauncher to launch Minecraft 1.20.6 crashes immediately:

java.lang.IllegalStateException: Failed to initialize GLFW, errors: GLFW error during init: [0x1000E]Failed to detect any supported platform
log ``` [13/06/2024 11:48:21 AM] Checking for updated files! [13/06/2024 11:48:24 AM] Preparing for launch! [13/06/2024 11:48:24 AM] Launching pack Minecraft 1.20.6 (Vanilla) for Minecraft 1.20.6 [13/06/2024 11:48:24 AM] Logging into Minecraft! [13/06/2024 11:48:24 AM] Using Java runtime java-runtime-delta (Java 21.0.3) at path **USERSDIR**/runtimes/minecraft/java-runtime-delta/linux/java-runtime-delta [13/06/2024 11:48:24 AM] Launching Minecraft with the following arguments (user related stuff has been removed): [gamemoderun, USERSDIR/runtimes/minecraft/java-runtime-delta/linux/java-runtime-delta/bin/java, -Xmx4096M, -XX:MetaspaceSize=256M, -Duser.language=en, -Duser.country=US, -Dfml.log.level=INFO, -Dlog4j.configurationFile=USERSDIR/assets/log_configs/client-1.12.xml, -XX:+UnlockExperimentalVMOptions, -XX:+UseG1GC, -XX:G1NewSizePercent=20, -XX:G1ReservePercent=20, -XX:MaxGCPauseMillis=50, -XX:G1HeapRegionSize=32M, -Xss1M, -Djava.library.path=USERSDIR/temp/natives-9dcf913e5af34906b98b9094cb60c779, -Djna.tmpdir=USERSDIR/temp/natives-9dcf913e5af34906b98b9094cb60c779, -Dorg.lwjgl.system.SharedLibraryExtractPath=USERSDIR/temp/natives-9dcf913e5af34906b98b9094cb60c779, -Dio.netty.native.workdir=USERSDIR/temp/natives-9dcf913e5af34906b98b9094cb60c779, -Dminecraft.launcher.brand=ATLauncher, -Dminecraft.launcher.version=3.4.36.4, -cp, USERSDIR/libraries/com/github/oshi/oshi-core/6.4.10/oshi-core-6.4.10.jar:USERSDIR/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar:USERSDIR/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:USERSDIR/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar:USERSDIR/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar:USERSDIR/libraries/com/mojang/authlib/6.0.54/authlib-6.0.54.jar:USERSDIR/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar:USERSDIR/libraries/com/mojang/brigadier/1.2.9/brigadier-1.2.9.jar:USERSDIR/libraries/com/mojang/datafixerupper/7.0.14/datafixerupper-7.0.14.jar:USERSDIR/libraries/com/mojang/logging/1.2.7/logging-1.2.7.jar:USERSDIR/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar:USERSDIR/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar:USERSDIR/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar:USERSDIR/libraries/commons-io/commons-io/2.15.1/commons-io-2.15.1.jar:USERSDIR/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:USERSDIR/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-aarch_64.jar:USERSDIR/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-x86_64.jar:USERSDIR/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar:USERSDIR/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar:USERSDIR/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar:USERSDIR/libraries/net/java/dev/jna/jna-platform/5.14.0/jna-platform-5.14.0.jar:USERSDIR/libraries/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar:USERSDIR/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:USERSDIR/libraries/org/apache/commons/commons-compress/1.26.0/commons-compress-1.26.0.jar:USERSDIR/libraries/org/apache/commons/commons-lang3/3.14.0/commons-lang3-3.14.0.jar:USERSDIR/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar:USERSDIR/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar:USERSDIR/libraries/org/apache/logging/log4j/log4j-api/2.22.1/log4j-api-2.22.1.jar:USERSDIR/libraries/org/apache/logging/log4j/log4j-core/2.22.1/log4j-core-2.22.1.jar:USERSDIR/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.22.1/log4j-slf4j2-impl-2.22.1.jar:USERSDIR/libraries/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar:USERSDIR/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar:USERSDIR/libraries/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3.jar:USERSDIR/libraries/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-linux.jar:USERSDIR/libraries/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar:USERSDIR/libraries/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar:USERSDIR/libraries/net/minecraft/client/1.20.6/client-1.20.6.jar, net.minecraft.client.main.Main, --username, REDACTED, --version, 1.20.6, --gameDir, USERSDIR/instances/Minecraft1206, --assetsDir, USERSDIR/assets, --assetIndex, 16, --uuid, REDACTED, --accessToken, REDACTED, --userType, msa, --versionType, release, --width=854, --height=480] [13/06/2024 11:48:27 AM] [Datafixer Bootstrap/INFO] 222 Datafixer optimizations took 173 milliseconds [13/06/2024 11:48:29 AM] [Render thread/INFO] Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [13/06/2024 11:48:29 AM] [Render thread/INFO] Setting user: **MINECRAFTUSERNAME** [13/06/2024 11:48:29 AM] [Render thread/INFO] Backend library: LWJGL version 3.3.3+5 [13/06/2024 11:48:29 AM] ---- Minecraft Crash Report ---- [13/06/2024 11:48:29 AM] // Don't be sad, have a hug! <3 [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] Time: 2024-06-13 11:48:29 [13/06/2024 11:48:29 AM] Description: Initializing game [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] java.lang.IllegalStateException: Failed to initialize GLFW, errors: GLFW error during init: [0x1000E]Failed to detect any supported platform [13/06/2024 11:48:29 AM] at com.mojang.blaze3d.platform.GLX._initGlfw(SourceFile:78) [13/06/2024 11:48:29 AM] at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(SourceFile:846) [13/06/2024 11:48:29 AM] at ffh.(SourceFile:509) [13/06/2024 11:48:29 AM] at net.minecraft.client.main.Main.main(SourceFile:223) [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] A detailed walkthrough of the error, its code path and all known details is as follows: [13/06/2024 11:48:29 AM] --------------------------------------------------------------------------------------- [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] -- Head -- [13/06/2024 11:48:29 AM] Thread: Render thread [13/06/2024 11:48:29 AM] Stacktrace: [13/06/2024 11:48:29 AM] at com.mojang.blaze3d.platform.GLX._initGlfw(SourceFile:78) [13/06/2024 11:48:29 AM] at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(SourceFile:846) [13/06/2024 11:48:29 AM] at ffh.(SourceFile:509) [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] -- Initialization -- [13/06/2024 11:48:29 AM] Details: [13/06/2024 11:48:29 AM] Modules: [13/06/2024 11:48:29 AM] Stacktrace: [13/06/2024 11:48:29 AM] at net.minecraft.client.main.Main.main(SourceFile:223) [13/06/2024 11:48:29 AM] [13/06/2024 11:48:29 AM] -- System Details -- [13/06/2024 11:48:29 AM] Details: [13/06/2024 11:48:29 AM] Minecraft Version: 1.20.6 [13/06/2024 11:48:29 AM] Minecraft Version ID: 1.20.6 [13/06/2024 11:48:29 AM] Operating System: Linux (amd64) version 6.1.92 [13/06/2024 11:48:29 AM] Java Version: 21.0.3, Microsoft [13/06/2024 11:48:29 AM] Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft [13/06/2024 11:48:29 AM] Memory: 491717904 bytes (468 MiB) / 738197504 bytes (704 MiB) up to 4294967296 bytes (4096 MiB) [13/06/2024 11:48:29 AM] CPUs: 16 [13/06/2024 11:48:29 AM] Processor Vendor: AuthenticAMD [13/06/2024 11:48:29 AM] Processor Name: AMD Ryzen 7 5800H with Radeon Graphics [13/06/2024 11:48:29 AM] Identifier: AuthenticAMD Family 25 Model 80 Stepping 0 [13/06/2024 11:48:29 AM] Microarchitecture: Zen 3 [13/06/2024 11:48:29 AM] Frequency (GHz): 4.46 [13/06/2024 11:48:29 AM] Number of physical packages: 1 [13/06/2024 11:48:29 AM] Number of physical CPUs: 8 [13/06/2024 11:48:29 AM] Number of logical CPUs: 16 [13/06/2024 11:48:29 AM] Graphics card #0 name: unknown [13/06/2024 11:48:29 AM] Graphics card #0 vendor: unknown [13/06/2024 11:48:29 AM] Graphics card #0 VRAM (MB): 0.00 [13/06/2024 11:48:29 AM] Graphics card #0 deviceId: unknown [13/06/2024 11:48:29 AM] Graphics card #0 versionInfo: version: a1 [13/06/2024 11:48:29 AM] Graphics card #1 name: amdgpudrmfb [13/06/2024 11:48:29 AM] Graphics card #1 vendor: unknown [13/06/2024 11:48:29 AM] Graphics card #1 VRAM (MB): 0.00 [13/06/2024 11:48:29 AM] Graphics card #1 deviceId: unknown [13/06/2024 11:48:29 AM] Graphics card #1 versionInfo: version: c5 [13/06/2024 11:48:29 AM] Virtual memory max (MB): 44069.45 [13/06/2024 11:48:29 AM] Virtual memory used (MB): 9594.43 [13/06/2024 11:48:29 AM] Swap memory total (MB): 30108.00 [13/06/2024 11:48:29 AM] Swap memory used (MB): 0.00 [13/06/2024 11:48:29 AM] JVM Flags: 9 total; -Xmx4096M -XX:MetaspaceSize=256M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Xss1M [13/06/2024 11:48:29 AM] Launched Version: 1.20.6 [13/06/2024 11:48:29 AM] Launcher name: ATLauncher [13/06/2024 11:48:29 AM] Backend library: LWJGL version 3.3.3+5 [13/06/2024 11:48:29 AM] Backend API: Unknown [13/06/2024 11:48:29 AM] Window size: [13/06/2024 11:48:29 AM] GL Caps: Using framebuffer using OpenGL 3.2 [13/06/2024 11:48:29 AM] GL debug messages: [13/06/2024 11:48:29 AM] Using VBOs: Yes [13/06/2024 11:48:29 AM] Is Modded: Probably not. Client jar signature and brand is untouched [13/06/2024 11:48:29 AM] Universe: 404 [13/06/2024 11:48:29 AM] Type: Client (map_client.txt) [13/06/2024 11:48:29 AM] Locale: en_US [13/06/2024 11:48:29 AM] CPU: [13/06/2024 11:48:29 AM] #@!@# Game crashed! Crash report saved to: #@!@# **USERSDIR**/instances/Minecraft1206/crash-reports/crash-2024-06-13_11.48.29-client.txt [13/06/2024 11:48:29 AM] Oh no. Minecraft crashed. Please check the logs for any errors and provide these logs when asking for support. ```

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install atlauncher (from nixos-24.05 channel) by adding it to user packages in configuration.nix and then nixos-rebuild.
  2. Launch AtLauncher. In "Create Pack", select 1.20.6 in the version list, and click "Create Instance".
  3. After it successfully created the instance, in "Instances", click "Play" under the instance just created.
  4. Immediately crushes without showing any game interface. The log above appears.

Expected behavior

Launches the game as expected.

Screenshots

Additional context

Using proprietary NVIDIA driver on X11. OpenGL is enabled in configuration.nix.

Notify maintainers

@GetPsyched

Metadata


Add a :+1: reaction to issues you find important.

GetPsyched commented 2 weeks ago

That's weird. I'm not able to reproduce this issue with the same configuration you've mentioned:

As an initial debug attempt, could you run steam-run atlauncher and see if that fixes your issue? If it does, then there's some missing library and I can try to find what that is.

UlyssesZh commented 2 weeks ago

Yes, it runs fine with steam-run.

GetPsyched commented 2 weeks ago

Great, at least we have a temporary solution until I can fix this issue.

Thanks for reporting this! I'll get to it as soon as I can.

GetPsyched commented 2 weeks ago

@UlyssesZh, I suspect that the latest upstream version may fix this issue. Could you please confirm this by trying out that version?

UlyssesZh commented 2 weeks ago

Not fixed. Neither 3.4.36.6 nor 3.4.36.8 fixes the issue. I also tried 3.4.36.9, but it's not good either. Launching with steam-run is still fine.

GetPsyched commented 2 weeks ago

All right, so it's definitely something missing in the Nix expression. Will look into it.