facebook-ios-sdk
facebook-ios-sdk copied to clipboard
FBSDKAEMManager Crash on Launch since Aug 11
Checklist before submitting a bug report
- [ ] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
14.3.1
Facebook iOS SDK version
16.1.0
Dependency Manager
Prebuilt Binaries
SDK Framework
Core
Goals
Since yesterday, we have been seeing a large number of crashes from FBSDKAEMManager in our app, which we last updated a few weeks ago. The crashes seem to happen immediately after the app is launched or returns to the foreground. Many users are only experiencing the crash one time, but some are getting it more than once. Strangely, the crash only seems to be happening in one of our apps, when we have several apps with a lot of shared code that use Facebook the same way. I'm wondering if this could be a Facebook server config issue like we've seen in the past causing crashes on launch. Here is the crash log:
Crashed: com.apple.main-thread 0 Foundation 0x216690 static URL.unconditionallyBridgeFromObjectiveC(:) + 152 1 Common 0x32848c __24-[FBSDKAEMManager setup]_block_invoke.9 + 89 (FBSDKAEMManager.m:89) 2 Common 0x36c4a0 fb_swizzledMethod_5 + 141 (FBSDKSwizzler.m:141) 3 UIKitCore 0xc66ee0 -[UIApplication activityContinuationManager:continueUserActivity:] + 168 4 UIKitCore 0xe758ec -[UIActivityContinuationManager _continueUserActivity:] + 56 5 UIKitCore 0xe76404 __72-[UIActivityContinuationManager handleActivityContinuation:isSuspended:]_block_invoke_3 + 64 6 UIKitCore 0x78e82c -[_UIApplicationModalProgressController _callAndClearDismissalHandlerWasDismissedByUser:] + 72 7 UIKitCore 0x78eae4 -[_UIApplicationModalProgressController hideAfterMinimumUptimeWithDismissalHandler:] + 228 8 UIKitCore 0xc66bf8 -[UIApplication activityContinuationManager:hideProgressUIWithCompletion:] + 140 9 UIKitCore 0xe7589c -[UIActivityContinuationManager _endCurrentActivityContinuationWithCompletion:] + 64 10 UIKitCore 0xe761d0 __72-[UIActivityContinuationManager handleActivityContinuation:isSuspended:]_block_invoke_2 + 188 11 libdispatch.dylib 0x63850 _dispatch_call_block_and_release + 24 12 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16 13 libdispatch.dylib 0x45f18 _dispatch_main_queue_drain + 888 14 libdispatch.dylib 0x45b90 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36 15 CoreFoundation 0x93848 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 16 CoreFoundation 0x774d4 __CFRunLoopRun + 2096 17 CoreFoundation 0x7bb7c CFRunLoopRunSpecific + 584 18 GraphicsServices 0x1984 GSEventRunModal + 160 19 UIKitCore 0x3753c8 -[UIApplication _run] + 868 20 UIKitCore 0x375040 UIApplicationMain + 312 21 SpadesLite 0x13318 main + 11 (main.m:11) 22 ??? 0x1db748df0 (Missing)
Expected results
No crashes
Actual results
SDK is crashing on launch or when resuming from background.
Steps to reproduce
No response
Code samples & details
// INSERT YOUR CODE HERE
var example = "Example code"
We have a very big spike of such crashes since yesterday's evening, it is immediately became our top-1 crash.
Starting Aug 17, all of our iOS apps are experiencing this crash.
Same in my application starting Aug 17, and facing a huge number of users.
I work on a big iOS app where we are getting the same issue in Firebase - Crashlytics: __24-[FBSDKAEMManager setup]_block_invoke.9 I will follow the conversation. I guess we need to wait for an update from the FBSDK team. No actions are required to prevent this in the application.
I checked and can confirm most clients who are getting this issue are with IOS device versions iOS 16 and higher. People with lower versions do not have this issue.
We’re now in the process of rushing out app updates with the latest Facebook SDK version, which seems to resolve this.
Since 08/17, the occurrence rate of such errors is very high, which has affected a large number of users. Have you found any better solutions?
Please give a better solution, because now crash rate is very high
My app is affected as well, it's the topmost crash in the moment.
We’re now in the process of rushing out app updates with the latest Facebook SDK version, which seems to resolve this.
@doshirj Could you please confirm that updating SDK removed the crash for you?
We also experienced a huge jump of this crash. Updating from 16.1.0 to 16.1.3 seemed to solve it, at least we are no longer receiving this crash.
Are there no Facebook developers here?
This crash is back since Sep 7. It's still crashing now.
Seeing this spike as well…