{"action":"created","issue":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/90","labels_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/90/comments","events_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/90/events","html_url":"https://github.com/molinch/FFImageLoading/issues/90","id":122166799,"number":90,"title":"Sometimes see null ref exception errors and bitmap reconfigure warning spam together","user":{"login":"ahohns","id":534182,"avatar_url":"https://avatars.githubusercontent.com/u/534182?v=3","gravatar_id":"","url":"https://api.github.com/users/ahohns","html_url":"https://github.com/ahohns","followers_url":"https://api.github.com/users/ahohns/followers","following_url":"https://api.github.com/users/ahohns/following{/other_user}","gists_url":"https://api.github.com/users/ahohns/gists{/gist_id}","starred_url":"https://api.github.com/users/ahohns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahohns/subscriptions","organizations_url":"https://api.github.com/users/ahohns/orgs","repos_url":"https://api.github.com/users/ahohns/repos","events_url":"https://api.github.com/users/ahohns/events{/privacy}","received_events_url":"https://api.github.com/users/ahohns/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-15T00:51:15Z","updated_at":"2015-12-21T13:31:26Z","closed_at":"2015-12-21T13:31:26Z","body":"Am seeing a null reference exceptions appearing when clicking around (for both Uri and File images) and at the same time warnings about calling reconfigure on a bitmap in use. The warning says it could cause graphical corruption and that's what happened. [See screenshot](https://dl.dropboxusercontent.com/u/2404186/tmp/rno-errors_15-12-15.jpg)\r\n\r\nWhile doing testing I loaded the root page, then clicked around other pages with as many different images as I could find before returning to the root page. Then scrolling through the root page's listview I got the below debug spam:\r\n\r\n```\r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/5/7/4/c/574ca515-8b0b-4d55-8058-177ec9f192be.jpg?&width=954&height=450&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/0/9/c/f/09cf5459-023d-4a32-9513-a0a36a2221cf.jpg?&width=138&height=138&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\nSomething wrong happened while adding decoding options to image: defaultuser.png\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/3/c/d/0/3cd06ad0-d8a3-4a39-9d88-c61b1e4b74e0.jpg?&width=954&height=450&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/0/9/c/f/09cf5459-023d-4a32-9513-a0a36a2221cf.jpg?&width=138&height=138&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/d/e/c/c/decca9e2-7d4f-4f39-ada0-0f16d3235b08.jpg?&width=954&height=450&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/7/5/1/8/75182711-128a-41d2-a830-45e57ca43cde.jpg?&width=954&height=450&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\nSomething wrong happened while adding decoding options to image: http://<site>/M4/Down/0/9/c/f/09cf5459-023d-4a32-9513-a0a36a2221cf.jpg?&width=138&height=138&mode=crop\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n[Bitmap] Called reconfigure on a bitmap that is in use! This may cause graphical corruption!\r\nSomething wrong happened while adding decoding options to image: defaultuser.png\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\nSomething wrong happened while adding decoding options to image: defaultuser.png\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\nSomething wrong happened while adding decoding options to image: defaultuser.png\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at FFImageLoading.Cache.ImageCache.GetBitmapFromReusableSet (Android.Graphics.Options options) [0x0009f] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask.AddInBitmapOptions (Android.Graphics.Options options) [0x0000c] in <filename unknown>:0 \r\n  at FFImageLoading.Work.ImageLoaderTask+<GetDrawableAsync>c__async3+<GetDrawableAsync>c__AnonStoreyE+<GetDrawableAsync>c__asyncD.MoveNext () [0x0043d] in <filename unknown>:0 \r\n```"},"comment":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/comments/166306018","html_url":"https://github.com/molinch/FFImageLoading/issues/90#issuecomment-166306018","issue_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/90","id":166306018,"user":{"login":"daniel-luberda","id":13569983,"avatar_url":"https://avatars.githubusercontent.com/u/13569983?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-luberda","html_url":"https://github.com/daniel-luberda","followers_url":"https://api.github.com/users/daniel-luberda/followers","following_url":"https://api.github.com/users/daniel-luberda/following{/other_user}","gists_url":"https://api.github.com/users/daniel-luberda/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-luberda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-luberda/subscriptions","organizations_url":"https://api.github.com/users/daniel-luberda/orgs","repos_url":"https://api.github.com/users/daniel-luberda/repos","events_url":"https://api.github.com/users/daniel-luberda/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-luberda/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T13:31:26Z","updated_at":"2015-12-21T13:31:26Z","body":"@ahohns Thanks for the info. We could close it then. Feel free to reopen it if you experience those exceptions while testing."}}