AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
164 stars 89 forks source link

Crash -[AFSDKUserDefaultsStorage setDouble:forKey:] #186

Closed funsiyuan closed 2 years ago

funsiyuan commented 2 years ago

Hi, I got this crash report from Fierbase Crashlytics. AppsFlyer SDK Version 6.2.5. steps to reproduce - unknown. Need help, Any ideas?

Crashed: com.appsflyer.serial
0  libobjc.A.dylib                0x1b3ed21e0 objc_msgSend + 32
1  Foundation                     0x1a074b924 _NSKeyValueObservationInfoGetObservances + 272
2  Foundation                     0x1a0755f6c NSKeyValueWillChange + 160
3  Foundation                     0x1a0755d28 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 428
4  Foundation                     0x1a06900b8 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 820
5  CoreFoundation                 0x19f2d663c -[CFPrefsSource forEachObserver:] + 328
6  CoreFoundation                 0x19f2d7e4c -[CFPrefsSource _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 112
7  CoreFoundation                 0x19f4513ac ___CFPrefsDeliverPendingKVONotificationsGuts_block_invoke + 440
8  CoreFoundation                 0x19f330aa8 __CFDictionaryApplyFunction_block_invoke + 28
9  CoreFoundation                 0x19f41a0c4 CFBasicHashApply + 144
10 CoreFoundation                 0x19f330a64 CFDictionaryApplyFunction + 292
11 CoreFoundation                 0x19f44ccd4 _CFPrefsDeliverPendingKVONotificationsGuts + 300
12 CoreFoundation                 0x19f44b4e0 -[_CFXPreferences _deliverPendingKVONotifications] + 96
13 CoreFoundation                 0x19f40d000 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 432
14 CoreFoundation                 0x19f40c58c normalizeQuintuplet + 356
15 CoreFoundation                 0x19f40ce28 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 152
16 CoreFoundation                 0x19f2cb614 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 128
17 CoreFoundation                 0x19f44f610 _CFPreferencesSetAppValueWithContainerAndConfiguration + 136
18 Foundation                     0x1a068acd4 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 68
19 MyApp                         0x102d48b98 -[AFSDKUserDefaultsStorage setDouble:forKey:] + 4341074840
20 MyApp                         0x102d618e4 -[AppsFlyerLib getTimePassedSinceLastLaunch] + 4341176548
21 MyApp                         0x102d5e768 -[AppsFlyerLib getEventParameters:] + 4341163880
22 MyApp                         0x102d61f28 -[AppsFlyerLib callServerWithEventName:eventValues:options:completion:] + 4341178152
23 MyApp                         0x102d5c574 __45-[AppsFlyerLib __startWithCompletionHandler:]_block_invoke + 4341155188
24 libdispatch.dylib              0x19efd9a84 _dispatch_call_block_and_release + 32
25 libdispatch.dylib              0x19efdb81c _dispatch_client_callout + 20
26 libdispatch.dylib              0x19efe3004 _dispatch_lane_serial_drain + 620
27 libdispatch.dylib              0x19efe3c00 _dispatch_lane_invoke + 404
28 libdispatch.dylib              0x19efee4bc _dispatch_workloop_worker_thread + 764
29 libsystem_pthread.dylib        0x1eb05e7a4 _pthread_wqthread + 276
30 libsystem_pthread.dylib        0x1eb06574c start_wqthread + 8
andr-ggn commented 2 years ago

https://github.com/AppsFlyerSDK/AppsFlyerFramework/issues/147

funsiyuan commented 2 years ago

Oh thank you. I'll look that issue later! šŸ˜„

funsiyuan commented 2 years ago

Truns out the root cause of the crash is the usage of google-toolbox-for-mac, which was included in (https://github.com/google/google-toolbox-for-mac/issues/238) some Firebase versions. Update Firebase frameworks to latest works for me. (version 8.8.0)