KyryloKuzyk / AR-Foundation-Remote-support

Support page for the 'AR Foundation Remote' plugin on the Asset Store
https://assetstore.unity.com/packages/tools/utilities/ar-foundation-remote-2-0-201106
9 stars 0 forks source link

Unity Editor Freezes when starting a heavy scene on Apple Silicon M1 #84

Closed mmanart closed 1 year ago

mmanart commented 1 year ago

Describe the bug The sample AR Scene provided in the example works with the companion app. But my actual scene, which has a lot of assets and scripts doesn't load at all The editor simply freezes on Play

This scene works on the device when run via xcode and also submitted to the AppStore yesterday. So no issues with the scene as such. Just not working with the plugin

Please provide additional info

  1. Does your existing AR project work fine on a real AR device?

    • Yes
  2. Can your issue be reproduced with plugin examples? To import examples into your project, press the 'Installer/Import Samples' button.

    • Plugin examples work
  3. Plugin version. You can find it in the 'Packages/AR Foundation Remote/package.json' file.

    • 2.0.32-release.0
  4. Unity version and your OS (Windows/macOS/Linux).

    • 2020.3.9f1
    • Mac M1 MacOS Venture 13.4
    • AR Foundation / ARCore XR / ARKit XR -> 4.1.13
  5. Attach your 'Packages/manifest.json' file to this bug report.

    • Attached
  6. Press 'File/Save' in Unity, then attach your 'Assets/Plugins/ARFoundationRemoteInstaller/Resources/Settings.asset' file to this bug report.

    • Attached
  7. Your AR device model and its OS version. Please make sure your AR device supports ARKit/ARCore and supports a feature you would like to test in the Editor.

    • Any Iphone / Ipad > Iphone 11
    • iOS version 15.6+
  8. If the Editor is crashing or freezing with the plugin, please attach your Editor.log file immediately after the crash/freeze has happened. You can find the Editor.log file here.

PS: I read your post on Freeze issues with Mac M1 Silicone chips. But it's still an issue for me after updating to the latest version as well.

KyryloKuzyk commented 1 year ago

Thank you for providing a high-quality bug report!

Is there a chance you're using some third-party dependency that wasn't designed to work in the Editor? If example scenes work fine for you, then I can suggest trying to cut out all other third-party dependencies from your scene, then add them back one by one to find which one causes the freeze.

I read your post on Freeze issues with Mac M1 Silicone chips. But it's still an issue for me after updating to the latest version as well.

With the M1 freeze issue, it was possible to start the scene at least once, and the freeze happened on subsequent scene launches. Also, the M1 freeze happened also in the example scene. So I believe your issue is something different because you're not able to start your scene at all, but examples work for you.

mmanart commented 1 year ago

Hey!

Thanks for replying.

I'm able to play the scene on the editor without the plugin. So I'm guessing it's some installed plugin conflicting with your plugin and hence the application is crashing when playing via the companion app.

I guess the only way is to it remove plugins one by one, but there are so many of them in the application and a lot of the features are dependent on them. Removing them even for checking will be a huge task!

Any other ideas on how to identify the issue with your plugin and my application?

I'm happy to send whatever logs you need. Meanwhile, i'll try running this same application on a windows machine and see.

But I would really love to use this plugin as it will significantly increase my productivity. So please let me know what else I can do to assist with identifying the issue!

KyryloKuzyk commented 1 year ago

@mmanart Do you have any updates on the issue?

I guess the only way is to it remove plugins one by one, but there are so many of them in the application and a lot of the features are dependent on them. Removing them even for checking will be a huge task!

Yes, unfortunately so, I understand that. Here is what you can try:

  1. Disable the plugin in the 'XR Plugin Management' window and see if your scene still works.
  2. Check if your code doesn't use AR Foundation APIs immediately on scene start. Start the AR session some time later after the scene launch and check if the scene crashes when you do it.
  3. Check what other plugins in your project use AR Foundation's API and disable them.
KyryloKuzyk commented 1 year ago

Please re-open the issue if you have any more info on it.