2

I am having adobe sitecatalyst in my android application,
and found several crashes with below mentioned stacktrace.

Fatal Exception: java.lang.OutOfMemoryError: int[] of length 1674283432 exceeds the VM limit
       at android.util.ArrayMap.allocArrays(ArrayMap.java:196)
       at android.util.ArrayMap.ensureCapacity(ArrayMap.java:307)
       at android.os.Bundle.unparcel(Bundle.java:247)
       at android.os.Bundle.containsKey(Bundle.java:299)
       at com.adobe.mobile.ReferrerHandler.getReferrerURLFromIntent(SourceFile:97)
       at com.adobe.mobile.ReferrerHandler.processIntent(SourceFile:63)
       at com.adobe.mobile.Analytics$10.run(SourceFile:211)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:841)

Somewhere in adobe analytics code, its creating array of bigger size.
Any solution for this ?

Prashant
  • 112
  • 8

2 Answers2

0

I research about the error you faced in your application and I found 2 answers, they all sed to change the javaMaxHeapSize to "4g" inside dexOptions
please check the following link, hope it will work

Android - Java heap space error

android-gradle-what-is-javamaxheapsize-4g

Increase heap size

  • Hello, thanks for comment. but yours is related to jvm heap while building application. My application is crashing on production not while building. – Prashant Oct 24 '17 at 05:33
0

Try This Application Tag of Manifest file..

<application
        android:name=".app.MyApplication"
        android:hardwareAccelerated="true"
        android:vmSafeMode="true"
        android:largeHeap="true">
  • Hello, I can't get your point. I already set largeheap parameter and android:vmSafeMode just disables AOT in ART, I guess the issue is in Adobe code (maybe?) – Prashant Oct 24 '17 at 06:07
  • @Prashant yes it might be issue. but have you set android:hardwareAccelerated="true" ? – Abhishek Hirapara Dec 16 '19 at 07:17