AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

Crash happened at the beginning of app #435

Closed nikita-kostyuk-zehpyr closed 1 month ago

nikita-kostyuk-zehpyr commented 1 month ago

MAX Plugin Version

7.0.0

Unity Version

2022.3.37f1

Device/Platform Info

iOS

Crashes/ANRs per Day

~170 crashes per day

Percentage of Users Affected

<1%

First Occurrence of Crash/ANR

Crash has occurred after updating to Applovin 7.0.0 (or ios 13.0.0)

In general users who are faced with this crash are:

Exception and Stack Trace

         Fatal Exception: NSGenericException
0  CoreFoundation                 0xecb28 __exceptionPreprocess
1  libobjc.A.dylib                0x2af78 objc_exception_throw
2  CFNetwork                      0xf040 _CFNetworkSetHSTSStoragePath
3  AppLovinQualityService         0x12bb80 (Missing UUID acb7cd55a0f43a9eabe2f63c3de775c4)
4  UnityFramework                 0x544fd14 NotificationService.sendNotification(urlString:key:attempt:)
5  UnityFramework                 0x54517e0 closure #1 in NotificationService.sendStoredTpats()
6  UnityFramework                 0x547912c closure #1 in Persistence.readStoredTpats(callback:)
7  UnityFramework                 0x3362718 thunk for @escaping @callee_guaranteed @Sendable () -> ()
8  libdispatch.dylib              0x213c _dispatch_call_block_and_release
9  libdispatch.dylib              0x3dd4 _dispatch_client_callout
10 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain
11 libdispatch.dylib              0xbf30 _dispatch_lane_invoke
12 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh
13 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread
14 libsystem_pthread.dylib        0x1f20 _pthread_wqthread
15 libsystem_pthread.dylib        0x1fc0 start_wqthread

Also I have noticed some stack trace from others threads that connected with crash. Probably they somehow connected with crash and will help with solving. Full stack traces will attach

         com.Fyber.SDK.Marketplace.core.networking.client.result
0  CoreFoundation                 0x18578 -[__NSPlaceholderArray initWithObjects:count:] + 234
1  Foundation                     0xa985c NSSearchPathForDirectoriesInDomains + 76
2  Foundation                     0xed910 -[NSFileManager URLsForDirectory:inDomains:] + 64
3  UnityFramework                 0x4061c20 DTXOMIDRepository.migrateToUserDefaults() + 160208
4  UnityFramework                 0x4061b48 DTXOMIDRepository.init(omidVersionString:) + 159992
5  UnityFramework                 0x4061d18 @objc DTXOMIDRepository.init(omidVersionString:) + 160456
6  UnityFramework                 0x3fd5854 __32+[FYBOMIDManager sharedInstance]_block_invoke + 2376
7  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
8  libdispatch.dylib              0x5654 _dispatch_once_callout + 32
9  UnityFramework                 0x3fd57b0 +[FYBOMIDManager sharedInstance] + 2212
10 UnityFramework                 0x401412c -[IASDKCore activateOMFlowIfNeeded] + 122564
11 CoreFoundation                 0x2f7a8 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
12 CoreFoundation                 0x2f170 ___CFXRegistrationPost_block_invoke + 88
13 CoreFoundation                 0x2f0b8 _CFXRegistrationPost + 440
14 CoreFoundation                 0x2e608 _CFXNotificationPost + 728
15 Foundation                     0x29f10 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
16 UnityFramework                 0x404f67c -[FMPABTestingConfigManager parseABConfigData:] + 85036
17 UnityFramework                 0x404fb80 -[FMPABTestingConfigManager networkingClient:succeededWithHTTPStatusCode:headers:data:] + 86320
18 UnityFramework                 0x3f71ebc __59-[IANetworkingClient URLSession:task:didCompleteWithError:]_block_invoke + 207716
19 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
20 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
21 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
22 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
23 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
24 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
25 libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
26 libsystem_pthread.dylib        0x1fc0 start_wqthread + 8
          fb-ad-utility-user-agent-provider
0  libsystem_kernel.dylib         0x16c8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x4ec8 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x4de0 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x4c20 mach_msg + 24
4  libdispatch.dylib              0x1eb18 _dispatch_mach_send_and_wait_for_reply + 544
5  libdispatch.dylib              0x1eeb8 dispatch_mach_send_with_result_and_wait_for_reply + 60
6  libxpc.dylib                   0x10ac8 xpc_connection_send_message_with_reply_sync + 264
7  Foundation                     0x666a8 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 16
8  Foundation                     0x62d14 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2160
9  CoreFoundation                 0x20d88 ___forwarding___ + 1016
10 CoreFoundation                 0x208d0 _CF_forwarding_prep_0 + 96
11 CoreServices                   0x2d014 __56-[LSApplicationWorkspace deviceIdentifierForAdvertising]_block_invoke + 264
12 CoreServices                   0x2d1d4 _LSRetryForConnectionInterrupted + 56
13 CoreServices                   0x5c28c -[LSApplicationWorkspace deviceIdentifierForAdvertising] + 160
14 AdSupport                      0x1874 -[ASIdentifierManager advertisingIdentifier] + 156
15 UnityFramework                 0x3b5a1d0 +[FBAdIDProviderExternal advertisingIdentifier] + 1652
16 UnityFramework                 0x3b79a6c +[FBAdUtility(FBAdDeviceInfoUtility) advertisingIdentifier] + 33960
17 UnityFramework                 0x3b2c74c +[FBAdEnvironmentData bidderTokenParamsIncludeATT:] + 116076
18 UnityFramework                 0x3b2cf78 +[FBAdEnvironmentData staticEnvironmentParamsEncodedWithBtExtras:] + 118168
19 UnityFramework                 0x3b6175c -[FBAdURLSession defaultConfiguration] + 31744
20 UnityFramework                 0x3b6192c -[FBAdURLSession setupSessionWithUserAgent:] + 32208
21 UnityFramework                 0x3b618e8 __31-[FBAdURLSession updateSession]_block_invoke + 32140
22 UnityFramework                 0x3b7ef84 __47-[FBAdUtilityUserAgentProvider invokeCallbacks]_block_invoke + 2176
23 CoreFoundation                 0x24b14 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
24 CoreFoundation                 0xc3f9c -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 268
25 UnityFramework                 0x3b7ef20 -[FBAdUtilityUserAgentProvider invokeCallbacks] + 2076
26 UnityFramework                 0x3b7edb4 __76-[FBAdUtilityUserAgentProvider retrieveUserAgentWithHandler:transformBlock:]_block_invoke_3 + 1712
27 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
28 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
29 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
30 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
31 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
32 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
33 libsystem_pthread.dylib        0x4934 _pthread_wqthread + 288
34 libsystem_pthread.dylib        0x10cc start_wqthread + 8
          com.bidmachine.contextual.queue
0  libsystem_kernel.dylib         0x1424 kevent_id + 8
1  libdispatch.dylib              0x267d4 _dispatch_kq_poll + 228
2  libdispatch.dylib              0x271bc _dispatch_event_loop_wait_for_ownership + 436
3  libdispatch.dylib              0x13594 __DISPATCH_WAIT_FOR_QUEUE__ + 340
4  libdispatch.dylib              0x1315c _dispatch_sync_f_slow + 148
5  libswiftDispatch.dylib         0x496c implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 192
6  libswiftDispatch.dylib         0x48a4 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
7  libswiftDispatch.dylib         0x4724 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 404
8  libswiftDispatch.dylib         0x4560 OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
9  libswiftDispatch.dylib         0x44cc OS_dispatch_queue.sync<A>(execute:) + 64
10 UnityFramework                 0x3040ab4 InternalQueue.sync<A>(_:) + 674240
11 UnityFramework                 0x3040e14 protocol witness for SafeQueue.sync<A>(_:) in conformance InternalQueue + 675104
12 UnityFramework                 0x31748e0 BiddingManagerSafe.networksVarable() + 1935340
13 UnityFramework                 0x33ae6b4 specialized ConnectionManager.sessionRequest(_:) + 4269504
14 UnityFramework                 0x3042010 partial apply for closure #1 in InternalQueue.async(_:) + 679708
15 UnityFramework                 0x3362718 thunk for @escaping @callee_guaranteed @Sendable () -> () + 3958308
16 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
17 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
18 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
19 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
20 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
21 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
22 libsystem_pthread.dylib        0x4934 _pthread_wqthread + 288
23 libsystem_pthread.dylib        0x10cc start_wqthread + 8

bidmachine.txt fb-ad-utility.txt fyber.txt no-med.txt

Networks versions Network IOS
AppLovin 13.0.0
Bidmachine 3.0.1.0.0
Facebook 6.15.2.1
InMobi 10.7.7.2 10.7.5.1

How to Reproduce

All errors have occurred on real users in production. I have no ideas how to reproduce it

Reproducible in the demo app?

Not Tested

Additional Info

No response

alvarshahanji commented 1 month ago

@nikita-kostyuk-zehpyr Vungle confirmed that it's a bug in their SDK and they released a fix in version 7.4.2 of their SDK. So updating to adapter version 7.4.2.0 should fix this issue.