Closed Hachiware-05-01 closed 1 week ago
Thanks for your feedback! We will take a look and keep you posted.
Having the same problem after upgrading to 12.6.1. Leads to an abrupt crash. It seems to be coming from the method "destroyAd" from my MANativeAdLoader instance. I tried wrapping the call in a block that executes on the main thread but it did not solve the problem. My stacktrace:
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView removeFromSuperview]
PID: 442, TID: 10597, Thread name: (none), Queue name: com.apple.root.user-initiated-qos, QoS: 25
Backtrace:
4 Loud Alarm Clock 0x00000001023de658 -[ALGoogleMediationAdapter destroy] + 512
5 AppLovinSDK 0x0000000103ca49d4 __36-[ALMediationAdapterWrapper destroy]_block_invoke + 56
6 AppLovinSDK 0x0000000103ca5064 __67-[ALMediationAdapterWrapper runOperationWithTag:forAdFormat:block:]_block_invoke + 152
7 AppLovinSDK 0x0000000103bb346c -[ALBlockTask run] + 36
8 AppLovinSDK 0x0000000103c71524 -[ALTask main] + 348
9 libdispatch.dylib 0x0000000104e10028 _dispatch_call_block_and_release + 24
10 libdispatch.dylib 0x0000000104e11860 _dispatch_client_callout + 16
11 libdispatch.dylib 0x0000000104e23bf0 _dispatch_root_queue_drain + 688
12 libdispatch.dylib 0x0000000104e24414 _dispatch_worker_thread2 + 208
13 libsystem_pthread.dylib 0x000000020a1e0b14 _pthread_wqthread + 224
14 libsystem_pthread.dylib 0x000000020a1e067c start_wqthread + 8
@nvrtdfrst thanks for the update. We have a fix for this going out in the next SDK release (internal ticket). We'll let you know when the fix is live.
@Lorenzo45 Absolutely, thanks for addressing the issue so quickly!
Hi @nvrtdfrst - we released a fix for this in iOS SDK 13.0.0+. Thanks for reporting the issue!
MAX SDK Version
12.6.1
Device/Platform Info
iOS 13 ~ 17
Current Behavior
Expected Behavior
Main Thread Checker: Resolve UI API errors called in background threads
How to Reproduce
It can be reproduced by releasing the ViewController that implements NativeAd.
Additional Info
No response