Closed JanOwiesniak closed 1 year ago
Hi Jan,
Huge thanks for the detailed bug report! I will get back to you as soon as possible.
Is the Editor.log was captured after the freeze has just happened? Because, unfortunately, there is no indication of a possible freeze.
Can I please also ask you to install the plugin to a fresh project to isolate the issue from other dependencies?
Hi Jan,
Huge thanks for the detailed bug report! I will get back to you as soon as possible.
Is the Editor.log was captured after the freeze has just happened? Because, unfortunately, there is no indication of a possible freeze.
Editor.log was uploaded after i force quit Unity Editor.
Can I please also ask you to install the plugin to a fresh project to isolate the issue from other dependencies?
Sure.
Test Setup
AR Template
AR Foundation Remote 2.0
as only dependencyMeshClassificationExample
sceneARFoundationRemoteCompanionApp
via XCode on my deviceHere is the Editor.log after i force closed Unity.
So to sum up. The crash is most likely connected to the AR Foundation running on the M1 chip. A similar issue is reported here: https://github.com/Unity-Technologies/arfoundation-samples/issues/994
The same crash is happening on the M1 chip with a new Simulation feature available in AR Foundation 5.0.0-pre.12 (without the AR Foundation Remote plugin installed).
Current workaround: install Unity Editor Intel Edition and run it with Rosetta.
Huge thanks to Jan for helping me out with this! I'll leave this bug report open for now so other customers can find it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi Jan,
Could you please try to update to AR Foundation 4.2.6 or to 5.0.2 and check if the crash on M1 is fixed?
Editor still crashes with following setup when staring game mode:
Unity Editor 2021.3.10.f1 SILICON LTS
Cloned AR Foundation Samples 5.0.2
Installed AR Foundation Remote 2.0.27-release.0
Note: Still works with Unity Editor 2021.3.10.f1 INTEL LTS
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @JanOwiesniak
I'm very sorry it took me so long, but I believe I fixed the issue. It was this one: https://issuetracker.unity3d.com/issues/m1-editor-slash-player-freezes-when-calling-getnativetextureptr
Could you please update the plugin to version 1.4.30 or 2.0.30 and tell me if the workaround works for you?
Other customers have confirmed the fix worked for them both on M1 and M2 processors. Huge thanks for helping me to find the issue!
Describe the bug
Starting an AR scene (e.g. "ARKit MeshClassificationExample") on the "ARFoundationRemoteCompanionApp" causes the Unity Editor to freeze after a few seconds (usually between 30 seconds and 1 minute).
Attempts to solve the issue so far
Packages/com.unity.xr.arfoundation/Runtime/AR/ARCameraBackground.cs
as mentioned herePlease provide additional info
Does your existing AR project work fine on a real AR device?
Yes. Tested standalone on iOS and works as expected.
Can your issue be reproduced with plugin examples? To import examples into your project, press the 'Installer/Import Samples' button.
Yes. Unity Editor freezes with every tested example from the samples.
Plugin version. You can find it in the 'Packages/AR Foundation Remote/package.json' file.
Unity version and your OS (Windows/macOS/Linux).
Attach your 'Packages/manifest.json' file to this bug report.
manifest.json
packages-lock.json
Press 'File/Save' in Unity, then attach your 'Assets/Plugins/ARFoundationRemoteInstaller/Resources/Settings.asset' file to this bug report.
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.
Errors, warnings, and stack traces Add all errors/warnings from the Unity Editor and from the AR Companion if any. Please send errors and warnings as text (with all stack traces), NOT as screenshots (you can select all console output by pressing ctrl/cmd+a, then copy it by pressing ctrl/cmd+c). 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.
Editor.log
Download here