AppsFlyerSDK / AppsFlyerFramework

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

crash +[AFSDKEventCache cacheEvent:] #216

Open linjiejiao opened 1 year ago

linjiejiao commented 1 year ago

Report

SDK Version

6.8.1

What did you do?

some user crash logs

What did you expect to happen?

dose not crash

What happened instead?

crash

Please provide any other relevant information.

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000 at 0x00000000 Application Specific Information: Terminating app due to uncaught exception 'NSGenericException', reason: ' Collection <NSDictionaryM: 0x7f4ecf0> was mutated while being enumerated.' Thread 41 Crashed: 0 CoreFoundation 0x1b727b3d exceptionPreprocess (in CoreFoundation) + 129 1 libobjc.A.dylib 0x1a9af067 objc_exception_throw (in libobjc.A.dylib) + 39 2 CoreFoundation 0x1b7275e1 -[NSException name] (in CoreFoundation) + 1 3 CoreFoundation 0x1b646f2b -[__NSFastEnumerationEnumerator nextObject] (in CoreFoundation) + 229 4 Foundation 0x1bfd57f7 _NSIsPList (in Foundation) + 465 5 Foundation 0x1bfd581b _NSIsPList (in Foundation) + 501 6 Foundation 0x1bfd581b _NSIsPList (in Foundation) + 501 7 Foundation 0x1bfd555f -[NSDictionary(NSDictionary) writeToFile:atomically:] (in Foundation) + 55 8 ???? 0x028bb873 +[AFSDKEventCache cacheEvent:] (in LIKE) + 649 9 ???? 0x028cfe59 -[AppsFlyerLib executeRequestWithUrlString:eventOptions:parameters:completionHandler:] (in LIKE) + 287 10 ???? 0x028cdde3 __71-[AppsFlyerLib callServerWithEventName:eventValues:options:completion:]_block_invoke_2.1037 (in LIKE) + 189 11 libdispatch.dylib 0x1adf5797 _dispatch_call_block_and_release (in libdispatch.dylib) + 11 12 libdispatch.dylib 0x1ae0259d _dispatch_queue_serial_drain (in libdispatch.dylib) + 855 13 libdispatch.dylib 0x1adf8b71 _dispatch_queue_invoke (in libdispatch.dylib) + 887 14 libdispatch.dylib 0x1ae02a1f _dispatch_queue_override_invoke (in libdispatch.dylib) + 283 15 libdispatch.dylib 0x1ae041b5 _dispatch_root_queue_drain (in libdispatch.dylib) + 327 16 libdispatch.dylib 0x1ae0400f _dispatch_worker_thread3 (in libdispatch.dylib) + 107 17 libsystem_pthread.dylib 0x1afaa87d _pthread_wqthread (in libsystem_pthread.dylib) + 1041 18 libsystem_pthread.dylib 0x1afaa45c start_wqthread (in libsystem_pthread.dylib) + 8

af-obodovskyi commented 1 year ago

@linjiejiao could you, please, provide more details on this crash:

iOS version, that is affected by this crash app crash rate did you try to reproduce this bug?

linjiejiao commented 1 year ago

This crash appear on iOS 10 only. Crash rate is low, we can not reproduce it on our devices. It never appears until we update appsflyer from 6.2.6 to 6.8.1.

asterpang commented 1 year ago

we also have this crash, on iOS 10. update to 6.9.0 did not fix the issue.

image