Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

OutOfMemory error on setting unresponsive mobile app to debug

SA-60786

Summary



OutOfMemory exception occurs when an unresponsive mobile application is set to debug.


Error Messages



AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: com.pega.[name].prod, PID: 26196
AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 128289884 byte allocation with 16777216 free bytes and 59MB until OOM
AndroidRuntime: at java.util.Arrays.copyOf(Arrays.java:3352)
AndroidRuntime: at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
AndroidRuntime: at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
AndroidRuntime: at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:606)
AndroidRuntime: at java.lang.StringBuffer.append(StringBuffer.java:332)
AndroidRuntime: at java.net.URLEncoder.encode(URLEncoder.java:229)
AndroidRuntime: at com.pega.mobile.prpcanalytics.PRPCAnalyticsSender.tryToSendJsonArrayInHttpRequest(PRPCAnalyticsSender.java:184)
AndroidRuntime: at com.pega.mobile.prpcanalytics.PRPCAnalyticsSender.tryToSendLogbooks(PRPCAnalyticsSender.java:139)
AndroidRuntime: at com.pega.mobile.prpcanalytics.PRPCAnalyticsSender.forceToSendLogbooks(PRPCAnalyticsSender.java:125)
AndroidRuntime: at com.pega.mobile.prpcanalytics.PRPCAnalyticsSender$NetworkStatusReceiver.onReceive(PRPCAnalyticsSender.java:231)
AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1178)
AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6688)
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)



Steps to Reproduce



Unknown


Root Cause



A defect in Pegasystems’ code or rules.
OutOfMemory exception occurred during the URL encode of a JSON array with logs (~128MB).


Resolution



Update to Hybrid Client (HC) 7.40.4.0 which is available through the Build Server.
Streaming with the use of a buffered sync and encoding each element individually, is implemented in HC 7.40.4.0.

 

Suggest Edit

Published May 7, 2019 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us