{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/77","labels_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/77/comments","events_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/77/events","html_url":"https://github.com/NativeScript/android-runtime/issues/77","id":80845929,"number":77,"title":"Out of memory, Bitmap images on Android","user":{"login":"enchev","id":5804953,"avatar_url":"https://avatars.githubusercontent.com/u/5804953?v=3","gravatar_id":"","url":"https://api.github.com/users/enchev","html_url":"https://github.com/enchev","followers_url":"https://api.github.com/users/enchev/followers","following_url":"https://api.github.com/users/enchev/following{/other_user}","gists_url":"https://api.github.com/users/enchev/gists{/gist_id}","starred_url":"https://api.github.com/users/enchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enchev/subscriptions","organizations_url":"https://api.github.com/users/enchev/orgs","repos_url":"https://api.github.com/users/enchev/repos","events_url":"https://api.github.com/users/enchev/events{/privacy}","received_events_url":"https://api.github.com/users/enchev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-05-26T07:55:17Z","updated_at":"2015-06-22T08:05:34Z","closed_at":null,"body":"_From @duongnhatduy on May 6, 2015 10:9_\n\nHi,\r\n\r\nI'm trying to make something similar to sample-cuteness, loading a listview of images and save it by using image-cache. It works fine on iOS but crashes on android. \r\n\r\nI/dalvikvm-heap( 3757): Forcing collection of SoftReferences for 4506492-byte allocation\r\nI/dalvikvm-heap( 3757): Clamp target GC heap from 33.083MB to 32.000MB\r\nD/dalvikvm( 3757): GC_BEFORE_OOM freed 71K, 3% free 31709K/32680K, paused 6ms, total 6ms\r\nE/dalvikvm-heap( 3757): Out of memory on a 4506492-byte allocation.\r\nI/dalvikvm( 3757): \"AsyncTask #2\" prio=5 tid=13 RUNNABLE\r\nI/dalvikvm( 3757):   | group=\"main\" sCount=0 dsCount=0 obj=0xb323b7c0 self=0xb8540bc0\r\nI/dalvikvm( 3757):   | sysTid=3775 nice=10 sched=3/0 cgrp=[fopen-error:2] handle=-1202450384\r\nI/dalvikvm( 3757):   | state=R schedstat=( 0 0 0 ) utm=20 stm=20 core=0\r\nI/dalvikvm( 3757):   at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)\r\nI/dalvikvm( 3757):   at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:500)\r\nI/dalvikvm( 3757):   at com.tns.Async$Http$RequestResult.readResponseStream(Async.java:185)\r\nI/dalvikvm( 3757):   at com.tns.Async$Http$HttpRequestTask.doInBackground(Async.java:264)\r\nI/dalvikvm( 3757):   at com.tns.Async$Http$HttpRequestTask.doInBackground(Async.java:214)\r\nI/dalvikvm( 3757):   at android.os.AsyncTask$2.call(AsyncTask.java:288)\r\nI/dalvikvm( 3757):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\nI/dalvikvm( 3757):   at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)\r\nI/dalvikvm( 3757):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\nI/dalvikvm( 3757):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\nI/dalvikvm( 3757):   at java.lang.Thread.run(Thread.java:841)\r\nI/dalvikvm( 3757): \r\nD/skia    ( 3757): --- decoder->decode returned false\r\n\r\nThanks\n\n_Copied from original issue: NativeScript/NativeScript#123_"},"comment":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/comments/114034932","html_url":"https://github.com/NativeScript/android-runtime/issues/77#issuecomment-114034932","issue_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/77","id":114034932,"user":{"login":"duongnhatduy","id":6529267,"avatar_url":"https://avatars.githubusercontent.com/u/6529267?v=3","gravatar_id":"","url":"https://api.github.com/users/duongnhatduy","html_url":"https://github.com/duongnhatduy","followers_url":"https://api.github.com/users/duongnhatduy/followers","following_url":"https://api.github.com/users/duongnhatduy/following{/other_user}","gists_url":"https://api.github.com/users/duongnhatduy/gists{/gist_id}","starred_url":"https://api.github.com/users/duongnhatduy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongnhatduy/subscriptions","organizations_url":"https://api.github.com/users/duongnhatduy/orgs","repos_url":"https://api.github.com/users/duongnhatduy/repos","events_url":"https://api.github.com/users/duongnhatduy/events{/privacy}","received_events_url":"https://api.github.com/users/duongnhatduy/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T08:05:34Z","updated_at":"2015-06-22T08:05:34Z","body":"@atanasovg Here it is\r\nhttps://github.com/duongnhatduy/tns-android-image-outofmemory"}}