-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fatal Exception: X7.L: There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. #269
Comments
Hi @doolle89, thanks for reporting this. That is indeed odd. It seems like a To debug this, could you share the output of |
We have gradle dependency to com.revenuecat.purchases:purchases-kmp-ui:1.3.2+13.9.0, and it resolves to com.revenuecat.purchases:purchases-ui:8.10.2 if that's what are you looking for, but it's not used later in the code... |
Thanks, that was indeed what I was looking for. I thought the dependency might have been included transitively somehow. I'm assuming this stack trace is from a Crashlytics-like service. Are you able to reproduce this locally? Do you have any other information about the state of the app when this happens, e.g. is the app in the background, are the users on a specific screen in you app, are they pressing certain buttons? If you don't need the Paywalls SDK, it's definitely worth a try to exclude it and see if the problem goes away. |
Yeah, I figured out that the dependency could be the problem, so it's removed it the same day I reported the issue and so far there no new crashes. You are right the stack trace is from Crashlytics, I haven't seen it locally, so I don't have much insight when it happens, the only interesting info I noticed is that it only happens on Nexus 5X devices. We configure sdk on user login so most probably the user in not logged in this case, but no any specific evidence about it... |
Okay that's good to know that there are no new crashes (yet) with the dependency removed. Do you have any breadcrumbs on Crashlytics? Even the default Do the Android versions differ at all on the Nexus 5X devices, or is it 100% Android 8.1? |
Ok, I see what you mean, it's 0% background (or 100% foreground :D), it's 50% Android 8.1 and 50% Android 13... |
Since recently I started noticing exception with attached stack trace in Android app, so most probably the problem is introduced in version 1.3.2+13.9.0 or maybe earliest 1.3.1+13.8.0... The strange part is that the app doesn't use Revenucat paywall ui, we create our own paywall uis from from the offering, so there are no references to com.revenuecat.purchases.ui package in the code...
Another interesting thing is that all crashes are from different devices but always the same model: Nexus 5X.
Let me know if you need any additional info to investigate this
The text was updated successfully, but these errors were encountered: