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
OutOfMemoryError Crash


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 Method)
at com.infragistics.controls.ComponentProxy.resizeBitmaps(
at com.infragistics.controls.ComponentProxy.doSizeChanged(
at com.infragistics.controls.BasePieChartView.onSizeChanged(

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

Any help is much appreciated.

  • 34510
    Offline posted

    Hello Abhilash,

    My team and I have done an initial investigation into this OutOfMemoryException that you are reporting when using what appears to be the PieChartView in a native Android application, and I believe we will need more information from you and possibly an isolated sample project that demonstrates this exception that you are seeing.

    From your original description and the stack trace included, it appears that this issue is happening with the PieChartView, and it sounds like this pie chart exists in a fragment that you are visiting many times in your application. This leads me to believe that perhaps something about this fragment is not cleaned up or disposed correctly in your application, and in order to see that, I believe we will require the relevant code or a sample project to reproduce the issue. Would it be possible for you to please provide this?

    Please let me know if you have any other questions or concerns on this matter.

Reply Children