arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

[Bug] Unity crashes when running XR Simulation on Apple Silicon (M1)

Open ajayns opened this issue 3 years ago • 5 comments
trafficstars

Describe the bug For even the most basic AR setup in Unity, the app almost instantly hangs or does so when you interact with it once when in play mode.

It seems to be a macOS error, particularly even an M1 chipset thing cause I run the same thing on windows and it works fine. Possibly related: https://forum.unity.com/threads/macbook-pro-m1-oculus-crash.1017730/

To Reproduce Steps to reproduce the behavior:

  1. Run any of the example scenes even in this repo
  2. Setup XR Simulation Environments
  3. Enable AR Environments and enter play mode
  4. Interact with the app once or twice and wait for it to hang.

Expected behavior Runs simulation smoothly.

Actual behavior Unity Crashed

Smartphone (please complete the following information):

  • Device: MacBook Pro (16" M1 Max)
  • OS: macOS 12.3.1
  • Unity version: 2021.3.5f1
  • ARFoundation version: 5.0.0-pre.12

ajayns avatar Jul 15 '22 14:07 ajayns

Please file a bug. https://unity3d.com/unity/qa/bug-reporting

andyb-unity avatar Jul 19 '22 22:07 andyb-unity

@ajayns Thank you for bringing this to our attention! Unity QA staff encountered this issue this week, and one of our AR Devs was able to reproduce this bug. We do not see the crash if we use the Intel version of the Unity Editor on an M1 Mac. We are continuing to investigate.

DennisDeRykeUnity avatar Jul 22 '22 21:07 DennisDeRykeUnity

I experience the same problem on my MacBook Pro (16" M1 Max). All AR Foundation scenes freeze as soon as I press the "Run" button in the Unity Editor Silicon Edition.

Workaround

Install Unity Editor Intel Edition and ran it with Rosetta

JanOwiesniak avatar Jul 26 '22 14:07 JanOwiesniak

Several AR Foundation Remote plugin users also experience crashes on the M1 chip with similar symptoms.

KyryloKuzyk avatar Jul 27 '22 14:07 KyryloKuzyk

We have created a public issue tracker for this bug: https://issuetracker.unity3d.com/issues/simulation-hangs-on-arm-macs-with-silicon-editor-build

ankur-unity avatar Jul 27 '22 20:07 ankur-unity

Fixed in AR Foundation 5.0.2: https://docs.unity3d.com/Packages/[email protected]/changelog/CHANGELOG.html

andyb-unity avatar Sep 15 '22 16:09 andyb-unity

Verified fix! Thanks a bunch guys!

ajayns avatar Sep 26 '22 13:09 ajayns