Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The game fails to launch. #5229

Closed
Tombuster362 opened this issue Jan 8, 2025 · 4 comments
Closed

[BUG] The game fails to launch. #5229

Tombuster362 opened this issue Jan 8, 2025 · 4 comments
Labels
🐛 bug Something isn't working 🌑 nextgen
Milestone

Comments

@Tombuster362
Copy link

LiquidBounce Branch

Nextgen

LiquidBounce Build/Version

0.23.2

Operating System

Linux

Minecraft Version

1.21.4

Describe the bug

I can't launch the session of the game, it seems that it fails at the initial stage of launching. When I checked the log, it says: "java.lang.InternalError: java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: null/.cache/org.graalvm.polyglot/engine/libtruffleattach/f5266598dff207474d4ad49c02d5200d5c9be9299f5a0acf85cb01d5d74410b6/bin/libtruffleattach.so" . At first I thought the file mentioned is lost, but it was ruled out because I found the library is just at the position that the log says. So I am totally confused and get no idea of what is wrong. By the way, The launcher I use is HMCL. The OS is Arch Linux. The version of java I use to launch game is openjdk-21. The Desktop Environment is KDE(version:6.2.5,wayland session) The log is below.
latest.log

Steps to reproduce

Just launch the game with HMCL.

Client Log

[20:39:18] [main/INFO]: Loading Minecraft 1.21.4 with Fabric Loader 0.16.9
[20:39:18] [ForkJoinPool-1-worker-4/WARN]: Mod com_github_oryxel_cubeconverter uses the version 25bc6ce1b1 which isn't compatible with Loader's extended semantic version format (Could not parse version number component '25bc6ce1b1'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[20:39:18] [ForkJoinPool-1-worker-1/WARN]: Mod org_cloudburstmc_netty_netty-transport-raknet uses the version 1.0.0.CR3-SNAPSHOT which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'CR3'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[20:39:19] [main/INFO]: Loading 141 mods:
	- fabric-api 0.114.1+1.21.4
	   |-- fabric-api-base 0.4.54+b47eab6b04
	   |-- fabric-api-lookup-api-v1 1.6.86+b1caf1e904
	   |-- fabric-biome-api-v1 15.0.6+b1c29d8e04
	   |-- fabric-block-api-v1 1.0.31+7feeb73304
	   |-- fabric-block-view-api-v2 1.0.19+7feeb73304
	   |-- fabric-blockrenderlayer-v1 2.0.8+7feeb73304
	   |-- fabric-client-tags-api-v1 1.1.29+20ea1e2304
	   |-- fabric-command-api-v1 1.2.62+f71b366f04
	   |-- fabric-command-api-v2 2.2.41+e496eb1504
	   |-- fabric-commands-v0 0.2.79+df3654b304
	   |-- fabric-content-registries-v0 9.1.14+7feeb73304
	   |-- fabric-convention-tags-v1 2.1.12+7f945d5b04
	   |-- fabric-convention-tags-v2 2.10.2+0c85f9a904
	   |-- fabric-crash-report-info-v1 0.3.6+7feeb73304
	   |-- fabric-data-attachment-api-v1 1.4.6+9aea556b04
	   |-- fabric-data-generation-api-v1 22.2.5+20ea1e2304
	   |-- fabric-dimensions-v1 4.0.10+7feeb73304
	   |-- fabric-entity-events-v1 2.0.12+60fccc7604
	   |-- fabric-events-interaction-v0 4.0.2+a4eebcf004
	   |-- fabric-game-rule-api-v1 1.0.62+7feeb73304
	   |-- fabric-item-api-v1 11.1.14+203e6b2304
	   |-- fabric-item-group-api-v1 4.1.23+7feeb73304
	   |-- fabric-key-binding-api-v1 1.0.56+7feeb73304
	   |-- fabric-keybindings-v0 0.2.54+df3654b304
	   |-- fabric-lifecycle-events-v1 2.5.4+bf2a60eb04
	   |-- fabric-loot-api-v2 3.0.33+3f89f5a504
	   |-- fabric-loot-api-v3 1.0.21+203e6b2304
	   |-- fabric-message-api-v1 6.0.25+7feeb73304
	   |-- fabric-model-loading-api-v1 4.2.1+8041d50704
	   |-- fabric-networking-api-v1 4.3.9+f371ccb904
	   |-- fabric-object-builder-api-v1 18.0.8+d70d2c0604
	   |-- fabric-particles-v1 4.0.14+7feeb73304
	   |-- fabric-recipe-api-v1 8.0.7+339ab8c404
	   |-- fabric-registry-sync-v0 6.1.4+0c85f9a904
	   |-- fabric-renderer-api-v1 5.0.3+50f0feb204
	   |-- fabric-renderer-indigo 2.0.3+50f0feb204
	   |-- fabric-rendering-data-attachment-v1 0.3.57+73761d2e04
	   |-- fabric-rendering-fluids-v1 3.1.19+7feeb73304
	   |-- fabric-rendering-v1 10.1.2+b874120c04
	   |-- fabric-resource-conditions-api-v1 5.0.13+203e6b2304
	   |-- fabric-resource-loader-v0 3.0.11+b1caf1e904
	   |-- fabric-screen-api-v1 2.0.38+7feeb73304
	   |-- fabric-screen-handler-api-v1 1.3.111+7feeb73304
	   |-- fabric-sound-api-v1 1.0.32+7feeb73304
	   |-- fabric-tag-api-v1 1.0.2+20ea1e2304
	   |-- fabric-transfer-api-v1 5.4.9+efa825c904
	   \-- fabric-transitive-access-wideners-v1 6.3.2+56e78b9b04
	- fabric-language-kotlin 1.13.0+kotlin.2.1.0
	   |-- org_jetbrains_kotlin_kotlin-reflect 2.1.0
	   |-- org_jetbrains_kotlin_kotlin-stdlib 2.1.0
	   |-- org_jetbrains_kotlin_kotlin-stdlib-jdk7 2.1.0
	   |-- org_jetbrains_kotlin_kotlin-stdlib-jdk8 2.1.0
	   |-- org_jetbrains_kotlinx_atomicfu-jvm 0.26.1
	   |-- org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm 1.9.0
	   |-- org_jetbrains_kotlinx_kotlinx-coroutines-jdk8 1.9.0
	   |-- org_jetbrains_kotlinx_kotlinx-datetime-jvm 0.6.1
	   |-- org_jetbrains_kotlinx_kotlinx-io-bytestring-jvm 0.6.0
	   |-- org_jetbrains_kotlinx_kotlinx-io-core-jvm 0.6.0
	   |-- org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm 1.7.3
	   |-- org_jetbrains_kotlinx_kotlinx-serialization-core-jvm 1.7.3
	   \-- org_jetbrains_kotlinx_kotlinx-serialization-json-jvm 1.7.3
	- fabricloader 0.16.9
	   \-- mixinextras 0.4.1
	- java 21
	- liquidbounce 0.23.2
	   |-- com_github_ccbluex_discordipc 4.0.0
	   |-- com_github_ccbluex_mc-authlib 1.4.1
	   |-- com_github_ccbluex_netty-httpserver 2.1.1
	   |-- com_google_code_gson_gson 2.10.1
	   |-- com_kohlschutter_junixsocket_junixsocket-common 2.8.3
	   |-- com_kohlschutter_junixsocket_junixsocket-native-common 2.8.3
	   |-- com_squareup_okhttp3_okhttp 5.0.0-alpha.14
	   |-- com_squareup_okio_okio-jvm 3.9.0
	   |-- com_thealtening_api_api 4.1.0
	   |-- com_vdurmont_semver4j 3.1.0
	   |-- commons-codec_commons-codec 1.17.1
	   |-- commons-io_commons-io 2.16.1
	   |-- io_netty_netty-codec-socks 4.1.97
	   |-- io_netty_netty-handler 4.1.97
	   |-- io_netty_netty-handler-proxy 4.1.97
	   |-- io_netty_netty-resolver 4.1.97
	   |-- io_netty_netty-transport-native-unix-common 4.1.97
	   |-- mcef 1.3.2-1.21.4
	   |-- net_fabricmc_tiny-mappings-parser 0.3.0+build.17
	   |-- org_ahocorasick_ahocorasick 0.6.3
	   |-- org_apache_commons_commons-compress 1.27.1
	   |-- org_apache_commons_commons-exec 1.3
	   |-- org_apache_commons_commons-lang3 3.16.0
	   |-- org_apache_logging_log4j_log4j-api 2.23.1
	   |-- org_apache_logging_log4j_log4j-core 2.23.1
	   |-- org_apache_tika_tika-core 2.9.2
	   |-- org_graalvm_js_js-language 24.0.2
	   |-- org_graalvm_polyglot_polyglot 24.0.2
	   |-- org_graalvm_regex_regex 24.0.2
	   |-- org_graalvm_sdk_collections 24.0.2
	   |-- org_graalvm_sdk_jniutils 24.0.2
	   |-- org_graalvm_sdk_nativeimage 24.0.2
	   |-- org_graalvm_sdk_word 24.0.2
	   |-- org_graalvm_shadowed_icu4j 24.0.2
	   |-- org_graalvm_shadowed_json 24.0.2
	   |-- org_graalvm_tools_chromeinspector-tool 24.0.2
	   |-- org_graalvm_tools_coverage-tool 24.0.2
	   |-- org_graalvm_tools_dap-tool 24.0.2
	   |-- org_graalvm_tools_insight-heap-tool 24.0.2
	   |-- org_graalvm_tools_insight-tool 24.0.2
	   |-- org_graalvm_tools_lsp-tool 24.0.2
	   |-- org_graalvm_tools_lsp_api 24.0.2
	   |-- org_graalvm_tools_profiler-tool 24.0.2
	   |-- org_graalvm_truffle_truffle-api 24.0.2
	   |-- org_graalvm_truffle_truffle-compiler 24.0.2
	   |-- org_graalvm_truffle_truffle-runtime 24.0.2
	   \-- org_slf4j_slf4j-api 2.0.10
	- minecraft 1.21.4
	- sodium 0.6.6+mc1.21.4
	- viafabricplus 4.0.0
	   |-- com_github_oryxel_cubeconverter 25bc6ce1b1
	   |-- com_google_code_findbugs_jsr305 3.0.2
	   |-- com_vdurmont_semver4j 3.1.0
	   |-- com_viaversion_viaaprilfools-common 4.0.0
	   |-- com_viaversion_viabackwards-common 5.2.1
	   |-- com_viaversion_vialoader 4.0.0
	   |-- com_viaversion_viaversion-common 5.2.1
	   |-- de_florianmichael_classic4j 2.1.1-SNAPSHOT
	   |-- io_jsonwebtoken_jjwt-api 0.12.6
	   |-- io_jsonwebtoken_jjwt-gson 0.12.6
	   |-- io_jsonwebtoken_jjwt-impl 0.12.6
	   |-- io_netty_netty-codec-http 4.1.116
	   |-- net_jodah_expiringmap 0.5.10
	   |-- net_lenni0451_commons_httpclient 1.6.0
	   |-- net_lenni0451_mcping 1.4.2
	   |-- net_lenni0451_mcstructs-bedrock_forms 1.2.2
	   |-- net_lenni0451_mcstructs-bedrock_text 1.2.2
	   |-- net_lenni0451_reflect 1.4.0
	   |-- net_raphimc_minecraftauth 4.1.1
	   |-- net_raphimc_viabedrock 0.0.14-20241220.132943-7
	   |-- net_raphimc_vialegacy 3.0.7
	   |-- org_cloudburstmc_netty_netty-transport-raknet 1.0.0.CR3-SNAPSHOT
	   |-- org_lz4_lz4-pure-java 1.8.0
	   |-- viafabricplus-api 4.0.0
	   |-- viafabricplus-api-legacy 4.0.0
	   \-- viafabricplus-visuals 4.0.0
[20:39:19] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.7 Source=file:/home/pug/Games/.minecraft/libraries/net/fabricmc/sponge-mixin/0.15.4+mixin.0.8.7/sponge-mixin-0.15.4+mixin.0.8.7.jar Service=Knot/Fabric Env=CLIENT
[20:39:19] [main/INFO]: Compatibility level set to JAVA_21
[20:39:19] [main/INFO]: Loaded configuration file for Sodium: 43 options available, 0 override(s) found
[20:39:21] [main/WARN]: Error loading class: net/caffeinemc/mods/lithium/common/entity/movement/ChunkAwareBlockCollisionSweeper (java.lang.ClassNotFoundException: net/caffeinemc/mods/lithium/common/entity/movement/ChunkAwareBlockCollisionSweeper)
[20:39:21] [main/INFO]: Searching for graphics cards...
[20:39:21] [main/INFO]: Found graphics adapter: LinuxPciAdapterInfo[vendor=AMD, name=Cedar [Radeon HD 7350/8350 / R5 220], pciVendorId=0x1002, pciDeviceId=0x68fa]
[20:39:21] [main/WARN]: Sodium has applied one or more workarounds to prevent crashes or other issues on your system: [NO_ERROR_CONTEXT_UNSUPPORTED]
[20:39:21] [main/WARN]: This is not necessarily an issue, but it may result in certain features or optimizations being disabled. You can sometimes fix these issues by upgrading your graphics driver.
[20:39:21] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1).
[20:39:25] [Datafixer Bootstrap/INFO]: 243 Datafixer optimizations took 1054 milliseconds
[20:39:36] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[20:39:36] [Render thread/INFO]: Setting user: offlinexIj21
[20:39:36] [Render thread/INFO]: [Indigo] Different rendering plugin detected; not applying Indigo.
[20:39:37] [Via-Mappingloader-0/INFO]: Loading block connection mappings ...
[20:39:37] [Via-Mappingloader-0/INFO]: Using FastUtil Long2ObjectOpenHashMap for block connections
[20:39:37] [Download-2/ERROR]: Failed to fetch user properties
com.mojang.authlib.exceptions.InvalidCredentialsException: Status: 401
	at knot/com.mojang.authlib.exceptions.MinecraftClientHttpException.toAuthenticationException(MinecraftClientHttpException.java:59) ~[authlib-6.0.57.jar:?]
	at knot/com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:150) ~[authlib-6.0.57.jar:?]
	at knot/net.minecraft.class_310.method_55608(class_310.java:457) ~[client-intermediary.jar:?]
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401
	at knot/com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:103) ~[authlib-6.0.57.jar:?]
	at knot/com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:56) ~[authlib-6.0.57.jar:?]
	at knot/com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:121) ~[authlib-6.0.57.jar:?]
	... 5 more
[20:39:37] [Render thread/INFO]: Item Groups: [ Heads, Exploits, Containers ]
[20:39:38] [ForkJoinPool.commonPool-worker-1/INFO]: Loading translations...
[20:39:38] [ForkJoinPool.commonPool-worker-1/INFO]: Registering protocols...
[20:39:38] [Render thread/INFO]: Backend library: LWJGL version 3.3.3-snapshot
[20:39:39] [Render thread/INFO]: OpenGL Vendor: Mesa
[20:39:39] [Render thread/INFO]: OpenGL Renderer: AMD CEDAR (DRM 2.50.0 / 6.12.8-arch1-1, LLVM 18.1.8)
[20:39:39] [Render thread/INFO]: OpenGL Version: 4.5 (Core Profile) Mesa 24.3.3-arch1.1
[20:39:40] [Render thread/INFO]: Launching LiquidBounce v0.23.2 by CCBlueX
[20:39:40] [ForkJoinPool.commonPool-worker-1/INFO]: Started resource pack HTTP server on http://127.0.0.1:35047/
[20:39:41] [ForkJoinPool.commonPool-worker-1/INFO]: ViaVersion detected lowest supported version by the proxy: c0.0.15a-1 (0)
[20:39:41] [ForkJoinPool.commonPool-worker-1/INFO]: Highest supported version by the proxy: 1.21.4 (769)
[20:39:41] [ForkJoinPool.commonPool-worker-1/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[20:39:41] [Render thread/INFO]: Probing environment...
[20:39:41] [Render thread/INFO]: Intermediary environment detected.
[20:39:41] [Render thread/INFO]: Loaded language en_us
[20:39:41] [Render thread/ERROR]: Fatal error
java.lang.InternalError: java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: null/.cache/org.graalvm.polyglot/engine/libtruffleattach/f5266598dff207474d4ad49c02d5200d5c9be9299f5a0acf85cb01d5d74410b6/bin/libtruffleattach.so
	at knot/com.oracle.truffle.runtime.ModulesSupport.loadModulesSupportLibrary(ModulesSupport.java:171) ~[org_graalvm_truffle_truffle-runtime-24.0.2-e9bdfad259dc00b1.jar:?]
	at knot/com.oracle.truffle.runtime.ModulesSupport.<clinit>(ModulesSupport.java:60) ~[org_graalvm_truffle_truffle-runtime-24.0.2-e9bdfad259dc00b1.jar:?]
	at knot/com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess.createRuntime(HotSpotTruffleRuntimeAccess.java:84) ~[org_graalvm_truffle_truffle-runtime-24.0.2-e9bdfad259dc00b1.jar:?]
	at knot/com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess.getRuntime(HotSpotTruffleRuntimeAccess.java:75) ~[org_graalvm_truffle_truffle-runtime-24.0.2-e9bdfad259dc00b1.jar:?]
	at knot/com.oracle.truffle.api.Truffle.createRuntime(Truffle.java:145) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.Truffle$1.run(Truffle.java:176) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.Truffle$1.run(Truffle.java:174) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) ~[?:?]
	at knot/com.oracle.truffle.api.Truffle.initRuntime(Truffle.java:174) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.Truffle.<clinit>(Truffle.java:63) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1481) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.impl.Accessor$Constants.<clinit>(Accessor.java:1346) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.impl.Accessor.engineSupport(Accessor.java:1410) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryAccessor.engineAccessor(LibraryAccessor.java:57) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.loadExternalDefaultProviders(LibraryFactory.java:441) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.getExternalDefaultProviders(LibraryFactory.java:432) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.initDefaultExports(LibraryFactory.java:220) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.<init>(LibraryFactory.java:215) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.DynamicDispatchLibraryGen.<init>(DynamicDispatchLibraryGen.java:34) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.DynamicDispatchLibraryGen.<clinit>(DynamicDispatchLibraryGen.java:26) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at java.base/java.lang.Class.forName0(Native Method) ~[?:?]
	at java.base/java.lang.Class.forName(Class.java:534) ~[?:?]
	at java.base/java.lang.Class.forName(Class.java:513) ~[?:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.loadGeneratedClass(LibraryFactory.java:777) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.resolveImpl(LibraryFactory.java:758) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.resolve(LibraryFactory.java:751) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.<init>(LibraryFactory.java:209) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.interop.InteropLibraryGen.<init>(InteropLibraryGen.java:181) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.interop.InteropLibraryGen.<clinit>(InteropLibraryGen.java:172) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at java.base/java.lang.Class.forName0(Native Method) ~[?:?]
	at java.base/java.lang.Class.forName(Class.java:534) ~[?:?]
	at java.base/java.lang.Class.forName(Class.java:513) ~[?:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.loadGeneratedClass(LibraryFactory.java:777) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.resolveImpl(LibraryFactory.java:758) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.library.LibraryFactory.resolve(LibraryFactory.java:751) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.api.interop.InteropLibrary.<clinit>(InteropLibrary.java:2971) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.polyglot.PolyglotValueDispatch.<clinit>(PolyglotValueDispatch.java:168) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/com.oracle.truffle.polyglot.PolyglotImpl.initialize(PolyglotImpl.java:200) ~[org_graalvm_truffle_truffle-api-24.0.2-995983b52bfdc5a1.jar:?]
	at knot/org.graalvm.polyglot.Engine.loadAndValidateProviders(Engine.java:1706) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/org.graalvm.polyglot.Engine$1.run(Engine.java:1732) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/org.graalvm.polyglot.Engine$1.run(Engine.java:1727) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) ~[?:?]
	at knot/org.graalvm.polyglot.Engine.initEngineImpl(Engine.java:1727) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/org.graalvm.polyglot.Engine$ImplHolder.<clinit>(Engine.java:190) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/org.graalvm.polyglot.Engine.getImpl(Engine.java:442) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/org.graalvm.polyglot.Engine$Builder.build(Engine.java:740) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/org.graalvm.polyglot.Engine.create(Engine.java:338) ~[org_graalvm_polyglot_polyglot-24.0.2-2eb0ae90019e7242.jar:?]
	at knot/net.ccbluex.liquidbounce.script.ScriptManager.<clinit>(ScriptManager.kt:52) ~[liquidbounce.jar:?]
	at knot/net.ccbluex.liquidbounce.LiquidBounce.startHandler$lambda$3(LiquidBounce.kt:147) ~[liquidbounce.jar:?]
	at knot/net.ccbluex.liquidbounce.event.EventManager.callEvent(EventManager.kt:208) [liquidbounce.jar:?]
	at knot/net.minecraft.class_310.handler$cbl000$liquidbounce$startClient(class_310.java:10672) [client-intermediary.jar:?]
	at knot/net.minecraft.class_310.<init>(class_310.java:680) [client-intermediary.jar:?]
	at knot/net.minecraft.client.main.Main.main(Main.java:250) [client-intermediary.jar:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.9.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.9.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.9.jar:?]
Caused by: java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: null/.cache/org.graalvm.polyglot/engine/libtruffleattach/f5266598dff207474d4ad49c02d5200d5c9be9299f5a0acf85cb01d5d74410b6/bin/libtruffleattach.so
	at java.base/java.lang.Runtime.load0(Runtime.java:849) ~[?:?]
	at java.base/java.lang.System.load(System.java:2025) ~[?:?]
	at knot/com.oracle.truffle.runtime.ModulesSupport.loadModulesSupportLibrary(ModulesSupport.java:168) ~[org_graalvm_truffle_truffle-runtime-24.0.2-e9bdfad259dc00b1.jar:?]
	... 55 more

Screenshots

Screenshot_20250108_205749

@github-actions github-actions bot added 🌑 nextgen 🐛 bug Something isn't working labels Jan 8, 2025
@commandblock2
Copy link
Contributor

commandblock2 commented Jan 8, 2025

kinda weird that it works on my machine, since I am also using Linux with KDE. Here is my log https://mclo.gs/SmD3j48. There are only two things different (that might affect this) as far as I can see, one is the launcher I am using, it's prismlauncher. The other one is openjdk-21 (less likely), mine was compiled on my machine. The liquidbounce-fb4eeb4 I use is downloaded from liquidbouce.net nightly build. Not sure if your exception has anything to do with the newly added graalvm-tools dependency tho. I would suggest maybe try switching to another launcher or jvm?

Update: the file null/.cache/org.graalvm.polyglot/engine/libtruffleattach/f5266598dff207474d4ad49c02d5200d5c9be9299f5a0acf85cb01d5d74410b6/bin/libtruffleattach.so or null replaced with my username does not exist before or after LiquidBounce is launched.

@commandblock2
Copy link
Contributor

Looks like that the similar issue is probably not just on Linux (https://forum.liquidbounce.net/topic/8390/cant-load-library/). This might be different than what I am thinking. Can you the release v0.22.0? In this release the dependency for script debugging was not added.

Also found that there are others failed to load libtruffleattach, see petoncle/mousemaster#18 , not sure if this will help.

@1zun4 1zun4 added this to the 0.24.0 milestone Jan 10, 2025
@1zun4
Copy link
Member

1zun4 commented Jan 10, 2025

I don't think we can fix it, but we can try to catch it so that it handles the error properly instead of causing a crash.

@Tombuster362
Copy link
Author

Tombuster362 commented Jan 10, 2025

Thanks for your attention and following, @1zun4 and @commandblock2. I finally find what causes the issue! It's the fault of the launcher, HMCL, not the mod itself. Let me explain it: the log says "Expecting an absolute path of the library: null/.cache/org.graalvm.polyglot/engine/libtruffleattach/f5266598dff207474d4ad49c02d5200d5c9be9299f5a0acf85cb01d5d74410b6/bin/libtruffleattach.so" but the absolute path should start with '/' in Linux, so I thought the launcher passed the wrong the wrong path of the library. I checked the launch command, aha, here it is! There was a parameter "-Duser.home=null" and I guessed it was the root of the problem ,so I changed it into "-Duser.home=/home/***/Games/.minecraft/versions/1.21.4-Fabric/null" (I did this by adding JVM arguments in the launcher), then I launched the game, BOOM, it ran perfectly without any crash. Sorry for disturbing you guys and wasting your time,but I wish it can help everyone else who encounters this issue.
Screenshot_1
Screenshot_2
Screenshot_3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌑 nextgen
Projects
None yet
Development

No branches or pull requests

3 participants