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 after resume #1154

Open
5 of 11 tasks
sonbui00 opened this issue Aug 27, 2024 · 11 comments
Open
5 of 11 tasks

Crash after resume #1154

sonbui00 opened this issue Aug 27, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@sonbui00
Copy link

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

  • Output of flutter doctor
  • Version of purchases-flutter
  • Testing device version e.g.: iOS 15.5, Android API 30, etc.
  • How often the issue occurs- every one of your customers is impacted? Only in dev?
  • Debug logs that reproduce the issue
  • Steps to reproduce, with a description of expected vs. actual behavior
    Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

I've just use Paywall feature and got many crash report message like this
There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. More info here: https://errors.rev.cat/configuring-sdk

I think the issue happen when the user open paywall and leave the app. And when they comeback, the activity resume and have this issue.

To reproduce the issue you can enable "Don't keep activities" on Developer options. And then ope paywall in the app, leave paywall open and change to other app. When comeback you can see the issue or you can't close the paywall.

Additional context

Add any other context about the problem here.

@sonbui00 sonbui00 added the bug Something isn't working label Aug 27, 2024
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@michaelAtRC
Copy link

Hey @sonbui00 ,

Can you please confirm that you have configured the SDK before showing the Paywall in this instance? You might be able to confirm that from debug logs or stack trace of the crash report that you get. Once you get that information, can you please share it here so we can look further into it?

@sonbui00
Copy link
Author

@michaelAtRC Confirmed. I can open Paywal and make purchase normally. The issue happen when I leave the Paywall open and change to other app in long time and come back, not when I open paywall first time.

@nyeu
Copy link

nyeu commented Sep 27, 2024

Hi @sonbui00,
Is this still happening with the latest version?

@sonbui00
Copy link
Author

@nyeu my version: purchases_flutter: 8.1.0
Not yet upgrade to the latest version.
And this is the log:
issue_89f38a626f952d2f99e9acd3f13edffe_crash_session_66F6A394007E000148BCF49565B0731B_DNE_0_v2_stacktrace.txt

@arshavin2000
Copy link

Hi,

I have the same issue in my flutter app,
In the last 7 days I received 29 crashes for 29 different users.
My version is : purchases_flutter: 8.1.0

You will find attached screenshots from my play store console.

Screenshot 2024-09-30 at 12 25 36 AM Screenshot 2024-09-30 at 12 26 43 AM

To be honest it is urgent issue, I feel like I am losing a lot of users in my app due to this crash in the payment workflow.

Thanks

@danyialkhan
Copy link

Hi,

I am getting the exact same issue and it is repeatedly logged on the crashlytics.
Environment:
purchases_flutter: 8.1.1

I have initialised the RevenueCat SDK when app starts.
image

here is the crashlytics stacktrace:

com.virblue.mystudylife_issue_2e3f0f1ac1305ad36bbf1dd83dccee91_crash_session_66FCE914009B00015FEF8F4175377B52_DNE_0_v2_stacktrace.txt

Crashlytics insights:

image

@nyeu
Copy link

nyeu commented Oct 2, 2024

Hi all, would you mind sharing a code snippet on where and how do you configure the RevenueCat SDK?
Thank you!

@danyialkhan
Copy link

Hi @nyeu

here is the code where i have configured the RC.

first in main.dart file line number 74:
image

then in revenue_cat_manager_impl.dart line number 25 init method.
image

@nyeu
Copy link

nyeu commented Oct 7, 2024

Hi all, we've debugged it and found the issue and the root cause. We are currently working on making a fix for it. Thank you a lot for the debug logs and for your patience! I'll let you know as soon as the fix is out.

@ironminddr
Copy link

Hi guys, there is any update on this.

I am experimenting same issue, I make anything I could, but still can find any fixing.

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

7 participants