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] Application tried to present modally a view controller Purchasely.PLYProductViewController that is already being presented by UIViewController #94

Open
Minishlink opened this issue Mar 5, 2024 · 3 comments
Assignees

Comments

@Minishlink
Copy link

Minishlink commented Mar 5, 2024

Hello,

Not able to reproduce this and the crash seems to be rare, but FYI, we have this error in our crash reporting tool: Application tried to present modally a view controller Purchasely.PLYProductViewController that is already being presented by UIViewController

Purchasely ios v4.2.4

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0xec69c __exceptionPreprocess
1  libobjc.A.dylib                0x2bc80 objc_exception_throw
2  UIKitCore                      0x785ab4 -[UIViewController _presentViewController:withAnimationController:completion:]
3  UIKitCore                      0x78612c __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
4  UIKitCore                      0x786428 -[UIViewController _performCoordinatedPresentOrDismiss:animated:]
5  UIKitCore                      0x786094 -[UIViewController _presentViewController:animated:completion:]
6  UIKitCore                      0x7864e4 -[UIViewController presentViewController:animated:completion:]
7  Purchasely                     0x13b710 (Missing UUID 85084d10566b3c93b5713eaaebfca0ac)
8  Purchasely                     0x155534 (Missing UUID 85084d10566b3c93b5713eaaebfca0ac)
9  libdispatch.dylib              0x26a8 _dispatch_call_block_and_release
10 libdispatch.dylib              0x4300 _dispatch_client_callout
11 libdispatch.dylib              0x12998 _dispatch_main_queue_drain
12 libdispatch.dylib              0x125b0 _dispatch_main_queue_callback_4CF
13 CoreFoundation                 0x3701c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14 CoreFoundation                 0x33d28 __CFRunLoopRun
15 CoreFoundation                 0x33478 CFRunLoopRunSpecific
16 GraphicsServices               0x34f8 GSEventRunModal
17 UIKitCore                      0x22c62c -[UIApplication _run]
18 UIKitCore                      0x22bc68 UIApplicationMain
19 app                  0x942c main + 8 (main.m:8)
20 ???                            0x1b042adcc (Manquant)
81 | Sat Mar 02 2024 23:55:46 GMT+0100 (heure normale d’Europe centrale) | [Device UTC time] 2024-03-02T22:55:46.638Z
83 | Sat Mar 02 2024 23:55:47 GMT+0100 (heure normale d’Europe centrale) | [PayWithPurchasely] login in Purchasely
84 | Sat Mar 02 2024 23:55:47 GMT+0100 (heure normale d’Europe centrale) | [PayWithPurchasely] login done in Purchasely
85 | Sat Mar 02 2024 23:55:47 GMT+0100 (heure normale d’Europe centrale) | [PayWithPurchasely] fetch Purchasely presentation
86 | Sat Mar 02 2024 23:55:47 GMT+0100 (heure normale d’Europe centrale) | [PayWithPurchasely] present Purchasely presentation
87 | Sat Mar 02 2024 23:55:47 GMT+0100 (heure normale d’Europe centrale) | [Purchasely event] PRESENTATION_LOADED
88 | Sat Mar 02 2024 23:55:49 GMT+0100 (heure normale d’Europe centrale) | [Purchasely event] PRESENTATION_VIEWED
92 | Sat Mar 02 2024 23:55:52 GMT+0100 (heure normale d’Europe centrale) | [Purchasely event] IN_APP_PURCHASE_FAILED
95 | Sat Mar 02 2024 23:55:53 GMT+0100 (heure normale d’Europe centrale) | [Purchasely event] PLAN_SELECTED
@kherembourg
Copy link
Contributor

Hello @Minishlink
Thanks for the report, we will investigate and get back to you

@EPIKorial EPIKorial self-assigned this Apr 2, 2024
@EPIKorial
Copy link
Contributor

Hello @Minishlink ,

Thank you for bringing this matter to our attention.

The issue you've encountered seems to be a bug that was present in a previous version of our SDK but has since been addressed and fixed.

To further investigate and resolve the issue, could you please confirm if you have access to the version of the SDK where the crash occurred through your reporting tool?

While you are currently using version 4.2.4, it's possible that the bug only manifests in earlier versions. We've noticed that some of your clients are still on versions below 4.2.4, such as 4.2.3, 4.2.1, and 4.2.0.

We appreciate your assistance and patience as we work to resolve this matter.

Best regards,
Florian

@Minishlink
Copy link
Author

Hello, I can confirm the bug was reproduced on our latest app version that is on purchasely 4.2.4 (verified in Podfile.lock). It is quite rare though (~2 per week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants