{"action":"created","issue":{"url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/66","labels_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/66/comments","events_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/66/events","html_url":"https://github.com/davemorrissey/subsampling-scale-image-view/issues/66","id":73082219,"number":66,"title":"Recycle not releasing memory","user":{"login":"rhinobomb","id":12239058,"avatar_url":"https://avatars.githubusercontent.com/u/12239058?v=3","gravatar_id":"","url":"https://api.github.com/users/rhinobomb","html_url":"https://github.com/rhinobomb","followers_url":"https://api.github.com/users/rhinobomb/followers","following_url":"https://api.github.com/users/rhinobomb/following{/other_user}","gists_url":"https://api.github.com/users/rhinobomb/gists{/gist_id}","starred_url":"https://api.github.com/users/rhinobomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhinobomb/subscriptions","organizations_url":"https://api.github.com/users/rhinobomb/orgs","repos_url":"https://api.github.com/users/rhinobomb/repos","events_url":"https://api.github.com/users/rhinobomb/events{/privacy}","received_events_url":"https://api.github.com/users/rhinobomb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-04T17:45:21Z","updated_at":"2015-05-05T14:29:50Z","closed_at":null,"body":"I've been using this view to display full screen images and am having trouble keeping memory usage under control.  I've been calling recycle on my view to release memory when not in use and reset for re-use but it doesn't seem to change how much memory my app is using.  I've even gone as far as to put together a simple app for a test that calls a function to recycle the view when clicked.  The function fires but the memory usage stays the same.  Do I have to do more than just call recycle on the view?"},"comment":{"url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/comments/99095265","html_url":"https://github.com/davemorrissey/subsampling-scale-image-view/issues/66#issuecomment-99095265","issue_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/66","id":99095265,"user":{"login":"rhinobomb","id":12239058,"avatar_url":"https://avatars.githubusercontent.com/u/12239058?v=3","gravatar_id":"","url":"https://api.github.com/users/rhinobomb","html_url":"https://github.com/rhinobomb","followers_url":"https://api.github.com/users/rhinobomb/followers","following_url":"https://api.github.com/users/rhinobomb/following{/other_user}","gists_url":"https://api.github.com/users/rhinobomb/gists{/gist_id}","starred_url":"https://api.github.com/users/rhinobomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhinobomb/subscriptions","organizations_url":"https://api.github.com/users/rhinobomb/orgs","repos_url":"https://api.github.com/users/rhinobomb/repos","events_url":"https://api.github.com/users/rhinobomb/events{/privacy}","received_events_url":"https://api.github.com/users/rhinobomb/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T14:29:50Z","updated_at":"2015-05-05T14:29:50Z","body":"Thanks for the response, that makes sense.  I guess maybe I'm having another issue then.  I'm using a view pager to create something very similar to a gallery with full screen images.  It's working well to the point I'm trying to load a different layout in a new fragment.  For testing purposes I've made the layout almost identical to the rest of the fragments and I'm still having issues.  I'm using a consistent image size with similar content but I'll get one image to load fine and the next one will cause OOM.  Maybe I don't know enough about view pagers and fragments and using multiple layouts is bad practice, I'm not really sure.  Is there some way I could block the call to setImage in a try/catch I can try to recover the app?  I'm not sure it would make a difference to what advice you give but the OOM is coming from TileLoadTask.doInBackground\r\n\r\nThanks again."}}