This is the Crash Report I got from the Play Console:
Type
java.lang.OutOfMemoryError
Exception java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
at java.lang.Thread.nativeCreate
at java.lang.Thread.start (Thread.java:976)
at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPoolExecutor.java:954)
at java.util.concurrent.ThreadPoolExecutor.ensurePrestart (ThreadPoolExecutor.java:1610)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute (ScheduledThreadPoolExecutor.java:351)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule (ScheduledThreadPoolExecutor.java:569)
at java.util.concurrent.ScheduledThreadPoolExecutor.submit (ScheduledThreadPoolExecutor.java:722)
at java.util.concurrent.Executors$DelegatedExecutorService.submit (Executors.java:705)
at com.revenuecat.purchases.common.Dispatcher.enqueue (Dispatcher.kt:69)
at com.revenuecat.purchases.paywalls.events.PaywallEventsManager.enqueue (PaywallEventsManager.kt:89)
at com.revenuecat.purchases.paywalls.events.PaywallEventsManager.enqueue$default (PaywallEventsManager.kt:88)
at com.revenuecat.purchases.paywalls.events.PaywallEventsManager.flushEvents (PaywallEventsManager.kt:43)
at com.revenuecat.purchases.PurchasesOrchestrator.flushPaywallEvents (PurchasesOrchestrator.kt:1113)
at com.revenuecat.purchases.PurchasesOrchestrator.onAppForegrounded (PurchasesOrchestrator.kt:198)
at com.revenuecat.purchases.AppLifecycleHandler.onStart (AppLifecycleHandler.kt:11)
at androidx.lifecycle.FullLifecycleObserverAdapter.onStateChanged (FullLifecycleObserverAdapter.java:39)
at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent (LifecycleRegistry.java:360)
at androidx.lifecycle.LifecycleRegistry.addObserver (LifecycleRegistry.java:202)
at com.revenuecat.purchases.PurchasesOrchestrator$2.invoke (PurchasesOrchestrator.kt:154)
at com.revenuecat.purchases.PurchasesOrchestrator$2.invoke (PurchasesOrchestrator.kt:151)
at com.revenuecat.purchases.PurchasesOrchestrator.dispatch (PurchasesOrchestrator.kt:784)
at com.revenuecat.purchases.PurchasesOrchestrator.<init> (PurchasesOrchestrator.kt:151)
at com.revenuecat.purchases.PurchasesOrchestrator.<init> (PurchasesOrchestrator.kt:68)
at com.revenuecat.purchases.PurchasesFactory.createPurchases (PurchasesFactory.kt:245)
at com.revenuecat.purchases.PurchasesFactory.createPurchases$default (PurchasesFactory.kt:58)
at com.revenuecat.purchases.Purchases$Companion.configure (Purchases.kt:852)
at com.revenuecat.purchases.hybridcommon.CommonKt.configure (common.kt:516)
at com.revenuecat.purchases_flutter.PurchasesFlutterPlugin.setupPurchases (PurchasesFlutterPlugin.java:367)
at com.revenuecat.purchases_flutter.PurchasesFlutterPlugin.onMethodCall (PurchasesFlutterPlugin.java:142)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:258)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:295)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger (DartMessenger.java:322)
at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run
at android.os.Handler.handleCallback (Handler.java:942)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:240)
at android.os.Looper.loop (Looper.java:351)
at android.app.ActivityThread.main (ActivityThread.java:8423)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1013)
I’m trying to reproduce the crash at testing but I can’t get it, however, about 17% of my users got it!