[TIMOB-19197] Out of memory problems with backgroundImage property on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 4.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | Android |
Reporter | Jörgen Buder |
Assignee | Unknown |
Created | 2015-07-09T13:18:44.000+0000 |
Updated | 2018-02-28T19:55:09.000+0000 |
Description
My app earlier used a number of rather large jpg images, but it worked well with Android devices even on the markets, after upgrading to SDK 5.02 on Android along with Ti SDK 4 the build now looks very different. It uses art: messages and tries to alloc the same amount of memory unsuccessfully. I have to decrease the amount of images loaded, unfortunately affecting our app much.
This is the error log:
It repeats it self many times and then crashes. I have to decrease or remove the images and then it builds, but I am surprised that before it worked well and after upgrade there now seem to be a lower limit to image sizes supported somewhere in the stack.
:(
art: Clamp target GC heap from 207MB to 192MB
[INFO] : art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 955us total 19.905ms
[ERROR] : art: Throwing OutOfMemoryError "Failed to allocate a 4194316 byte allocation with 499367 free bytes and 487KB until OOM"
Also see this thread: http://developer.appcelerator.com/question/181927/problems-with-android-since-the-502-upgrade