facebook / facebook/facebook-ios-sdk

FBSDKAEMManager Crash on Launch since Aug 11

Open
#2,244 14 comments 6 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
Swift
Stars
8.1k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

### 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](https://github.com/facebook/facebook-ios-sdk/issues)
- [X] I've looked for existing answers on [Stack Overflow](https://facebook.stackoverflow.com), the [Facebook Developer Community Forum](https://developers.facebook.com/community/) and the [Facebook Developers Group](https://www.facebook.com/groups/fbdevelopers)
- [X] I've read the [Code of Conduct](https://github.com/facebook/facebook-ios-sdk/blob/main/CODE_OF_CONDUCT.md)
- [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)

Screenshot 2023-08-12 at 11 02 37 AM

### Expected results

No crashes

### Actual results

SDK is crashing on launch or when resuming from background.

### Steps to reproduce

_No response_

### Code samples & details

```swift
// INSERT YOUR CODE HERE
var example = "Example code"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.