Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
OutOfMemoryError Crash
posted

Hi 

While Using the Data charts in an Android app and when I navigate to that particular fragment where Data charts are implemented for more than 20 times I get Crash as mentioned below. 

java.lang.OutOfMemoryError: Failed to allocate a 275212 byte allocation with 234680 free bytes and 229KB until OOMat dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:831)
at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
at android.graphics.Bitmap.createBitmap(Bitmap.java:775)
at com.infragistics.controls.ComponentProxy.resizeBitmaps(ComponentProxy.java:156)
at com.infragistics.controls.ComponentProxy.doSizeChanged(ComponentProxy.java:134)
at com.infragistics.controls.BasePieChartView.onSizeChanged(BasePieChartView.java:88)

How to stop this memory leak ? . Tried with largeHeap as true option in the manifest file, still its crashing.

Any help is much appreciated.

Parents Reply Children
No Data