AppLovin / AppLovin-MAX-SDK-iOS

84 stars 69 forks source link

[ALDataCollector collectBatteryInfoIfNeeded:] Crashes #273

Open swordsfrog opened 6 months ago

swordsfrog commented 6 months ago

MAX SDK Version

11.11.2

Device/Platform Info

iOS 16

Current Behavior

We've received a lot of crashes on Firebase and from user feedbacks.

Our app is built on Flutter using applovin_max (3.3.0) and the iOS SDK version is 11.11.2.

The stack trace is as follows:

NSOperationQueue 0x104420aa0 (QOS: UNSPECIFIED)
0  libsystem_kernel.dylib         0x1ad0 __ulock_wait + 8
1  libdispatch.dylib              0x34128 _dlock_wait + 52
2  libdispatch.dylib              0x33f10 _dispatch_thread_event_wait_slow$VARIANT$armv81 + 52
3  libdispatch.dylib              0x46cfc __DISPATCH_WAIT_FOR_QUEUE__ + 340
4  libdispatch.dylib              0x468fc _dispatch_sync_f_slow + 140
5  Runner                         0xfbc58 -[ALDataCollector collectBatteryInfoIfNeeded:] + 4338023512
6  Runner                         0xf9dbc -[ALDataCollector collectDeviceInfo] + 4338015676
7  Runner                         0xf8280 -[ALDataCollector requestParametersWithAdInfo:nested:] + 4338008704
8  Runner                         0x6bcac -[ALEventService queryParametersForEvent:] + 4337433772
9  Runner                         0x6b754 __52-[ALEventService trackEvent:parameters:HTTPHeaders:]_block_invoke + 4337432404
10 Runner                         0x6b638 -[ALEventService trackEvent:parameters:HTTPHeaders:] + 4337432120
11 Runner                         0x6b0e4 -[ALEventService trackAppOpenEventIfNeeded] + 4337430756
12 Runner                         0x1374d8 -[ALTaskInitializeSdk run] + 4338267352
13 Runner                         0xe67e8 -[ALTaskManager executeImmediatelyOnBackgroundThread:] + 4337936360
14 Runner                         0xef808 -[ALSdk(Private) runInitializeSdkTaskFor:] + 4337973256
15 Runner                         0xef138 __36-[ALSdk(Private) fetchBasicSettings]_block_invoke + 4337971512
16 Runner                         0x8c824 -[ALTaskFetchBasicSettings maybeStartSdkInitializationWithResponse:] + 4337567780
17 Runner                         0x8c704 -[ALTaskFetchBasicSettings connectionVia:didSucceedWithCode:responseBody:] + 4337567492
18 Runner                         0x133304 -[ALTaskRepeatRequest connectionVia:didSucceedWithCode:responseBody:] + 4338250500
19 Runner                         0x114854 -[ALConnectionManager processResponseData:responseCode:responseError:responseHeaderFields:forRequest:emptyResponse:statsTracker:decodeResponse:trackConnectionSpeed:latencyMillis:andNotify:] + 4338124884
20 Runner                         0x1140b0 __143-[ALConnectionManager sendURLSessionRequest:session:withEmptyResponse:statsTracker:decodeResponse:trackConnectionSpeed:taskPriority:andNotify:]_block_invoke + 4338122928
21 CFNetwork                      0x1ce60 CFURLRequestSetMainDocumentURL + 2144
22 CFNetwork                      0x2bda8 _CFNetworkErrorCopyLocalizedDescriptionWithHostname + 12952
23 Foundation                     0x9cee8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 Foundation                     0x73bbc -[NSBlockOperation main] + 100
25 Foundation                     0x73b50 __NSOPERATION_IS_INVOKING_MAIN__ + 12
26 Foundation                     0x38c10 -[NSOperation start] + 684
27 Foundation                     0x3895c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 12
28 Foundation                     0x3d9fc __NSOQSchedule_f + 168
29 libdispatch.dylib              0x46630 _dispatch_block_async_invoke2 + 104
30 libdispatch.dylib              0x64780 _dispatch_client_callout + 16
31 libdispatch.dylib              0x3bd48 _dispatch_continuation_pop$VARIANT$armv81 + 436
32 libdispatch.dylib              0x3b480 _dispatch_async_redirect_invoke + 580
33 libdispatch.dylib              0x48c68 _dispatch_root_queue_drain + 328
34 libdispatch.dylib              0x49430 _dispatch_worker_thread2 + 160
35 libsystem_pthread.dylib        0x1b94 _pthread_wqthread + 224
36 libsystem_pthread.dylib        0x1720 start_wqthread + 8

Expected Behavior

No response

How to Reproduce

Unknown.

Additional Info

No response

adriancsbna commented 5 months ago

Same issues

tiandrew commented 5 months ago

We're working on scaling a fix for this - I'll keep the thread updated.