#Launching axiom on an M2 macbook instantly crashes

1 messages · Page 1 of 1 (latest)

tawdry yachtBOT
#

@static slate uploaded a log, I installed fabric, the fabric api and axiom via the modrinth launcher (I also tried curseforge and multimc with the same result), but whenever I launch the game it crashes after a few seconds. From my limited knowledge of java, it looks like the mod uses some functions/libraries that only work on x86_64 architecture, and not on arm64. any way I can fix this, or should I make a bug report?

  • OpenJDK 64-Bit Server VM, version 17.0.8
  • Fabric 0.14.22 on 1.20.2

Recommendations:

  • Unless you know what you're doing, modifying your JVM args could have unintended side effects. It's best to use the defaults.
#

How to fix Axiom on arm Macs

You need 3 terminal commands. First, make sure you have Axiom downloaded, and also the Imgui-Java natives https://github.com/SpaiR/imgui-java/actions/runs/5554721970?pr=190 (requires a github account (there is a section "Artifacts" at the bottom. Inside of there, click on "native-libraries". That should start the download. It is a zip, and this one should be unpacked by double clicking it)). Make sure both downloads are in the same folder, and open a Terminal in that folder (type cd and drag the folder into terminal (and click enter)).

Then, run the following commands:

Recreate a part of the folder structure as in the Axiom jar (needed for editing the zip later)
mkdir -p io/imgui/java/native-bin

Then, copy over the Imgui-Java ARM natives and rename it
cp native-libraries/libimgui-javaarm64.dylib io/imgui/java/native-bin/libimgui-java64.dylib

Lastly, update the Axiom jar. It'll give a few warnings, but it works so you can ignore them.
zip -u Axiom-b1.0.4-for-MC1.20.1.jar io/imgui/java/native-bin/libimgui-java64.dylib (make sure the filename for axiom is correct, the latest version is posted in #announcements)

Now you can put the Axiom jar in your mods folder and it should work. Any other files and folders created can be deleted.

Here is a video you can follow along with: https://cdn.discordapp.com/attachments/1139191845457506375/1139740572555411567/axiom_m1_fix.mp4
credit to myokan, twirre.me, ic22487 and seththecat

static slate
#

tysm

drifting spade
#

replace b1.0.4 with whatever jar you downloaded

tender monolith
#

what should you do if you did everything, but the mod just dosn´t work? because i did everything on mac and it worked but there was no axiom if i pressed right shift nothin would happen, and there is not that fancy icon in the Hotbar, what should i do?(Im on Sonoma 14.0 with a apple M1 chip)

waxen tusk
#

/whynoaxiom

#

Do that in-game

tender monolith
#

oki

#

ok, nothig happened, it just said that the command doesn´t exist

waxen tusk
#

send a screenshot of your mod folder

tender monolith
#

one sec, trying stuff out

cursive kite
#

First of all make your own support post