fengyanlin
如题,系统版本centos7,jdk17-21都试过了,都爆以下错误java.lang.UnsatisfiedLinkError: Failed to dynamically load library: /home/fengyanlin/hmcl/.minecraft/versions/1.20.1/natives-linux-x86_64/libglfw.so(error = null)
选择使用系统glfw无效,显示不存在此库
求救大佬们




以下为完整log:
[16:01:28] [Datafixer Bootstrap/INFO]: 188 Datafixer optimizations took 153 milliseconds
[16:01:30] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[16:01:31] [Render thread/INFO]: Setting user: IPigeonKingI
---- Minecraft Crash Report ----
// You're mean.

Time: 2023-10-24 16:01:31
Description: Initializing game

java.lang.ExceptionInInitializerError
        at enr.<init>(SourceFile:873)
        at enn.<init>(SourceFile:460)
        at net.minecraft.client.main.Main.main(SourceFile:211)
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Failed to dynamically load library: /home/fengyanlin/hmcl/.minecraft/versions/1.20.1/natives-linux-x86_64/libglfw.so(error = null)
        at ehe.<clinit>(SourceFile:45)
        ... 3 more
Caused by: java.lang.UnsatisfiedLinkError: Failed to dynamically load library: /home/fengyanlin/hmcl/.minecraft/versions/1.20.1/natives-linux-x86_64/libglfw.so(error = null)
        at org.lwjgl.system.linux.LinuxLibrary.loadLibrary(LinuxLibrary.java:33)
        at org.lwjgl.system.linux.LinuxLibrary.<init>(LinuxLibrary.java:20)
        at org.lwjgl.system.APIUtil.apiCreateLibrary(APIUtil.java:111)
        at org.lwjgl.system.Library.loadNative(Library.java:363)
        at org.lwjgl.system.Library.loadNativeFromLibraryPath(Library.java:352)
        at org.lwjgl.system.Library.loadNative(Library.java:266)
        at org.lwjgl.system.Library.loadNative(Library.java:224)
        at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:30)
        at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
        at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
        at java.base/java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:377)
        at java.base/java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:374)
        at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:228)
        at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:210)
        at java.base/java.lang.ClassValue.get(ClassValue.java:116)
        at java.base/java.lang.invoke.DirectMethodHandle.checkInitialized(DirectMethodHandle.java:400)
        at java.base/java.lang.invoke.DirectMethodHandle.ensureInitialized(DirectMethodHandle.java:388)
        at java.base/java.lang.invoke.DirectMethodHandle.ensureInitialized(DirectMethodHandle.java:422)
        at ehe.<clinit>(SourceFile:42)
        ... 3 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
        at enr.<init>(SourceFile:873)
        at enn.<init>(SourceFile:460)

-- Initialization --
Details:
        Modules:
Stacktrace:
        at net.minecraft.client.main.Main.main(SourceFile:211)

-- System Details --
Details:
        Minecraft Version: 1.20.1
        Minecraft Version ID: 1.20.1
        Operating System: Linux (amd64) version 3.10.0-1160.90.1.el7.x86_64
        Java Version: 17.0.9, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
        Memory: 614214024 bytes (585 MiB) / 805306368 bytes (768 MiB) up to 5435817984 bytes (5184 MiB)
        CPUs: 12
        Processor Vendor: GenuineIntel
        Processor Name: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
        Identifier: Intel64 Family 6 Model 158 Stepping 10
        Microarchitecture: Coffee Lake
        Frequency (GHz): 2.60
        Number of physical packages: 1
        Number of physical CPUs: 6
        Number of logical CPUs: 12
        Graphics card #0 name: UHD Graphics 630 (Mobile)
        Graphics card #0 vendor: Intel Corporation (0x8086)
        Graphics card #0 VRAM (MB): 256.00
        Graphics card #0 deviceId: 0x3e9b
        Graphics card #0 versionInfo: unknown
        Virtual memory max (MB): 15899.47
        Virtual memory used (MB): 11062.05
        Swap memory total (MB): 8000.00
        Swap memory used (MB): 1490.25
        JVM Flags: 10 total; -Xmx5160m -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32m -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:-DontCompileHugeMethods
        Launched Version: 1.20.1
        Backend library: LWJGL version 3.3.1 build 7
        Backend API: Unknown
        Window size: <not initialized>
        GL Caps: Using framebuffer using OpenGL 3.2
        GL debug messages: <disabled>
        Using VBOs: Yes
        Is Modded: Probably not. Client jar signature and brand is untouched
        Type: Client (map_client.txt)
        CPU: <unknown>
#@!@# Game crashed! Crash report saved to: #@!@# /home/fengyanlin/hmcl/.minecraft/crash-reports/crash-2023-10-24_16.01.31-client.txt


fengyanlin
而且最神奇的是我装了glfw库的,在系统里

strings
你先更新你的 hmcl

以及 minecraft 用的是自己指定的 libglfw,和你系统装没装无关

fengyanlin
hmcl已经是最新了
然后hmcl里面可以选使用系统glfw的😂

fengyanlin
strings 发表于 2023-10-24 16:47
你先更新你的 hmcl

以及 minecraft 用的是自己指定的 libglfw,和你系统装没装无关 ...


hmcl已经是最新了
然后hmcl里面可以选使用系统glfw的😂

fengyanlin
本帖最后由 fengyanlin 于 2023-10-24 17:07 编辑
strings 发表于 2023-10-24 16:47
你先更新你的 hmcl

以及 minecraft 用的是自己指定的 libglfw,和你系统装没装无关 ...


第一页 上一页 下一页 最后一页