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

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

Closed
ajayns opened this issue Jul 15, 2022 · 7 comments
Closed

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

ajayns opened this issue Jul 15, 2022 · 7 comments
Labels
bug A bug in an ARFoundation-related package fixed Fixed in newer release

Comments

@ajayns
Copy link

ajayns commented Jul 15, 2022

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 ajayns added the bug A bug in an ARFoundation-related package label Jul 15, 2022
@andyb-unity
Copy link
Collaborator

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

@DennisDeRykeUnity
Copy link

@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.

@JanOwiesniak
Copy link

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

@KyryloKuzyk
Copy link

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

@ankur-unity ankur-unity changed the title [Bug] Unity crashes when running an AR app on XR Simulation Environments [Bug] Unity crashes when running XR Simulation on Apple Silicon (M1) Jul 27, 2022
@ankur-unity
Copy link
Collaborator

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

@andyb-unity andyb-unity added fixed Fixed in newer release and removed fixpending labels Sep 15, 2022
@andyb-unity
Copy link
Collaborator

Fixed in AR Foundation 5.0.2: https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/changelog/CHANGELOG.html

@ajayns
Copy link
Author

ajayns commented Sep 26, 2022

Verified fix! Thanks a bunch guys!

@ajayns ajayns closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in an ARFoundation-related package fixed Fixed in newer release
Projects
None yet
Development

No branches or pull requests

6 participants