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

App crashes when receiving the PURCHASES_UPDATED intent #90

Open
ciriousjoker opened this issue Oct 19, 2023 · 5 comments
Open

App crashes when receiving the PURCHASES_UPDATED intent #90

ciriousjoker opened this issue Oct 19, 2023 · 5 comments
Assignees

Comments

@ciriousjoker
Copy link

Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=com.android.vending.billing.PURCHASES_UPDATED flg=0x10 pkg=com.dieringe.workout (has extras) } in u2.f1@c9ed868
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1929)
at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(:2)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Caused by uj.s: lateinit property product has not been initialized
at com.chargebee.android.billingservice.BillingClientManager.acknowledgePurchase(:6)
at com.chargebee.android.billingservice.BillingClientManager.onPurchasesUpdated(:139)
at u2.f1.onReceive(SourceFile:1)
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1919)
at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(:2)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Both of these together caused an app crash in production.
Maybe another ProGuard issue due to missing rules?

@ciriousjoker
Copy link
Author

ciriousjoker commented Oct 26, 2023

This keeps occurring in production even after updating the ProGuard rules. No idea how to reproduce it in development.

This appeared during app start up, right after we see this in the logs:

Retrieved products: [Product(id: ..., price: .., priceString: ... title: ..., currencyCode: ..., subscriptionPeriod: ..., ..., ...]

@cb-haripriyan
Copy link
Contributor

Hi @ciriousjoker -
Thanks for bringing reporting. We are looking into this and will update here about the progress.

@cb-haripriyan cb-haripriyan self-assigned this Nov 2, 2023
@ciriousjoker
Copy link
Author

@cb-haripriyan Any news?

@ciriousjoker
Copy link
Author

ciriousjoker commented Dec 7, 2023

@cb-haripriyan Is v1.2.1 also supposed to fix this? Either way we'll roll out the new chargebee sdk version and report back what happens

@ciriousjoker
Copy link
Author

@cb-haripriyan Any updates?

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

2 participants