Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook SDK crashes #2182

Open
4 of 5 tasks
Sivaty opened this issue Feb 21, 2023 · 14 comments
Open
4 of 5 tasks

Facebook SDK crashes #2182

Sivaty opened this issue Feb 21, 2023 · 14 comments

Comments

@Sivaty
Copy link

Sivaty commented Feb 21, 2023

Checklist before submitting a bug report

Xcode version

14.2

Facebook iOS SDK version

12.2.0

Dependency Manager

CocoaPods

SDK Framework

Core

Goals

Fix crash,this crash has happened 180 times in the last 30 days.

Expected results

don`t crash

Actual results

crash:com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

Crashed: com.apple.root.default-qos
0 CoreFoundation 0x178688 cow_cleanup + 120
1 CoreFoundation 0x55f8 -[__NSDictionaryM dealloc] + 144
2 FBSDKCoreKit 0x4f2cc +[FBSDKLogger registerStringToReplace:replaceWith:] + 210 (FBSDKLogger.m:210)
3 FBSDKCoreKit 0x454e4 -[FBSDKGraphRequestConnection registerTokenToOmitFromLog:] + 1284 (FBSDKGraphRequestConnection.m:1284)
4 FBSDKCoreKit 0x41a8c -[FBSDKGraphRequestConnection urlStringForSingleRequest:forBatch:] + 722 (FBSDKGraphRequestConnection.m:722)
5 FBSDKCoreKit 0x412b8 -[FBSDKGraphRequestConnection requestWithBatch:timeout:] + 612 (FBSDKGraphRequestConnection.m:612)
6 FBSDKCoreKit 0x3fc08 -[FBSDKGraphRequestConnection start] + 391 (FBSDKGraphRequestConnection.m:391)
7 FBSDKCoreKit 0x3ddf8 -[FBSDKGraphRequest startWithCompletion:] + 195 (FBSDKGraphRequest.m:195)
8 FBSDKCoreKit 0xe2f0 -[FBSDKAppEventsATEPublisher publishATE] + 99 (FBSDKAppEventsATEPublisher.m:99)
9 FBSDKCoreKit 0xa6b0 __28-[FBSDKAppEvents publishATE]_block_invoke + 1112 (FBSDKAppEvents.m:1112)
10 libdispatch.dylib 0x60298 _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x61280 _dispatch_client_callout + 16
12 libdispatch.dylib 0x6048 _dispatch_queue_override_invoke + 692
13 libdispatch.dylib 0x12f3c _dispatch_root_queue_drain + 376
14 libdispatch.dylib 0x13704 _dispatch_worker_thread2 + 124
15 libsystem_pthread.dylib 0xa568 _pthread_wqthread + 212
16 libsystem_pthread.dylib 0xd874 start_wqthread + 8


crash:com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000000000005f

Crashed: com.apple.root.default-qos
0 libobjc.A.dylib 0x55c8 objc_msgSend + 8
1 CoreFoundation 0x5f44 -[__NSDictionaryM setObject:forKey:] + 444
2 FBSDKCoreKit 0x4f2e4 +[FBSDKLogger registerStringToReplace:replaceWith:] + 212 (FBSDKLogger.m:212)
3 FBSDKCoreKit 0x454e4 -[FBSDKGraphRequestConnection registerTokenToOmitFromLog:] + 1284 (FBSDKGraphRequestConnection.m:1284)
4 FBSDKCoreKit 0x41a8c -[FBSDKGraphRequestConnection urlStringForSingleRequest:forBatch:] + 722 (FBSDKGraphRequestConnection.m:722)
5 FBSDKCoreKit 0x412b8 -[FBSDKGraphRequestConnection requestWithBatch:timeout:] + 612 (FBSDKGraphRequestConnection.m:612)
6 FBSDKCoreKit 0x3fc08 -[FBSDKGraphRequestConnection start] + 391 (FBSDKGraphRequestConnection.m:391)
7 FBSDKCoreKit 0x3ddf8 -[FBSDKGraphRequest startWithCompletion:] + 195 (FBSDKGraphRequest.m:195)
8 FBSDKCoreKit 0xe2f0 -[FBSDKAppEventsATEPublisher publishATE] + 99 (FBSDKAppEventsATEPublisher.m:99)
9 FBSDKCoreKit 0xa6b0 __28-[FBSDKAppEvents publishATE]_block_invoke + 1112 (FBSDKAppEvents.m:1112)
10 libdispatch.dylib 0x60298 _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x61280 _dispatch_client_callout + 16
12 libdispatch.dylib 0x398c8 _dispatch_queue_override_invoke + 676
13 libdispatch.dylib 0x46458 _dispatch_root_queue_drain + 344
14 libdispatch.dylib 0x46bf8 _dispatch_worker_thread2 + 112
15 libsystem_pthread.dylib 0xb568 _pthread_wqthread + 212
16 libsystem_pthread.dylib 0xe874 start_wqthread + 8

Steps to reproduce

No response

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"
@timerrhythm
Copy link

I get same Crash in Facebook iOS SDK version12.3.2

@cruisediary
Copy link

Also in 13.1

@cruisediary
Copy link

#1751 would be same issue.

@lymancao
Copy link

Our app gets the same crash in Facebook for Unity v14.1.0 + XCode 14.2 +Unity 2021.3.11f1

@grighakobian
Copy link

grighakobian commented Apr 27, 2023

We have the same issue on our app.

Facebook SDK version: 16.0.1.
FBSDKLogger.m - Line 197

com.apple.main-thread
0 CoreFoundation 0x1bcc10 _approximateSizeOfPlistValue.cold.2 + 6641404944
1 CoreFoundation 0x84fd8 __CFStringCreateImmutableFunnel3 + 2744
2 CoreFoundation 0x8e750 _CFNonObjCStringCreateCopy + 556
3 CoreFoundation 0x85c38 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 200
4 CoreFoundation 0x82594 _CFStringCreateWithFormatAndArgumentsAux2 + 44
5 Foundation 0x1aed0 -[NSString initWithFormat:] + 52
6 iris 0x14f34a8 -[FBSDKGraphRequestBody _appendWithKey:filename:contentType:contentBlock:] + 147 (FBSDKGraphRequestBody.m:147)
7 iris 0x14f2dc8 -[FBSDKGraphRequestBody appendWithKey:formValue:logger:] + 67 (FBSDKGraphRequestBody.m:67)
8 iris 0x14f4758 __75-[FBSDKGraphRequestConnection appendAttachments:toBody:addFormData:logger:]_block_invoke + 472 (FBSDKGraphRequestConnection.m:472)
9 CoreFoundation 0x13588 NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK + 24
10 CoreFoundation 0xad61c -[__NSFrozenDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 192
11 iris 0x15c10d8 +[FBSDKTypeUtility dictionary:enumerateKeysAndObjectsUsingBlock:] + 86 (FBSDKTypeUtility.m:86)
12 iris 0x14f46b0 -[FBSDKGraphRequestConnection appendAttachments:toBody:addFormData:logger:] + 485 (FBSDKGraphRequestConnection.m:485)
13 iris 0x14f50e8 -[FBSDKGraphRequestConnection requestWithBatch:timeout:] + 589 (FBSDKGraphRequestConnection.m:589)
14 iris 0x14f3dd4 -[FBSDKGraphRequestConnection start] + 360 (FBSDKGraphRequestConnection.m:360)
15 iris 0x14f24ac -[FBSDKGraphRequest startWithCompletion:] + 194 (FBSDKGraphRequest.m:194)
16 iris 0x14d8320 __45-[FBSDKAppEvents flushOnMainQueue:forReason:]_block_invoke + 1265 (FBSDKAppEvents.m:1265)
17 iris 0x14d6930 __43-[FBSDKAppEvents fetchServerConfiguration:]_block_invoke_2 + 1000 (FBSDKAppEvents.m:1000)
18 iris 0x1511478 -[FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:] + 188 (FBSDKServerConfigurationManager.m:188)
19 iris 0x14d6508 __43-[FBSDKAppEvents fetchServerConfiguration:]_block_invoke + 927 (FBSDKAppEvents.m:927)
20 iris 0x14da4e0 -[FBSDKAppEventsConfigurationManager _processResponse:error:] + 124 (FBSDKAppEventsConfigurationManager.m:124)
21 iris 0x14f9634 -[FBSDKGraphRequestMetadata invokeCompletionHandlerForConnection:withResults:error:] + 32 (FBSDKGraphRequestMetadata.m:32)
22 iris 0x14f6d30 __82-[FBSDKGraphRequestConnection processResultBody:error:metadata:canNotifyDelegate:]_block_invoke + 967 (FBSDKGraphRequestConnection.m:967)
23 iris 0x14f6c50 -[FBSDKGraphRequestConnection processResultBody:error:metadata:canNotifyDelegate:] + 1000 (FBSDKGraphRequestConnection.m:1000)
24 iris 0x14f68f4 __65-[FBSDKGraphRequestConnection _completeWithResults:networkError:]_block_invoke + 949 (FBSDKGraphRequestConnection.m:949)
25 CoreFoundation 0xa3a0 NSARRAY_IS_CALLING_OUT_TO_A_BLOCK + 24
26 CoreFoundation 0x256d0 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 196
27 iris 0x14f66a4 -[FBSDKGraphRequestConnection _completeWithResults:networkError:] + 926 (FBSDKGraphRequestConnection.m:926)
28 iris 0x14f5be0 -[FBSDKGraphRequestConnection completeFBSDKURLSessionWithResponse:data:networkError:] + 783 (FBSDKGraphRequestConnection.m:783)
29 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release + 32
30 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
31 libdispatch.dylib 0x127f4 _dispatch_main_queue_drain + 928
32 libdispatch.dylib 0x12444 _dispatch_main_queue_callback_4CF + 44
33 CoreFoundation 0x9a6f8 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
34 CoreFoundation 0x7c058 __CFRunLoopRun + 2036
35 CoreFoundation 0x80ed4 CFRunLoopRunSpecific + 612
36 GraphicsServices 0x1368 GSEventRunModal + 164
37 UIKitCore 0x3a23d0 -[UIApplication _run] + 888
38 UIKitCore 0x3a2034 UIApplicationMain + 340
39 iris 0x810c main + 31 (AppDelegate.swift:31)
40 ??? 0x1aa2e8960 (Missing)

Crashed: com.apple.root.default-qos
0 libobjc.A.dylib 0x1c08 objc_msgSend + 8
1 CoreFoundation 0x2484 -[__NSDictionaryM setObject:forKey:] + 404
2 iris 0x14ff0d4 +[FBSDKLogger registerStringToReplace:replaceWith:] + 197 (FBSDKLogger.m:197)
3 iris 0x14f85d0 -[FBSDKGraphRequestConnection registerTokenToOmitFromLog:] + 1254 (FBSDKGraphRequestConnection.m:1254)
4 iris 0x14f55d8 -[FBSDKGraphRequestConnection urlStringForSingleRequest:forBatch:] + 691 (FBSDKGraphRequestConnection.m:691)
5 iris 0x14f4ff4 -[FBSDKGraphRequestConnection requestWithBatch:timeout:] + 581 (FBSDKGraphRequestConnection.m:581)
6 iris 0x14f3dd4 -[FBSDKGraphRequestConnection start] + 360 (FBSDKGraphRequestConnection.m:360)
7 iris 0x14f24ac -[FBSDKGraphRequest startWithCompletion:] + 194 (FBSDKGraphRequest.m:194)
8 iris 0x14d962c -[FBSDKAppEventsATEPublisher publishATE] + 95 (FBSDKAppEventsATEPublisher.m:95)
9 iris 0x14d60e8 __28-[FBSDKAppEvents publishATE]_block_invoke + 878 (FBSDKAppEvents.m:878)
10 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release + 32
11 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
12 libdispatch.dylib 0x70c8 _dispatch_queue_override_invoke + 788
13 libdispatch.dylib 0x15a6c _dispatch_root_queue_drain + 396
14 libdispatch.dylib 0x16284 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib 0xdbc _pthread_wqthread + 228
16 libsystem_pthread.dylib 0xb98 start_wqthread + 8

@hakota
Copy link

hakota commented Jun 5, 2023

👍🏻

@victor-yn
Copy link

Any update here? We are facing the same crash

nmamlm referenced this issue Jul 27, 2023
Summary: $title

Differential Revision: D47070019

fbshipit-source-id: a3f5cf2ed4b27044c166f84595672fe0e5a75dbb
@joseewu
Copy link

joseewu commented Aug 14, 2023

hi folks, we start getting crashes on 16.6. does anyone try any work around? 🙏

@Archerlly
Copy link

Also in 12.0.2

@rgadelshin
Copy link

Also in 16.0.0

@penoty
Copy link

penoty commented Sep 18, 2023

Also in 16.3.1, please fix the crash.

@penoty
Copy link

penoty commented Sep 18, 2023

Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x7578 __pthread_kill + 8
1 libsystem_pthread.dylib 0x7118 pthread_kill + 268
2 libsystem_c.dylib 0x1d178 abort + 180
3 libsystem_malloc.dylib 0x1e0e4 malloc_vreport + 908
4 libsystem_malloc.dylib 0x1e2c8 malloc_report + 64
5 libsystem_malloc.dylib 0x19b70 find_zone_and_free + 308
6 CoreFoundation 0xd7e8 mdict_rehashd + 272
7 CoreFoundation 0x2130 -[__NSDictionaryM setObject:forKey:] + 512
9 FBSDKCoreKit 0x32dd4 +[FBSDKLogger registerStringToReplace:replaceWith:] + 197 (FBSDKLogger.m:197)
10 FBSDKCoreKit 0x2c2d0 -[FBSDKGraphRequestConnection registerTokenToOmitFromLog:] + 1254 (FBSDKGraphRequestConnection.m:1254)
11 FBSDKCoreKit 0x29224 -[FBSDKGraphRequestConnection urlStringForSingleRequest:forBatch:] + 691 (FBSDKGraphRequestConnection.m:691)
12 FBSDKCoreKit 0x28c40 -[FBSDKGraphRequestConnection requestWithBatch:timeout:] + 581 (FBSDKGraphRequestConnection.m:581)
13 FBSDKCoreKit 0x27a20 -[FBSDKGraphRequestConnection start] + 360 (FBSDKGraphRequestConnection.m:360)
14 FBSDKCoreKit 0xdd40 -[FBSDKAppEventsConfigurationManager loadAppEventsConfigurationWithBlock:] + 103 (FBSDKAppEventsConfigurationManager.m:103)
15 FBSDKCoreKit 0x9c48 -[FBSDKAppEvents fetchServerConfiguration:] + 932 (FBSDKAppEvents.m:932)
16 FBSDKCoreKit 0xc2b0 -[FBSDKAppEvents applicationDidBecomeActive] + 1378 (FBSDKAppEvents.m:1378)
17 CoreFoundation 0x37590 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 148
18 CoreFoundation 0xdb828 ___CFXRegistrationPost_block_invoke + 88
19 CoreFoundation 0xbe8b8 _CFXRegistrationPost + 440
20 CoreFoundation 0x4bafc _CFXNotificationPost + 700
21 Foundation 0x5cd18 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
22 UIKitCore 0x28c1e8 -[UIApplication _stopDeactivatingForReason:] + 1236
23 UIKitCore 0x28bc98 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 280
24 UIKitCore 0x28ba84 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 620
25 UIKitCore 0x28b634 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 252
26 UIKitCore 0x28b500 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 148
27 UIKitCore 0x978a68 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
28 UIKitCore 0xa17074 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
29 UIKitCore 0x138c70 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
30 UIKitCore 0x5aa1ac __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.223 + 556
31 UIKitCore 0x209c60 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216
32 UIKitCore 0x209ad0 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
33 UIKitCore 0x209910 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336
34 FrontBoardServices 0x3ac8 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 420
35 FrontBoardServices 0x3904 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 152
36 FrontBoardServices 0x7120 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
37 FrontBoardServices 0x703c __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 344
38 libdispatch.dylib 0x3eac _dispatch_client_callout + 20
39 libdispatch.dylib 0x791c _dispatch_block_invoke_direct + 264
40 FrontBoardServices 0x1124c FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 52
41 FrontBoardServices 0x10de8 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
42 FrontBoardServices 0x13694 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
43 CoreFoundation 0xd3128 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
44 CoreFoundation 0xdf7b4 __CFRunLoopDoSource0 + 176
45 CoreFoundation 0x645e8 __CFRunLoopDoSources0 + 244
46 CoreFoundation 0x7a0d4 __CFRunLoopRun + 828
47 CoreFoundation 0x7f3ec CFRunLoopRunSpecific + 612
48 GraphicsServices 0x135c GSEventRunModal + 164
49 UIKitCore 0x39cf58 -[UIApplication _run] + 888
50 UIKitCore 0x39cbbc UIApplicationMain + 340
51 XXXXX 0x5b08 main + 35 (main.m:35)

@penoty
Copy link

penoty commented Nov 8, 2023

Any update here?

@devSC
Copy link

devSC commented Dec 29, 2023

Thread 40 Queue : com.apple.NSURLSession-work (serial)
#0 0x000000019b5708ac in objc_msgSend ()
#1 0x00000001a31981b8 in cow_cleanup ()
#2 0x00000001a31e8aa8 in -[__NSFrozenDictionaryM dealloc] ()
#3 0x000000010fc7a8dc in -[FBSDKGraphRequest .cxx_destruct] at /FBSDKCoreKit/FBSDKCoreKit/GraphAPI/FBSDKGraphRequest.m:37
#4 0x000000019b571354 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#5 0x000000019b571090 in objc_destructInstance ()
#6 0x000000019b57103c in _objc_rootDealloc ()
#7 0x000000019b571354 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#8 0x000000019b571090 in objc_destructInstance ()
#9 0x000000019b57103c in _objc_rootDealloc ()
#10 0x00000001a3197ec0 in RELEASE_OBJECTS_IN_THE_ARRAY ()
#11 0x00000001a3197dfc in -[__NSArrayM dealloc] ()
#12 0x000000010fc80da4 in -[FBSDKGraphRequestConnection .cxx_destruct] at /FBSDKCoreKit/FBSDKCoreKit/GraphAPI/FBSDKGraphRequestConnection.m:77
#13 0x000000019b571354 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#14 0x000000019b571090 in objc_destructInstance ()
#15 0x000000019b57103c in _objc_rootDealloc ()
#16 0x000000010fc7b818 in -[FBSDKGraphRequestConnection dealloc] at /FBSDKCoreKit/FBSDKCoreKit/GraphAPI/FBSDKGraphRequestConnection.m:282
#17 0x000000019b56eb60 in AutoreleasePoolPage::releaseUntil(objc_object**) ()
#18 0x000000019b56e9f8 in objc_autoreleasePoolPop ()
#19 0x000000010fb1a9c8 in _dispatch_lane_serial_drain ()
#20 0x000000010fb1b75c in _dispatch_lane_invoke ()
#21 0x000000010fb285f8 in _dispatch_root_queue_drain_deferred_wlh ()
#22 0x000000010fb27c2c in _dispatch_workloop_worker_thread ()
#23 0x000000020cbe9964 in _pthread_wqthread ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

13 participants