mcpelauncher-manifest icon indicating copy to clipboard operation
mcpelauncher-manifest copied to clipboard

Minecraft don't working on Apple silicon (M1)

Open MrDogPL opened this issue 3 years ago • 7 comments

The game crashes at random time error code: 0. (I know that Minecraft works on roseta, but I guess you can fix it) Os: macos big sur 11.5.2

MrDogPL avatar Sep 10 '21 19:09 MrDogPL

I'm not sure if this is possible, since this project depends on the fact that Minecraft is already compiled for Intel processors as some Android devices have Intel processors, while there are no Android devices that use Apple Silicon processors, so Minecraft has not been compiled for them. It may be possible with Rosetta though.

kyleplo avatar Sep 22 '21 23:09 kyleplo

since this project depends on the fact that Minecraft is already compiled for Intel processors

No. Linux arm32/64 works and has even less bugs in Minecraft 1.17.

Apple silicon is not emulatable, while linux / windows arm64 is. I need access to a m1 mac (remote CI is probably enough) or there will be no progress.

ChristopherHX avatar Sep 24 '21 18:09 ChristopherHX

@ChristopherHX Do you need someone to help you with your testing? I'm getting my new Mac tomorrow under their SoC. This would be a great advance for many users

moskadev avatar Oct 25 '21 16:10 moskadev

@moskadev

Do you need someone to help you with your testing?

Yes, but this launcher is potentially far far away from working on m1 so it would need much help and a lot of testing.

I have no idea how apple new security model of m1 behaves, it far more hardend than x86_64. I would need to experiment on actual hardware.

It is confirmed to work under rosetta 2.

  • The first step is to mmap an android shared library, this doesn't work at all.
    • mcpelauncher-linker panics due to an error of the mmap call
  • Would the android code run or does the process panic?
    • x86_64 panics once the fs register is accessed by the android stack protector => this launcher replaces the call
  • apple/m1 no executable and writeable pages at least not at the same time, need to patch the linker to switch between write,noexec and exec
    • restrictions to game modding
  • Do we need codesigning to gain code generation entitlement? I read something about this

ChristopherHX avatar Oct 25 '21 18:10 ChristopherHX

The problem also occur in M2, M1 Max and M1 Ultra. I didn't test anything about M1 Pro but I guess the problem still happened.

CasperOng avatar Oct 15 '22 14:10 CasperOng

For me on M2 MacBook Pro 13 inch with MacOS Ventura it works flawlessly under rosseta 2. But it hogs a lot of battery since its running under rosetta, is there any native Apple Silicon support?

gopipolsani avatar Dec 19 '22 13:12 gopipolsani

Hey any news here? Would like to uninstall Rosetta 2?

iMonZ avatar Oct 24 '23 21:10 iMonZ