{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/717","labels_url":"https://api.github.com/repos/facebook/fresco/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/717/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/717/events","html_url":"https://github.com/facebook/fresco/issues/717","id":114247564,"number":717,"title":"FetchDecodedImage return recycled bitmap","user":{"login":"karun2189","id":4091683,"avatar_url":"https://avatars.githubusercontent.com/u/4091683?v=3","gravatar_id":"","url":"https://api.github.com/users/karun2189","html_url":"https://github.com/karun2189","followers_url":"https://api.github.com/users/karun2189/followers","following_url":"https://api.github.com/users/karun2189/following{/other_user}","gists_url":"https://api.github.com/users/karun2189/gists{/gist_id}","starred_url":"https://api.github.com/users/karun2189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karun2189/subscriptions","organizations_url":"https://api.github.com/users/karun2189/orgs","repos_url":"https://api.github.com/users/karun2189/repos","events_url":"https://api.github.com/users/karun2189/events{/privacy}","received_events_url":"https://api.github.com/users/karun2189/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/fresco/labels/needs-details","name":"needs-details","color":"f4a460"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-30T10:54:19Z","updated_at":"2015-11-06T16:14:04Z","closed_at":"2015-11-03T17:28:13Z","body":"I am getting \"Canvas: trying to use a recycled bitmap\" error. If i am get bitmap from cache by using below code \r\n\r\n```java\r\nImagePipeline imagePipeline = Fresco.getImagePipeline();\r\n        ImageRequest imageRequest = ImageRequestBuilder\r\n                .newBuilderWithSource(Uri.fromFile(new File(url)))\r\n                .build();\r\n\r\n        DataSource<CloseableReference<CloseableImage>>\r\n                dataSource = imagePipeline.fetchDecodedImage(imageRequest, mContext);\r\n        dataSource.subscribe(new BaseBitmapDataSubscriber() {\r\n\r\n                                 @Override\r\n                                 public void onNewResultImpl(@Nullable Bitmap bitmap) {\r\n                                     if (cacheListener != null) {\r\n                                         cacheListener.onAvailableBitmap(bitmap);\r\n                                     }\r\n                                 }\r\n\r\n                                 @Override\r\n                                 public void onFailureImpl(DataSource dataSource) {\r\n                                     if (cacheListener != null) {\r\n                                         cacheListener.onAvailableBitmap(null);\r\n                                     }\r\n                                 }\r\n                             },\r\n                CallerThreadExecutor.getInstance());\r\n```\r\n\r\nWhy i am getting this error ?  I am getting frequently.. \r\nThanks "},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/154454366","html_url":"https://github.com/facebook/fresco/issues/717#issuecomment-154454366","issue_url":"https://api.github.com/repos/facebook/fresco/issues/717","id":154454366,"user":{"login":"tyronen","id":958570,"avatar_url":"https://avatars.githubusercontent.com/u/958570?v=3","gravatar_id":"","url":"https://api.github.com/users/tyronen","html_url":"https://github.com/tyronen","followers_url":"https://api.github.com/users/tyronen/followers","following_url":"https://api.github.com/users/tyronen/following{/other_user}","gists_url":"https://api.github.com/users/tyronen/gists{/gist_id}","starred_url":"https://api.github.com/users/tyronen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyronen/subscriptions","organizations_url":"https://api.github.com/users/tyronen/orgs","repos_url":"https://api.github.com/users/tyronen/repos","events_url":"https://api.github.com/users/tyronen/events{/privacy}","received_events_url":"https://api.github.com/users/tyronen/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T16:14:04Z","updated_at":"2015-11-06T16:14:04Z","body":"That sounds like you are closing the reference too early. Once you have called close, you should never again pass that bitmap to any draw method."}}