AppLovin / AppLovin-MAX-SDK-iOS

Other
88 stars 70 forks source link

Crash: Application tried to present modally a view controller <ServiceCardContainerViewController: 0x12c07d370> that is already being presented by <SKStoreProductViewController: 0x153670a00>. #338

Open GlassOfRedWinemm opened 2 months ago

GlassOfRedWinemm commented 2 months ago

MAX SDK Version

12.5.0

Device/Platform Info

iOS 17.5.1

Current Behavior

The application crashes with an NSInvalidArgumentException.

Expected Behavior

The view controller should not be presented again if it is already being displayed.

How to Reproduce

0 CoreFoundation 0x000000018c434f2c 00E76A98-210C-3CB5-930B-F236807FF24C + 540460 1 libobjc.A.dylib 0x00000001842ea018 objc_exception_throw + 60 2 UIKitCore 0x000000018eba0154 1741FA37-4E53-371E-8DAE-D611AAB0043D + 5693780 3 UIKitCore 0x000000018eba17e4 1741FA37-4E53-371E-8DAE-D611AAB0043D + 5699556 4 UIKitCore 0x000000018e943e14 1741FA37-4E53-371E-8DAE-D611AAB0043D + 3218964 5 UIKitCore 0x000000018e943ba4 1741FA37-4E53-371E-8DAE-D611AAB0043D + 3218340 6 UIKitCore 0x000000018e9439b8 1741FA37-4E53-371E-8DAE-D611AAB0043D + 3217848 7 UIKitCore 0x000000018e9e7e30 1741FA37-4E53-371E-8DAE-D611AAB0043D + 3890736 8 UIKitCore 0x000000018e9e7ab4 1741FA37-4E53-371E-8DAE-D611AAB0043D + 3889844 9 UIKitCore 0x000000018e6c291c __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__ + 36 10 UIKitCore 0x000000018e7763b0 1741FA37-4E53-371E-8DAE-D611AAB0043D + 1328048 11 libdispatch.dylib 0x00000001942d813c 81D355DF-266A-3010-BAB8-113B76A206C1 + 8508 12 libdispatch.dylib 0x00000001942d9dd4 81D355DF-266A-3010-BAB8-113B76A206C1 + 15828 13 libdispatch.dylib 0x00000001942e85a4 81D355DF-266A-3010-BAB8-113B76A206C1 + 75172 14 libdispatch.dylib 0x00000001942e81b8 _dispatch_main_queue_callback_4CF + 44 15 CoreFoundation 0x000000018c407710 00E76A98-210C-3CB5-930B-F236807FF24C + 354064 16 CoreFoundation 0x000000018c404914 00E76A98-210C-3CB5-930B-F236807FF24C + 342292 17 CoreFoundation 0x000000018c403cd8 CFRunLoopRunSpecific + 608 18 GraphicsServices 0x00000001d12b41a8 GSEventRunModal + 164 19 UIKitCore 0x000000018ea3c90c 1741FA37-4E53-371E-8DAE-D611AAB0043D + 4237580 20 UIKitCore 0x000000018eaf09d0 UIApplicationMain + 340 21 UnityFramework 0x000000011102a564 UnityFramework + 107876 22 App 0x0000000102f5c12c App + 33068 23 dyld 0x00000001afab5e4c 71846EAC-EE65-3697-BF7D-790B6A07DCDB + 249420

Additional Info

NSInvalidArgumentException

Device:iPhone

OS Version:iOS 17.5.1

Steps to Reproduce

Trigger a modal presentation of ServiceCardContainerViewController. The crash occurs when the app attempts to present the same view controller that is already being presented by SKStoreProductViewController.

applovinAsh commented 2 months ago

Hi, This crash seems to come from another network or SDK, as we do not interact with ServiceCardContanierViewController.

Could you let us know the overall percentage of this crash? Also, do you have any information (for example, on Firebase) on which ad was displayed when the crash happened?

GlassOfRedWinemm commented 2 months ago

您好,这次崩溃似乎来自另一个网络或 SDK,因为我们没有与 ServiceCardContanierViewController 交互。

您能告诉我们这次崩溃的总体百分比吗?此外,您是否有任何信息(例如,在 Firebase 上)表明崩溃发生时显示了哪个广告?

Hello,

Thank you for reaching out.

The ServiceCardContainerViewController is a new feature introduced in iOS 17 for in-app store pages, existing as a layer within our application. Currently, we do not have direct interactions with this view controller, but it indeed plays a significant role in our app.

We are in the process of gathering more data regarding the overall percentage of crashes. In the meantime, we will check Firebase to see if there is any information about the advertisements being displayed at the time of the crashes.

To better address this issue, could you please assist us in ensuring that the SDK is compatible with the ServiceCardContainerViewController in iOS 17?

We appreciate your support and understanding.

Best regards.

applovinAsh commented 2 months ago

@GlassOfRedWinemm, our SDK is compatible with serviceCardContainerViewController for iOS 17.

Do you have any logs that identify if there were any ads displayed during or before the crash?

GlassOfRedWinemm commented 2 months ago

@GlassOfRedWinemm, our SDK is compatible with serviceCardContainerViewController for iOS 17.

Do you have any logs that identify if there were any ads displayed during or before the crash?

So far, I've only seen the following information in the Crash logs

Application tried to present modally a view controller <ServiceCardContainerViewController: 0x12c07d370> that is already being presented by <SKStoreProductViewController: 0x153670a00>.

applovinAsh commented 2 months ago

@GlassOfRedWinemm - We have investigated the crash, but it seems it was caused by a different ad network. If the issue were caused by our SDK, we would have seen an AL... class in the exception message.

Could you please let me know if you have been able to identify the ad network, perhaps with the help of some tracking events on Firebase? Alternatively, could you please provide the traces for all threads related to this crash? With that information, we may be able to pinpoint the ad network responsible.