Symptom
SDK Android based App is crashing due to "OutOfMemoryError".
Examples from log file:
- Error message: "java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 2750688 free bytes and 2686KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC."
- AndroidRuntime logs show "FATAL EXCEPTION: main" with the same OutOfMemoryError stack trace (ViewRootImpl.performDraw).
- Warning in logs: "Setting the fragment as the LifecycleOwner might cause memory leaks because views lives shorter than the Fragment. Consider using Fragment's view lifecycle."
Read more...
Environment
Mobile SDK Android
Keywords
Android, OutOfMemoryError, OOM, FATAL EXCEPTION main, ViewRootImpl.performDraw, OData, paging, $top, EntityValueList, getEntities, DataQuery.skip, DataQuery.top, heap limit, Mobile SDK Android, memory leak , KBA , MOB-SDK-ADR , Mobile SDK Android , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview