Out of Memory Issue Running Automated Tests on Android with Appium

We have an app created using expo. It runs fine on an Android device. However, when we try to run automated tests using Appium on Android, it almost immediately crashes due to a memory issue. Are there any configuration changes to increase the memory size. Below is the log:
--------- beginning of crash
11-21 12:05:55.837 23303 23374 E AndroidRuntime: FATAL EXCEPTION: IntentService[GcmRegistrationIntentService]
11-21 12:05:55.837 23303 23374 E AndroidRuntime: Process: com.gwlabs.flipt, PID: 23303
11-21 12:05:55.837 23303 23374 E AndroidRuntime: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.lang.Thread.nativeCreate(Native Method) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.lang.Thread.start(Thread.java:733)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:970)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1611)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:342)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:562)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at java.util.concurrent.Executors$DelegatedScheduledExecutorService.schedule(Executors.java:688) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at com.google.android.gms.iid.ad.a(Unknown Source:112) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at com.google.android.gms.iid.ab.a(Unknown Source:48)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at com.google.android.gms.iid.ab.a(Unknown Source:10) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at com.google.android.gms.iid.h.a(Unknown Source:95)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at com.google.android.gms.iid.a.b(Unknown Source:60) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at com.google.android.gms.iid.a.a(Unknown Source:98)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at host.exp.exponent.gcm.GcmRegistrationIntentService.a(GcmRegistrationIntentService.java:25)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at host.exp.exponent.notifications.b.onHandleIntent(ExponentNotificationIntentService.java:73) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
11-21 12:05:55.837 23303 23374 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164) 11-21 12:05:55.837 23303 23374 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:65)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.