Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS app crashes on launch after adding Mintegral adapter #426

Open
andstoia opened this issue Feb 19, 2025 · 1 comment
Open

iOS app crashes on launch after adding Mintegral adapter #426

andstoia opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@andstoia
Copy link

MAX SDK Version

13.1.0

Device/Platform Info

iPhone 16 Simulator / iOS 18.1 AND iPhone 14 Pro Max / iOS 18.3.1 Physical Device

Crashes per Day

not released it with the crash yet

Percentage of Users Affected

not released it with the crash yet

First Occurrence of Crash

On every app startup the AppLovin initialization crashes after adding the Mintegral adapter as a dependency.

Exception and Stack Trace

Bible[60794:22700854] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTGDeviceInfo performBlockOnMainThread_by_mv:]: unrecognized selector sent to instance 0x106e59d60'
*** First throw call stack:
(
0 CoreFoundation 0x00000001804ae138 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180087db4 objc_exception_throw + 56
2 CoreFoundation 0x00000001804c2f88 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001804b2288 forwarding + 1280
4 CoreFoundation 0x00000001804b45ac _CF_forwarding_prep_0 + 92
5 Bible.debug.dylib 0x000000010d755b98 -[MTGDeviceInfo init] + 1280
6 Bible.debug.dylib 0x000000010d7555e0 +[MTGDeviceInfo sharedInstance] + 52
7 Bible.debug.dylib 0x000000010d7a2cb0 -[MTGLogSender setNetwrok_TypeKeyForDict:] + 92
8 Bible.debug.dylib 0x00
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTGDeviceInfo performBlockOnMainThread_by_mv:]: unrecognized selector sent to instance 0x106e59d60'
*** First throw call stack:
(
0 CoreFoundation 0x00000001804ae138 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180087db4 objc_exception_throw + 56
2 CoreFoundation 0x00000001804c2f88 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001804b2288 forwarding + 1280
4 CoreFoundation 0x00000001804b45ac _CF_forwarding_prep_0 + 92
5 Bible.debug.dylib 0x000000010d755b98 -[MTGDeviceInfo init] + 1280
6 Bible.debug.dylib 0x000000010d7555e0 +[MTGDeviceInfo sharedInstance] + 52
7 Bible.debug.dylib 0x000000010d7a2cb0 -[MTGLogSender setNetwrok_TypeKeyForDict:] + 92
8 Bible.debug.dylib 0x000000010d7a719c -[MTGLogSender reportAnalyticsDataWithSenderModel:] + 116
9 Bible.debug.dylib 0x000000010d68d59c -[MTGSDK reportInitSDK] + 520
10 Bible.debug.dylib 0x000000010d68d0d4 -[MTGSDK _initialize] + 28
11 Bible.debug.dylib 0x000000010d68d028 -[MTGSDK setAppID:ApiKey:] + 192
12 Bible.debug.dylib 0x000000010c52eb80 __74-[ALMintegralMediationAdapter initializeWithParameters:completionHandler:]_block_invoke + 476
13 libdispatch.dylib 0x000000010577d73c _dispatch_client_callout + 16
14 libdispatch.dylib 0x000000010577f210 _dispatch_once_callout + 84
15 Bible.debug.dylib 0x000000010c52e928 -[ALMintegralMediationAdapter initializeWithParameters:completionHandler:] + 204
16 AppLovinSDK 0x0000000106249c9c __93-[ALMediationAdapterWrapper initializeWithAdapterInitializationParameters:completionHandler:]_block_invoke + 144
17 AppLovinSDK 0x000000010624c824 __67-[ALMediationAdapterWrapper runOperationWithTag:forAdFormat:block:]_block_invoke + 152
18 Foundation 0x0000000180db5b84 NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 16
19 Foundation 0x0000000180db5a78 -[NSBlockOperation main] + 100
20 Foundation 0x0000000180db876c NSOPERATION_IS_INVOKING_MAIN + 12
21 Foundation 0x0000000180db4cd8 -[NSOperation start] + 620
22 Foundation 0x0000000180db8ed8 NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 12
23 Foundation 0x0000000180db8be8 __NSOQSchedule_f + 168
24 libdispatch.dylib 0x000000010578de4c _dispatch_block_async_invoke2 + 104
25 libdispatch.dylib 0x000000010577d73c _dispatch_client_callout + 16
26 libdispatch.dylib 0x000000010578d3f8 _dispatch_main_queue_drain + 1228
27 libdispatch.dylib 0x000000010578cf1c _dispatch_main_queue_callback_4CF + 40
28 CoreFoundation 0x000000018040e9a0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
29 CoreFoundation 0x00000001804090b8 __CFRunLoopRun + 1936
30 CoreFoundation 0x0000000180408514 CFRunLoopRunSpecific + 572
31 GraphicsServices 0x000000018ef06ae4 GSEventRunModal + 160
32 UIKitCore 0x00000001853e8040 -[UIApplication _run] + 868
33 UIKitCore 0x00000001853ebcc8 UIApplicationMain + 124
34 SwiftUI 0x00000001cc1fcb68 OUTLINED_FUNCTION_65 + 492
35 SwiftUI 0x00000001cc1fca10 OUTLINED_FUNCTION_65 + 148
36 SwiftUI 0x00000001cbebb068 OUTLINED_FUNCTION_0 + 92
37 Bible.debug.dylib 0x000000010bca8e04 $s5Bible0A3AppV5$mainyyFZ + 40
38 Bible.debug.dylib 0x000000010bca9334 __debug_main_executable_dylib_entry_point + 12
39 dyld 0x0000000104979544 start_sim + 20
40 ??? 0x0000000104a2a274 0x0 + 4372734580

How to Reproduce

  • Created a new swift package called MintegralAdapter which contains the ALMintegralMediationAdapter files (.h and .m) and has dependency to AppLovin SPM package latest version. Adapter files version = 7.7.6

  • Added the package(url: "https://github.com/Mintegral-official/MintegralAdSDK-Swift-Package.git", .exact("7.7.6")) as a dependency to my iOS project using SPM. Also added the MintegralAdapter from the above step as a dependency too.

  • Thus, final dependencies in my project: AppLovin (13.1.0), MintegralAdSDK (7.7.6) and my MintegralAdapter (with the adapter files of 7.7.6)

  • In the Mintegral platform I've crated placements and ad units ids, and in AppLovin dashboard I've enabled Mintegral as a mediation network and added the config data for all the ad units (ad unit, placement id, app id, app key)

  • Running my app, the app crashes with the specified stack trace

NOTE: To mention that I've integrated other adapters: Bidmachine, InMobi the same way and they work very well.

Reproducible in the demo app?

Not Tested

Additional Info

Nothing else. If you need additional info, please let me know. Thank you!

@andstoia andstoia added the bug Something isn't working label Feb 19, 2025
@alvarshahanji
Copy link
Contributor

@andstoia Can you try reproducing the issue on our demo app?

@alvarshahanji alvarshahanji self-assigned this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants