-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Comments
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 Update: the file |
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 Also found that there are others failed to load |
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. |
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. |
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
Screenshots
The text was updated successfully, but these errors were encountered: