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

Add Apple Silicon (arm64) support #31

Closed
hetaozdh opened this issue Nov 29, 2022 · 0 comments
Closed

Add Apple Silicon (arm64) support #31

hetaozdh opened this issue Nov 29, 2022 · 0 comments

Comments

@hetaozdh
Copy link

I try to load this mod by fabric on M1 Mac but crash, here is the log:
---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 2022-11-29 13:30:16
Description: Initializing game

java.lang.UnsatisfiedLinkError: dlopen(/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp, 0x0009): tried: '/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp' (no such file), '/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461)
at com.sun.jna.Library$Handler.(Library.java:192)
at com.sun.jna.Native.loadLibrary(Native.java:672)
at com.sun.jna.Native.loadLibrary(Native.java:656)
at jp.axer.cocoainput.arch.darwin.Handle.(Handle.java:9)
at jp.axer.cocoainput.arch.darwin.DarwinController.(DarwinController.java:15)
at jp.axer.cocoainput.CocoaInput.(CocoaInput.java:35)
at jp.axer.cocoainput.loader.FabricLoader.onWindowLaunched(FabricLoader.java:18)
at jp.axer.cocoainput.loader.FabricLoader.onChangeScreen(FabricLoader.java:28)
at net.minecraft.class_310.handler$zze000$setScreen(class_310.java:3448)
at net.minecraft.class_310.method_1507(class_310.java)
at net.minecraft.class_310.(class_310.java:668)
at net.minecraft.client.main.Main.method_44604(Main.java:205)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

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

-- Head --
Thread: Render thread
Stacktrace:
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461)
at com.sun.jna.Library$Handler.(Library.java:192)
at com.sun.jna.Native.loadLibrary(Native.java:672)
at com.sun.jna.Native.loadLibrary(Native.java:656)
at jp.axer.cocoainput.arch.darwin.Handle.(Handle.java:9)
at jp.axer.cocoainput.arch.darwin.DarwinController.(DarwinController.java:15)
at jp.axer.cocoainput.CocoaInput.(CocoaInput.java:35)
at jp.axer.cocoainput.loader.FabricLoader.onWindowLaunched(FabricLoader.java:18)
at jp.axer.cocoainput.loader.FabricLoader.onChangeScreen(FabricLoader.java:28)
at net.minecraft.class_310.handler$zze000$setScreen(class_310.java:3448)
at net.minecraft.class_310.method_1507(class_310.java)
at net.minecraft.class_310.(class_310.java:668)

-- Initialization --
Details:
Modules:
Stacktrace:
at net.minecraft.client.main.Main.method_44604(Main.java:205)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- System Details --
Details:
Minecraft Version: 1.19.2
Minecraft Version ID: 1.19.2
Operating System: Mac OS X (aarch64) version 13.0.1
Java Version: 17.0.2, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 1364998096 bytes (1301 MiB) / 1839202304 bytes (1754 MiB) up to 4294967296 bytes (4096 MiB)
CPUs: 8
Processor Vendor: Apple Inc.
Processor Name: Apple M1
Identifier: Apple Inc. Family 0x1b588bb3 Model 0 Stepping 0
Microarchitecture: unknown
Frequency (GHz): 24.00
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 8
Graphics card #0 name: Apple M1
Graphics card #0 vendor: Apple (0x106b)
Graphics card #0 VRAM (MB): 0.00
Graphics card #0 deviceId: unknown
Graphics card #0 versionInfo: unknown
Memory slot #0 capacity (MB): 0.00
Memory slot #0 clockSpeed (GHz): 0.00
Memory slot #0 type: unknown
Virtual memory max (MB): 23552.00
Virtual memory used (MB): 18234.67
Swap memory total (MB): 7168.00
Swap memory used (MB): 5765.25
JVM Flags: 0 total;
Fabric Mods:
betterpingdisplay: Better Ping Display 1.1.1
cocoainput: CocoaInput 4.0.4
dynamicfps: Dynamic FPS 2.2.0
com_moandjiezana_toml_toml4j: toml4j 0.7.2
fabric-api: Fabric API 0.67.1+1.19.2
fabric-api-base: Fabric API Base 0.4.13+0d0f210290
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.12+93d8cb8290
fabric-biome-api-v1: Fabric Biome API (v1) 9.0.20+0d0f210290
fabric-block-api-v1: Fabric Block API (v1) 1.0.1+12bfe4ea90
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.22+c6af733c90
fabric-client-tags-api-v1: Fabric Client Tags 1.0.3+b35fea8390
fabric-command-api-v1: Fabric Command API (v1) 1.2.13+f71b366f90
fabric-command-api-v2: Fabric Command API (v2) 2.1.9+93d8cb8290
fabric-commands-v0: Fabric Commands (v0) 0.2.30+df3654b390
fabric-containers-v0: Fabric Containers (v0) 0.1.37+df3654b390
fabric-content-registries-v0: Fabric Content Registries (v0) 3.4.3+6064db2a90
fabric-convention-tags-v1: Fabric Convention Tags 1.1.3+93d8cb8290
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.7+aeb40ebe90
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 5.3.1+ad31814d90
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.33+0d0f210290
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.2+9244241690
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.30+c6af733c90
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.31+df3654b390
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.23+c6af733c90
fabric-item-api-v1: Fabric Item API (v1) 1.6.1+fa140d5990
fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.35+9244241690
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.23+aaaf9d3390
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.21+df3654b390
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.2+9244241690
fabric-loot-api-v2: Fabric Loot API (v2) 1.1.9+83a8659290
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.12+9e7660c690
fabric-message-api-v1: Fabric Message API (v1) 5.0.5+93d8cb8290
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.20+33fbc73890
fabric-models-v0: Fabric Models (v0) 0.3.19+c6af733c90
fabric-networking-api-v1: Fabric Networking API (v1) 1.2.7+9244241690
fabric-networking-v0: Fabric Networking (v0) 0.3.24+df3654b390
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 4.1.2+06e0e25190
fabric-particles-v1: Fabric Particles (v1) 1.0.12+79adfe0a90
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.28+9244241690
fabric-renderer-api-v1: Fabric Renderer API (v1) 1.0.14+12bfe4ea90
fabric-renderer-indigo: Fabric Renderer - Indigo 0.6.16+aeb40ebe90
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.22+df3654b390
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.17+0d0f210290
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.9+c6af733c90
fabric-rendering-v0: Fabric Rendering (v0) 1.1.25+df3654b390
fabric-rendering-v1: Fabric Rendering (v1) 1.11.1+73145abb90
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.1.1+aae9039d90
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.8.1+0d0f210290
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.29+0d0f210290
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.3+1cc24b1b90
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.1+c4f28df590
fabric-textures-v0: Fabric Textures (v0) 1.0.22+aeb40ebe90
fabric-transfer-api-v1: Fabric Transfer API (v1) 2.1.3+9d081d6490
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.3.2+42d99c3290
fabricloader: Fabric Loader 0.14.10
itemscroller: Item Scroller 0.17.1
java: Java HotSpot(TM) 64-Bit Server VM 17
malilib: MaLiLib 0.13.0
minecraft: Minecraft 1.19.2
minihud: MiniHUD 0.23.3
optifabric: OptiFabric 1.13.16
mm: Manningham Mills 2.3
phosphor: Phosphor 0.8.1
tweakeroo: Tweakeroo 0.14.3
Launched Version: 1.19.2-fabric0.14.10
Backend library: LWJGL version 3.3.1 SNAPSHOT
Backend API: Apple M1 GL version 4.1 Metal - 83, Apple
Window size:
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages:
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Type: Client (map_client.txt)
CPU: 8x Apple M1
OptiFine Version: OptiFine_1.19.2_HD_U_H9
OptiFine Build: 20220820-230904
Render Distance Chunks: 8
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: null
OpenGlVersion: 4.1 Metal - 83
OpenGlRenderer: Apple M1
OpenGlVendor: Apple
CpuCount: 8

-- OptiFabric --
Details:
OptiFine jar designed for: 1.19.2
OptiFine jar version: OptiFine_1.19.2_HD_U_H9
OptiFine jar status: Valid OptiFine installer
OptiFine remapped jar: /Users/hetao/.xmcl/instances/1.19.2 Fabric/.optifine/OptiFine_1.19.2_HD_U_H9/Optifine-mapped.jar
OptiFabric error:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant