{"action":"created","issue":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/634","repository_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader","labels_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/634/comments","events_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/634/events","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/634","id":34543578,"number":634,"title":"OutOfMemoryError sometimes","user":{"login":"RafaRuiz","id":6842786,"avatar_url":"https://avatars.githubusercontent.com/u/6842786?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaRuiz","html_url":"https://github.com/RafaRuiz","followers_url":"https://api.github.com/users/RafaRuiz/followers","following_url":"https://api.github.com/users/RafaRuiz/following{/other_user}","gists_url":"https://api.github.com/users/RafaRuiz/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaRuiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaRuiz/subscriptions","organizations_url":"https://api.github.com/users/RafaRuiz/orgs","repos_url":"https://api.github.com/users/RafaRuiz/repos","events_url":"https://api.github.com/users/RafaRuiz/events{/privacy}","received_events_url":"https://api.github.com/users/RafaRuiz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/labels/Problem","name":"Problem","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-05-29T10:17:55Z","updated_at":"2016-03-10T09:24:17Z","closed_at":null,"body":"Hello. \r\n\r\nI tried to use this image http://www.flunny.com/file/pic/photo/2014/04/9e29b40c4c73bd166ee2a76f1003773a.jpg (big size)\r\n\r\nIf the first thing I do is load that image, it's loaded my ImageLoader.\r\n\r\nBut if I navigate along the app (downloading more images), and after that I try to load it, it gives me an OutOfMemoryError.\r\n```\r\n05-29 12:13:58.528: E/ImageLoader(5041): null\r\n05-29 12:13:58.528: E/ImageLoader(5041): java.lang.OutOfMemoryError\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat android.graphics.BitmapFactory.nativeDecodeStream(Native Method)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:703)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:679)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:78)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.decodeImage(LoadAndDisplayImageTask.java:285)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:231)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:141)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n05-29 12:13:58.528: E/ImageLoader(5041): \tat java.lang.Thread.run(Thread.java:841)\r\n```\r\nHow I load it:\r\n``` java\r\n                   HomeActivity.imageLoader.displayImage(item1.getThumb(), im1, HomeActivity.ILoptions, new ImageLoadingListener1(im1, pb1)); // Custom ImageLoadingListener which shows a ProgressBar\r\n```\r\nand my ILoptions and imageLoader are:\r\n``` java\r\n                    ILoptions = new DisplayImageOptions.Builder().cacheInMemory(true).cacheOnDisc(true).build();\r\n\t\timageLoader.init(ImageLoaderConfiguration.createDefault(HomeActivity.this));\r\n```"},"comment":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/comments/194749656","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/634#issuecomment-194749656","issue_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/634","id":194749656,"user":{"login":"stevenchans","id":6215329,"avatar_url":"https://avatars.githubusercontent.com/u/6215329?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenchans","html_url":"https://github.com/stevenchans","followers_url":"https://api.github.com/users/stevenchans/followers","following_url":"https://api.github.com/users/stevenchans/following{/other_user}","gists_url":"https://api.github.com/users/stevenchans/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenchans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenchans/subscriptions","organizations_url":"https://api.github.com/users/stevenchans/orgs","repos_url":"https://api.github.com/users/stevenchans/repos","events_url":"https://api.github.com/users/stevenchans/events{/privacy}","received_events_url":"https://api.github.com/users/stevenchans/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T09:24:17Z","updated_at":"2016-03-10T09:24:17Z","body":"please don use cacheInMemory  if it is a listview  you will find the memory increase fast "}}