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

Crash: NSInvalidArgumentException Application tried to present modally a view controller <SKStoreProductViewController: 0x113081c00> that is already being presented by <ALAppLovinVideoViewController: 0x101045400>. #351

Closed
phuc-nor opened this issue Jul 14, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@phuc-nor
Copy link

phuc-nor commented Jul 14, 2024

MAX SDK Version

12.5.0.0

Device/Platform Info

iPhone 13,iPhone 15 Pro Max, iPhone SE (2nd), iPhone XR,...

Current Behavior

Crash on the application

Expected Behavior

Application behave as usual after watching ads

How to Reproduce

Crashlytics - Stack trace
Platform: apple

Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x83f20 __exceptionPreprocess
1 libobjc.A.dylib 0x16018 objc_exception_throw
2 UIKitCore 0x56e154 -[UIViewController _presentViewController:withAnimationController:completion:]
3 UIKitCore 0x56f7e4 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
4 UIKitCore 0x56981c -[UIViewController _performCoordinatedPresentOrDismiss:animated:]
5 UIKitCore 0x569544 -[UIViewController _presentViewController:animated:completion:]
6 UIKitCore 0x5693d8 -[UIViewController presentViewController:animated:completion:]
7 UnityFramework 0x1d74a28 -[ALStoreProductViewControllerWrapper showStoreKitOverViewController:]
8 UnityFramework 0x1e19f4c -[ALStoreKitService presentStoreKitForAd:fromAdView:onViewController:]
9 UnityFramework 0x1e18f5c __58-[ALStoreKitService showStoreKitControllerForAd:inAdView:]_block_invoke
10 UnityFramework 0x1e18bc0 -[ALStoreKitService showStoreKitControllerForAd:inAdView:]
11 UnityFramework 0x1d549b0 -[ALAdService trackClickOn:inAdView:launchURL:forClickLocation:]
12 UnityFramework 0x1dd37c8 +[ALWebViewBridgeUtils clickOnURL:forAd:inContainer:statsHelper:usingSDK:]
13 UnityFramework 0x1dd33d0 +[ALWebViewBridgeUtils processRequest:clicked:forAd:inWebView:container:expandedAdView:statsHelper:usingSDK:]
14 UnityFramework 0x1d601f4 -[ALAdView webView:decidePolicyForNavigationAction:decisionHandler:]
15 WebKit 0x236670 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
16 WebKit 0x235650 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
17 WebKit 0x2341fc (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
18 WebKit 0x233fe4 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
19 WebKit 0x11faf0 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
20 WebKit 0x11f200 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
21 WebKit 0x29e0c (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
22 WebKit 0x24478 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
23 WebKit 0x39e28 (Missing UUID 2070c7a26aaf39f1b5c7abc26fbcaeb7)
24 JavaScriptCore 0x5a9e8 WTF::RunLoop::performWork()
25 JavaScriptCore 0x5b910 WTF::RunLoop::performWork(void*)
26 CoreFoundation 0x56834 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
27 CoreFoundation 0x567c8 __CFRunLoopDoSource0
28 CoreFoundation 0x54298 __CFRunLoopDoSources0
29 CoreFoundation 0x53484 __CFRunLoopRun
30 CoreFoundation 0x52cd8 CFRunLoopRunSpecific
31 GraphicsServices 0x11a8 GSEventRunModal
32 UIKitCore 0x40a90c -[UIApplication _run]
33 UIKitCore 0x4be9d0 UIApplicationMain
34 UnityFramework 0x19948f0 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 96 (main.mm:96)
35 AppName 0x412c main + 28 (main.mm:28)
36 ??? 0x1b71cde4c (Missing)

Additional Info

This crash occurs with 30% of my crashes along with crash with applovin reward. Both rapidly appear since May 19
Hope you guys can figure outs as soon as possible.

@phuc-nor phuc-nor added the bug Something isn't working label Jul 14, 2024
@richashukla23 richashukla23 self-assigned this Jul 15, 2024
@richashukla23
Copy link
Contributor

richashukla23 commented Jul 15, 2024

@phuc-nor Thanks for reporting the crash. Could you please provide a breakdown of the devices and OS versions affected by this crash? Specifically, the distribution of the crash across different iOS versions and device models would be really helpful. Also, double checking - is the MAX SDK version in this case 12.5.0?

@phuc-nor
Copy link
Author

phuc-nor commented Jul 16, 2024

Hello @richashukla23, thanks for replying.
Here is the percentage of total 2.6K event since June 17 until now
image
image
image
Really concern about iOS 17.5.1 and iPad OS 17.5.1.
I double checked and confirm using GoogleMobileAdsMediationAppLovin version="12.5.0.0"

@richashukla23
Copy link
Contributor

@phuc-nor Thanks for the details! Could you please confirm the date associated with the stack trace shared in this thread description? We need this information as a few calls in the stack trace do not match our latest SDK.

@phuc-nor
Copy link
Author

phuc-nor commented Jul 17, 2024

I confirm with you that this stack trace is come with version 11.11.3.0.
So sorry about missing the validation of the stacktrace. We still rolling out the product with 12.5.0.0 to collect more information.
I'll open this issues again when the crash was caught. I'd like to know if it was fix in specific version of the SDK.
Thank you @richashukla23. Can you help me check the issue #3438 which I mention along with and its was caught in 12.5.0.0, should I open a new ones ?. Sorry about messy mention

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