AppLovin / AppLovin-MAX-SDK-iOS

85 stars 69 forks source link

crash on ios 17.4+ #330

Open FengHuaWuShuang opened 4 weeks ago

FengHuaWuShuang commented 4 weeks ago

MAX SDK Version

12.4.2.0

Device/Platform Info

ios17.4+

Current Behavior

if GC when AppLovinSDK video is showing, the device crashed

Expected Behavior

No response

How to Reproduce

Crashed: com.apple.main-thread 0 UnityFramework 0x2628f9c GC_is_marked + 242 (mark.c:242) 1 UnityFramework 0x26e48fc push_ephemerons(GC_ms_entry, GC_ms_entry) + 659 (BoehmGC.cpp:659) 2 UnityFramework 0x2626d34 GC_mark_some + 405 (mark.c:405) 3 UnityFramework 0x26263a8 GC_stopped_mark + 832 (alloc.c:832) 4 UnityFramework 0x2625e3c GC_try_to_collect_inner + 580 (alloc.c:580) 5 UnityFramework 0x2621b1c GC_init + 1309 (misc.c:1309) 6 UnityFramework 0x2622228 GC_generic_malloc_inner + 175 (malloc.c:175) 7 UnityFramework 0x2621f34 GC_gcj_malloc + 147 (gcj_mlc.c:147) 8 UnityFramework 0x271a81c il2cpp::vm::Object::NewAllocSpecific(Il2CppClass) + 81 (Object.cpp:81) 9 UnityFramework 0x2738b98 il2cpp::vm::Thread::Attach(Il2CppDomain) + 121 (Thread.cpp:121) 10 UnityFramework 0x2738b38 il2cpp::vm::ScopedThreadAttacher::ScopedThreadAttacher() + 15 (ScopedThreadAttacher.cpp:15) 11 Golf Rival 0x166ab0 ReversePInvokeWrapper.RewardedAdClient_RewardedAdUserDidEarnRewardCallback (GoogleMobileAds.iOS.cpp) 12 UnityFramework 0x2918b70 22-[GADURewardedAd show]_block_invoke + 4668 13 UnityFramework 0x738af8 GAD_GADFullScreenAd_arm64_11_3_0 + 5900 14 UnityFramework 0x791050 GADPostNotificationFromMainQueue + 4028 15 CoreFoundation 0x2f794 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 128 16 CoreFoundation 0x2f170 _CFXRegistrationPost_block_invoke + 88 17 CoreFoundation 0x2f0b8 _CFXRegistrationPost + 440 18 CoreFoundation 0x2e608 _CFXNotificationPost + 728 19 Foundation 0x29f10 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92 20 UnityFramework 0x790b70 GADPostNotificationFromMainQueue + 2780 21 UnityFramework 0x790068 GADPostNotification + 104 22 UnityFramework 0x6f14a8 GAD_GADRTBMediationRewardBasedVideoAdRenderer_arm64_11_3_0 + 3068 23 Golf Rival 0xc0e4 -[GADMAppLovinRewardedDelegate ad:wasHiddenIn:] + 4296130788 24 AppLovinSDK 0x132fb8 68+[ALDelegateCallbackInvoker invokeAdDisplayDelegate:ad:wasHiddenIn:]_block_invoke + 64 25 AppLovinSDK 0x132efc +[ALDelegateCallbackInvoker invokeAdDisplayDelegate:ad:wasHiddenIn:] + 216 26 AppLovinSDK 0x36ca8 -[ALIncentivizedDelegateProxy ad:wasHiddenIn:] + 460 27 AppLovinSDK 0x132fb8 68+[ALDelegateCallbackInvoker invokeAdDisplayDelegate:ad:wasHiddenIn:]_block_invoke + 64 28 AppLovinSDK 0x132efc +[ALDelegateCallbackInvoker invokeAdDisplayDelegate:ad:wasHiddenIn:] + 216 29 AppLovinSDK 0xc0e0 -[ALDelegateCallbackUnrepeatableInvoker handleAd:wasHiddenIn:] + 144 30 AppLovinSDK 0x218b4 -[ALBaseVideoViewController teardown] + 372 31 AppLovinSDK 0x20d94 -[ALBaseVideoViewController viewWillDisappear:] + 100 32 UIKitCore 0x13c8f0 -[UIViewController _setViewAppearState:isAnimating:] + 1224 33 UIKitCore 0x13d838 -[UIViewController viewWillDisappear:] + 108 34 UIKitCore 0x1d4970 56-[UIPresentationController runTransitionForCurrentState]_block_invoke_3 + 612 35 UIKitCore 0x1d46e8 +[UIPresentationController _scheduleTransition:] + 80 36 UIKitCore 0x1d449c -[UIPresentationController runTransitionForCurrentState] + 1560 37 UIKitCore 0x6e12e0 -[UIPresentationController _dismissWithAnimationController:interactionController:target:didFinish:] + 400 38 UIKitCore 0x797394 99-[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:]_block_invoke_2 + 56 39 UIKitCore 0x42280 +[UIView(Animation) performWithoutAnimation:] + 76 40 UIKitCore 0x7971f4 -[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:] + 532 41 UIKitCore 0x42280 +[UIView(Animation) performWithoutAnimation:] + 76 42 UIKitCore 0x79680c -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 1188 43 UIKitCore 0x795ff8 -[UIViewController dismissViewControllerWithTransition:completion:] + 1364 44 UIKitCore 0x79588c -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 484 45 UIKitCore 0x797b4c -[UIViewController dismissViewControllerAnimated:completion:] + 148 46 UIKitCore 0x2bdd5c __68-[UIWindow _removeAllViewControllersFromWindowHierarchyFromDealloc:]_block_invoke + 44 47 UIKitCore 0x2bd4f8 +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:] + 140 48 UIKitCore 0x2bd210 -[UIWindow _removeAllViewControllersFromWindowHierarchyFromDealloc:] + 236 49 UIKitCore 0x18f980 -[UIWindow setRootViewController:] + 152 50 UnityFramework 0x1c648 UnityCleanupTrampoline + 185 (UnityAppController.mm:185) 51 UIKitCore 0xe353fc -[UIApplication _terminateWithStatus:] + 196 52 UIKitCore 0x13934c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 112 53 UIKitCore 0x60b348 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 164 54 UIKitCore 0xe30044 -[UIApplication workspaceShouldExit:withTransitionContext:] + 164 55 FrontBoardServices 0x48e64 63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 72 56 FrontBoardServices 0xe10c -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168 57 FrontBoardServices 0x48e04 63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 128 58 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 59 libdispatch.dylib 0x786c _dispatch_block_invoke_direct + 288 60 FrontBoardServices 0xa490 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 52 61 FrontBoardServices 0xa410 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240 62 FrontBoardServices 0xa2e8 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28 63 CoreFoundation 0x3762c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 64 CoreFoundation 0x368a8 CFRunLoopDoSource0 + 176 65 CoreFoundation 0x350b8 CFRunLoopDoSources0 + 340 66 CoreFoundation 0x33d88 CFRunLoopRun + 828 67 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 68 GraphicsServices 0x34e0 GSEventRunModal + 164 69 UIKitCore 0x22aedc -[UIApplication _run] + 888 70 UIKitCore 0x22a518 UIApplicationMain + 340 71 UnityFramework 0x21808 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 96 (main.mm:96) 72 Golf Rival 0x812c main + 28 (main.mm:28) 73 ??? 0x1bc3e6d84 (缺少)

GC Timer thread 0 libsystem_kernel.dylib 0x249c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228 2 libc++.1.dylib 0xd598 std::__1::condition_variable::do_timed_wait(std::1::unique_lock&, std::__1::chrono::time_point<std::1::chrono::system_clock, std::1::chrono::duration<long long, std::1::ratio<1l, 1000000000l> > >) + 100 3 UnityFramework 0x15602dc void kotlin::RepeatedTimer::Run<kotlin::gc::internal::GCSchedulerDataWithTimer::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::1::function<void ()>)::'lambda'()>(kotlin::gc::internal::GCSchedulerDataWithTimer::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::1::function<void ()>)::'lambda'()&&) + 6044936 4 UnityFramework 0x1560588 void* std::1::__thread_proxy<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::1::default_delete>, void ()(kotlin::ScopedThread::attributes, void (kotlin::RepeatedTimer::&&)(kotlin::gc::internal::GCSchedulerDataWithTimer::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::1::function<void ()>)::'lambda'()&&) noexcept, kotlin::RepeatedTimer*&&, kotlin::gc::internal::GCSchedulerDataWithTimer::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::1::function<void ()>)::'lambda'()&&), kotlin::ScopedThread::attributes, void (kotlin::RepeatedTimer::)(kotlin::gc::internal::GCSchedulerDataWithTimer::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()&&) noexcept, kotlin::RepeatedTimer, kotlin::gc::internal::GCSchedulerDataWithTimer::GCSchedulerDataWithTimer(kotlin::gc::GCSchedulerConfig&, std::__1::function<void ()>)::'lambda'()>>(void*) + 6045620 5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 6 libsystem_pthread.dylib 0x1fcc thread_start + 8

GC thread 0 libsystem_kernel.dylib 0x249c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228 2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 UnityFramework 0x15640d4 std::1::invoke_result<kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory&, kotlin::gc::GCScheduler&)::$_3>::type kotlin::ScopedThread::Run<kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory&, kotlin::gc::GCScheduler&)::$_3>(kotlin::ScopedThread::attributes, kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory&, kotlin::gc::GCScheduler&)::$_3&&) + 6060800 4 UnityFramework 0x1564bc0 void* std::1::thread_proxy<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::__1::default_delete<std::1::__thread_struct>>, void ()(kotlin::ScopedThread::attributes, kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory&, kotlin::gc::GCScheduler&)::$_3&&), kotlin::ScopedThread::attributes, kotlin::gc::ConcurrentMarkAndSweep::ConcurrentMarkAndSweep(kotlin::mm::ObjectFactory&, kotlin::gc::GCScheduler&)::$_3>>(void) + 6063596 5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 6 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x15e8 mach_msg + 24 4 CoreFoundation 0x3601c CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x33f04 CFRunLoopRun + 1208 6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 7 Foundation 0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 8 Foundation 0x554e8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 9 UIKitCore 0x18dac8 -[UIEventFetcher threadMain] + 420 10 Foundation 0x9ca9c NSThreadstart__ + 732 11 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 12 libsystem_pthread.dylib 0x1fcc thread_start + 8

caulk::deferred_logger 0 libsystem_kernel.dylib 0x1a74 semaphore_wait_trap + 8 1 caulk 0x1610 caulk::semaphore::timed_wait(double) + 212 2 caulk 0x1440 caulk::concurrent::details::worker_thread::run() + 36 3 caulk 0x1a7bc void caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuple<caulk::concurrent::details::worker_thread> > >(void) + 96 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

caulk.messenger.shared:high 0 libsystem_kernel.dylib 0x1a74 semaphore_wait_trap + 8 1 caulk 0x1610 caulk::semaphore::timed_wait(double) + 212 2 caulk 0x1440 caulk::concurrent::details::worker_thread::run() + 36 3 caulk 0x1a7bc void caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuple<caulk::concurrent::details::worker_thread> > >(void) + 96 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.CoreMotion.MotionThread 0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x15e8 mach_msg + 24 4 CoreFoundation 0x3601c CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x33f04 CFRunLoopRun + 1208 6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 7 CoreFoundation 0x336cc CFRunLoopRun + 64 8 CoreMotion 0x2e93c0 CLClientGetDistanceCoordinates + 303492 9 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 10 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x15e8 mach_msg + 24 4 CoreFoundation 0x3601c CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x33f04 CFRunLoopRun + 1208 6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 7 CFNetwork 0x25ac48 estimatedPropertyListSize + 38228 8 Foundation 0x9ca9c NSThreadstart__ + 732 9 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 10 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread 0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228 2 UnityFramework 0x15711ac Worker::waitForQueueLocked(long long, long long) + 6114264 3 UnityFramework 0x15704d4 (anonymous namespace)::workerRoutine(void) + 6110976 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer 0 UnityFramework 0x5866b0 FIRCLSProcessRecordAllThreads + 392 (FIRCLSProcess.c:392) 1 UnityFramework 0x586a90 FIRCLSProcessRecordAllThreads + 423 (FIRCLSProcess.c:423) 2 UnityFramework 0x57d9a0 FIRCLSHandler + 34 (FIRCLSHandler.m:34) 3 UnityFramework 0x580330 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521) 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.CFStream.LegacyThread 0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x15e8 mach_msg + 24 4 CoreFoundation 0x3601c CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x33f04 CFRunLoopRun + 1208 6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 7 CoreFoundation 0x13e874 _legacyStreamRunLoop_workThread + 300 8 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 9 libsystem_pthread.dylib 0x1fcc thread_start + 8

GC finalizer processor 0 libsystem_kernel.dylib 0x249c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228 2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 UnityFramework 0x1564e64 std::1::invoke_result<kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0>::type kotlin::ScopedThread::Run<kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0>(kotlin::ScopedThread::attributes, kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0&&) + 6064272 4 UnityFramework 0x1565134 void* std::1::thread_proxy<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::__1::default_delete<std::1::__thread_struct>>, void ()(kotlin::ScopedThread::attributes, kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0&&), kotlin::ScopedThread::attributes, kotlin::gc::FinalizerProcessor::StartFinalizerThreadIfNone()::$_0>>(void) + 6064992 5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 6 libsystem_pthread.dylib 0x1fcc thread_start + 8

JavaScriptCore libpas scavenger 0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228 2 JavaScriptCore 0x1596db0 scavenger_thread_main + 1512 3 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 4 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread 0 libsystem_pthread.dylib 0x1fb8 start_wqthread + 438

Thread 0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread 0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread 0 libsystem_pthread.dylib 0x1fb8 start_wqthread + 438

Thread 0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread 0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread 0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364 2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

com.apple.coremedia.rootQueue.fP-45.mP-47 0 libsystem_kernel.dylib 0x1a8c semaphore_timedwait_trap + 8 1 libdispatch.dylib 0x43ec _dispatch_sema4_timedwait + 64 2 libdispatch.dylib 0x49e8 _dispatch_semaphore_wait_slow + 76 3 libdispatch.dylib 0x15668 _dispatch_worker_thread + 328 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.coremedia.sharedRootQueue.47 0 libsystem_kernel.dylib 0x1a8c semaphore_timedwait_trap + 8 1 libdispatch.dylib 0x43ec _dispatch_sema4_timedwait + 64 2 libdispatch.dylib 0x49e8 _dispatch_semaphore_wait_slow + 76 3 libdispatch.dylib 0x15668 _dispatch_worker_thread + 328 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.coremedia.sharedRootQueue.47 0 libsystem_kernel.dylib 0x1a8c semaphore_timedwait_trap + 8 1 libdispatch.dylib 0x43ec _dispatch_sema4_timedwait + 64 2 libdispatch.dylib 0x49e8 _dispatch_semaphore_wait_slow + 76 3 libdispatch.dylib 0x15668 _dispatch_worker_thread + 328 4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 5 libsystem_pthread.dylib 0x1fcc thread_start + 8

Additional Info

No response

thomasmso commented 4 weeks ago

~@AppLovin/ad-core-infra~ @FengHuaWuShuang - have you tried reaching out to AdMob team regarding this issue? Are you able to reproduce this issue, and if so, with AppLovin ads only? The last stack frames belong to AdMob.

bsergean commented 4 weeks ago

Maybe that was meant to be sent to another team, my team also called ad-core-infra mostly focus on inference server and datamover, our sdk knowledge is very limited.

thomasmso commented 4 weeks ago

My bad @bsergean, pretty sure I didn't tag your team, was on the GitHub app so might've been a bug there.