{"action":"created","issue":{"url":"https://api.github.com/repos/wasabeef/glide-transformations/issues/10","labels_url":"https://api.github.com/repos/wasabeef/glide-transformations/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/wasabeef/glide-transformations/issues/10/comments","events_url":"https://api.github.com/repos/wasabeef/glide-transformations/issues/10/events","html_url":"https://github.com/wasabeef/glide-transformations/issues/10","id":70625234,"number":10,"title":"java.lang.RuntimeException: Canvas: trying to use a recycled bitmap","user":{"login":"Arkar-Aung","id":2889481,"avatar_url":"https://avatars.githubusercontent.com/u/2889481?v=3","gravatar_id":"","url":"https://api.github.com/users/Arkar-Aung","html_url":"https://github.com/Arkar-Aung","followers_url":"https://api.github.com/users/Arkar-Aung/followers","following_url":"https://api.github.com/users/Arkar-Aung/following{/other_user}","gists_url":"https://api.github.com/users/Arkar-Aung/gists{/gist_id}","starred_url":"https://api.github.com/users/Arkar-Aung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arkar-Aung/subscriptions","organizations_url":"https://api.github.com/users/Arkar-Aung/orgs","repos_url":"https://api.github.com/users/Arkar-Aung/repos","events_url":"https://api.github.com/users/Arkar-Aung/events{/privacy}","received_events_url":"https://api.github.com/users/Arkar-Aung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/wasabeef/glide-transformations/milestones/2","html_url":"https://github.com/wasabeef/glide-transformations/milestones/1.0.7","labels_url":"https://api.github.com/repos/wasabeef/glide-transformations/milestones/2/labels","id":1081973,"number":2,"title":"1.0.7","description":null,"creator":{"login":"wasabeef","id":1833474,"avatar_url":"https://avatars.githubusercontent.com/u/1833474?v=3","gravatar_id":"","url":"https://api.github.com/users/wasabeef","html_url":"https://github.com/wasabeef","followers_url":"https://api.github.com/users/wasabeef/followers","following_url":"https://api.github.com/users/wasabeef/following{/other_user}","gists_url":"https://api.github.com/users/wasabeef/gists{/gist_id}","starred_url":"https://api.github.com/users/wasabeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasabeef/subscriptions","organizations_url":"https://api.github.com/users/wasabeef/orgs","repos_url":"https://api.github.com/users/wasabeef/repos","events_url":"https://api.github.com/users/wasabeef/events{/privacy}","received_events_url":"https://api.github.com/users/wasabeef/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-04-24T09:45:36Z","updated_at":"2015-04-24T09:45:36Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-04-24T08:26:01Z","updated_at":"2015-11-09T07:45:16Z","closed_at":null,"body":"I have a button to apply transformation to my imageVew. I only got that error when apply ColorFilterTransformation and GrayscaleTransformation for the first time. But for the next time (restarting from 0), there is no problem. \r\n```java\r\n        switch (filterSwitchCount) {\r\n            case 0 :\r\n                transformation = new ContrastFilterTransformation(this, pool, 2.0f);\r\n                break;\r\n            case 1 :\r\n                transformation = new ColorFilterTransformation(pool,\r\n                        getResources().getColor(R.color.alpha_indigo));\r\n                break;\r\n            case 2 :\r\n                transformation = new ToonFilterTransformation(this, pool);\r\n                break;\r\n            case 3 :\r\n                transformation = new GrayscaleTransformation(pool);\r\n                break;\r\n        }\r\n\r\n        if (++filterSwitchCount > 3) {\r\n            filterSwitchCount = 0;\r\n        }\r\n\r\n        bitmap = Glide.with(this)\r\n                           .load(imagePath)\r\n                           .asBitmap()\r\n                           .transform(transformation)\r\n                           .into(100, 100)\r\n                           .get();\r\n        imageView.setImageBitmap(bitmap);\r\n```"},"comment":{"url":"https://api.github.com/repos/wasabeef/glide-transformations/issues/comments/154987218","html_url":"https://github.com/wasabeef/glide-transformations/issues/10#issuecomment-154987218","issue_url":"https://api.github.com/repos/wasabeef/glide-transformations/issues/10","id":154987218,"user":{"login":"Razmaklat","id":5904732,"avatar_url":"https://avatars.githubusercontent.com/u/5904732?v=3","gravatar_id":"","url":"https://api.github.com/users/Razmaklat","html_url":"https://github.com/Razmaklat","followers_url":"https://api.github.com/users/Razmaklat/followers","following_url":"https://api.github.com/users/Razmaklat/following{/other_user}","gists_url":"https://api.github.com/users/Razmaklat/gists{/gist_id}","starred_url":"https://api.github.com/users/Razmaklat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Razmaklat/subscriptions","organizations_url":"https://api.github.com/users/Razmaklat/orgs","repos_url":"https://api.github.com/users/Razmaklat/repos","events_url":"https://api.github.com/users/Razmaklat/events{/privacy}","received_events_url":"https://api.github.com/users/Razmaklat/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T07:45:15Z","updated_at":"2015-11-09T07:45:15Z","body":"Hi, I see that this issue is still open and I have had a similar issue. The problem was indeed resolved by removing `source.reccycle();`."}}