Closed mrwellmann closed 2 years ago
I just saw that it is recommend to use AR Foundation 4.0.12 for ASA SDK 2.9 or later https://docs.microsoft.com/en-us/azure/spatial-anchors/how-tos/setup-unity-project?tabs=unity-package-web-ui. Is this still true? We updated to 4.1.7 four moths ago.
We also have this issue.
The crash reports start showing up on devices even when the app is not running. The crashes stop happening for some time when the app is deleted and reinstalled.
Could it be related to some kind of telemetry that Azure SDK is collecting?
We are using AR Foundation 4.2.0.
Forgot to mention this. I can confirm what @mobimar is saying.
Can confirm, our app also constantly crashes on iOS 15 and also when not running like @mobimar.
Thanks so much for reporting this issue @mrwellmann! To answer the above question, ARFoundation 4.1.7 should work just fine as that is the version that we use for testing. Can you (or @mobimar or @tomkrikorian) confirm if this is an issue that repros with our Unity sample app out-of-the-box? Any idea if it happens with our non-Unity iOS sample apps? I'll upgrade my iOS devices now and start looking into it (#36747388).
I cannot confirm it happens on the Unity Sample from this repo but it does happen outside the sample for us. I can look into it later in the week and try to reproduce with the sample.
@mrwellmann and @tomkrikorian, thanks again for reporting this issue. We have been trying to repo it on multiple device models running iOS 15 and using ASA's Unity, ObjC and swift samples, but have not been able to repro this yet. As said, it would be great if you can try repro the crash using one of ASA samples.
Our app is working until a crash with unknown source happens. After this first crash the app crashes every time directly on launch. How long does it usually take for your app to get into this crashing state? Is the app crash report and call stack look the same when it crashes on re-launch?
Does your apps use AppCenter frameworks for any purpose, such as crash reporting, telemetry, or distribution?
Based on the symptoms, sounds like the app is leaving some corrupt files on storage after the first crash, which then cause the consecutive re-launches to crash as well. It would be helpful if you check your app's files on your device storage using the Apple's dev tools, as perhaps it can give us a hint about which file is corrupt.
We continue investigating this in our side, and will keep this thread updated.
Yes we use AppCenter Analytics and Crashes for our purpose as well and modified the mainTemplate.gradle for this. See https://github.com/Azure/azure-spatial-anchors-samples/issues/272#issuecomment-882657279
@tomkrikorian @mobimar you do this, too? I can test a build with out it at the start of next week.
No, we do not use AppCenter Analytics and Crashes directly. I do remember attempting to remove the reference as shown #272, but that resulted in either a build or runtime error, so it remained. Although modifying mainTemplate.gradle is only relevant for Android so I would presume it not to have an effect on this issue.
I think this library could be a very likely source of this failure. AppCenter Analytics crashing while attempting to send telemetry would explain why the program is crashing immediately at the start or when not even started at all. Reinstalling would remove all unsent/cached reports so the first run would work again.
The crashes happen for us when the app is installed from Testflight. As it is in a prerelease state, we can not confirm if it would also happen when installed from the app store. When installing it directly from Xcode, the issue does not seem to be present.
I do not have a device I could create these crashes at the moment. I can look into it next week to try to recreate the failure with the samples project.
Just a quick update crashes keep coming with iOS 15.1.0.
I've create a build with some extra buttons to crash the samples https://github.com/firedrill-gmbh/azure-spatial-anchors-samples/tree/issue-310-iOS-continuously-crashes but I was not able to to reproduce the bug during my about 20 crashes in different situations.
If AppCenter is the reason it will be really hard to reproduce it because I don't know about the implementation of AppCenter in ASA SDK and I don't know when it will send a report and when not I also can't deactivate it or postpone it.
I've forwarded this to AppCenter support and I will read a bit more on the AppCenter documentation when I have time to continue on this.
@mobimar The crashes happen for us when the app is installed from Testflight. As it is in a prerelease state, we can not confirm if it would also happen when installed from the app store. When installing it directly from Xcode, the issue does not seem to be present.
I am certain it is not a Testflight specific issue. We have the same issue when sharing a build with Unity Cloud Build. One thing wich is noted on the App Center documentation is that "The SDK won't forward any crash logs if you've attached the debugger. Make sure the debugger isn't attached when you crash the app."
Hello Azure team,
Any update on this issue? Even thought it might end up being unrelated to TestFlight, I believe it may useful that you try to upload your sample on TestFlight if you haven't already.
For some reason I don't understand, it seems that we encounter many more occurrences of these crashes when the app is installed through TestFlight rather than locally built and deployed.
Furthermore, I want to emphasise how exceptionally weird this bug is. More often than not, right after restarting our iPhone devices, an iOS dialog is displayed saying our app crashed. It wasn't even launched or any similar user action, and our app obviously doesn't have any permission that would let it run in the background. This is extremely surprising to me as I never had such a weird behaviour on iOS, both as an iOS developer and an iOS user.
As a result the simple fact of installing the app and running it at least once, will result in several iOS crash dialogs being displayed at any time (after restarting the device, or at random times during day to day use). Sometimes that same dialog will be displayed up to 5 (if not more) times in a span of just 2 or 3 seconds, and therefore are displayed on top of each other.
As you can see, for many reasons laid above by other users and I, this issue is particularly concerning and makes it impossible to distribute our app at the moment; this is why we are willing to help in any way we can in other to help you diagnose and investigate the matter.
Thanks for your posts @mrwellmann and @tinanigro. FYI, we have not been able to repro this issue on our side yet. However, we are working on removing the ASA SDK dependency on AppCenter for SDK telemetry and replace it with 1DS library. We are also adding new APIs that allows an app to disable telemetry. These changes will be in next SDK 2.11 release. As soon as we have an ETA for this release, we will share it here.
Hi, Any rough estimate on the release ? Or can we modify the current SDK to disable the telemetry somewhere ? I'm sure you're doing your best but it's been a month we can't release our app because of these crashes š
@tomkrikorian we are treating this issue with high priority and actively working on it. We roughly estimate to have the fix released by end of next week 11/19/21.
Amazing, thank you š
That's terrific news! Thank you for the fast answer and the transparency with regards to the ETA. This is very appreciated and definitely helps building trust between the ASA team and developers! š
ASA SDK 2.11.0 was just released. See release notes posted here. SDK dependency on AppCenter for telemetry is replaced with 1DS on iOS platform in this release, and so we expect the issue reported here is now fixed in SDK 2.11.0. Also note there is a new API that allows apps to disable telemetry. If app code calls CloudSpatialAnchorSession::EnableTelemetry(false) before calling CloudSpatialAnchorSession::Start(), then no telemetry is logged by ASA SDK.
Please let us know if this fixes the crash in your apps.
Hi, It does fix the crash that happens even if the app is not launched. I still have a crash that happens often but will open a new ticket for it.
update : new ticket opened here : https://github.com/Azure/azure-spatial-anchors-samples/issues/323
Thank you for letting us know that the release addresses the previous crash, @tomkrikorian . We will look into your new ticket.
Description We have a verry concerning issue since iOS 15.0.x. Our app is working until a crash with unknown source happens. After this first crash the app crashes every time directly on launch. The only possibility to fix this is to reinstall the app.
This behavior does not happen on every crash of the app it is rather the exception and we have not been able to consistently reproduce it.
The reason I'm writing this here is the crash dump I reference at Additional context which points to eater AzureSpatialAnchors or CoreFoundation.
Steps to reproduce the issue
n/a
Expected behavior
App launches after a crash without issues.
Development information (please complete the following information)
AR Device information (please complete the following information):
Additional context
Find below the crash log. From what I understand, the important parts in this case are Exception Type and Last Exception Backtrace. The exception type is explained here https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report#EXC_CRASH-(SIGABRT)