Skip to main content

Hey my app keeps crashing on some clients. 
Flutter:

purchases_flutter: 8.2.1

purchases_ui_flutter: 8.2.1

User android version: 

Android 14 (SDK 34)


Crash log:
 

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4164)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4322)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8919)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
Caused by ob.h0: 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
  at com.revenuecat.purchases.Purchases$Companion.getSharedInstance (Unknown Source:11)
  at com.revenuecat.purchases.ui.revenuecatui.helpers.HelperFunctionsKt.shouldDisplayPaywall (Unknown Source:12)
  at com.revenuecat.purchases.ui.revenuecatui.activity.PaywallActivityLauncher.launchIfNeeded (Unknown Source:21)
  at com.revenuecat.purchases.ui.revenuecatui.activity.PaywallActivityLauncher.launchIfNeeded$default (Unknown Source:30)
  at com.revenuecat.purchases.hybridcommon.ui.PaywallFragment.launchPaywallIfNeeded (Unknown Source:75)
  at com.revenuecat.purchases.hybridcommon.ui.PaywallFragment.onCreate (Unknown Source:40)
  at androidx.fragment.app.Fragment.performCreate (Fragment.java:27)
  at androidx.fragment.app.FragmentStateManager.create (FragmentStateManager.java:58)
  at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:129)
  at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:30)
  at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:27)
  at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:9)
  at androidx.fragment.app.FragmentManager.dispatchCreate (FragmentManager.java:11)
  at androidx.fragment.app.FragmentController.dispatchCreate (FragmentController.java:4)
  at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:12)
  at io.flutter.embedding.android.FlutterFragmentActivity.onCreate (FlutterFragmentActivity.java:9)
  at android.app.Activity.performCreate (Activity.java:8975)
  at android.app.Activity.performCreate (Activity.java:8944)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4146)

Hi ​@hamza-imran-20f9fe,

We are currently working on a fix for this issue, we’ve seen an increasing rate of crashes related to this specific bug. I know you are already in the Github issue where we’ll post more information soon.

 

Best,


Hi ​@hamza-imran-20f9fe,

We released a new version of the SDK (v8.4.2) that has a fix for this issue.

Let me know if it works!


@joan-cardona 
Hello

I am using version 8.5.0 and I think the problem is not solved. Can you give me information about the latest situation?


Hey ​@joan-cardona thank you very much. Sorry for the reply but the fix has worked we did a full release to all our users and none of them got the error. 

Once again thank you very much.


Hey ​@tunayangir there is no version 8.5.0 for the flutter version, the above issue is Flutter. Also the latest version for Flutter is 8.4.3


@hamza-imran-20f9fe 

Sorry I got confused, I'm actually using react native-expo


Hi ​@tunayangir,

Are you experiencing the same issue in Rect Native?

Best,


Reply