facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

FBSDKAEMManager Crash on Launch since Aug 11

Open doshirj opened this issue 1 year ago • 14 comments

Checklist before submitting a bug report

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

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

doshirj avatar Aug 12 '23 15:08 doshirj

We have a very big spike of such crashes since yesterday's evening, it is immediately became our top-1 crash.

zavsby avatar Aug 17 '23 13:08 zavsby

Starting Aug 17, all of our iOS apps are experiencing this crash.

doshirj avatar Aug 17 '23 15:08 doshirj

Same in my application starting Aug 17, and facing a huge number of users.

miteshTW7777 avatar Aug 18 '23 05:08 miteshTW7777

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.

ddkdimitrov avatar Aug 18 '23 09:08 ddkdimitrov

We’re now in the process of rushing out app updates with the latest Facebook SDK version, which seems to resolve this.

doshirj avatar Aug 18 '23 12:08 doshirj

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?

Eva-Lau avatar Aug 21 '23 07:08 Eva-Lau

Please give a better solution, because now crash rate is very high

miteshTW7777 avatar Aug 21 '23 07:08 miteshTW7777

My app is affected as well, it's the topmost crash in the moment.

OlKir avatar Aug 21 '23 08:08 OlKir

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?

OlKir avatar Aug 22 '23 09:08 OlKir

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.

FabianBartels avatar Aug 22 '23 13:08 FabianBartels

Are there no Facebook developers here?

studiogaram avatar Aug 24 '23 15:08 studiogaram

This crash is back since Sep 7. It's still crashing now.

foreverwind avatar Sep 27 '23 03:09 foreverwind

Seeing this spike as well…

bdaz avatar Oct 06 '23 17:10 bdaz