{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/925","labels_url":"https://api.github.com/repos/facebook/fresco/issues/925/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/925/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/925/events","html_url":"https://github.com/facebook/fresco/issues/925","id":127132140,"number":925,"title":"IndexOutOfBoundsException - RecycleView","user":{"login":"shaharl","id":5088777,"avatar_url":"https://avatars.githubusercontent.com/u/5088777?v=3","gravatar_id":"","url":"https://api.github.com/users/shaharl","html_url":"https://github.com/shaharl","followers_url":"https://api.github.com/users/shaharl/followers","following_url":"https://api.github.com/users/shaharl/following{/other_user}","gists_url":"https://api.github.com/users/shaharl/gists{/gist_id}","starred_url":"https://api.github.com/users/shaharl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaharl/subscriptions","organizations_url":"https://api.github.com/users/shaharl/orgs","repos_url":"https://api.github.com/users/shaharl/repos","events_url":"https://api.github.com/users/shaharl/events{/privacy}","received_events_url":"https://api.github.com/users/shaharl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-17T23:25:37Z","updated_at":"2016-01-27T14:47:47Z","closed_at":null,"body":"Hi,\r\nI'm getting this exception when i scroll fast on a recycleview. do you have ani idea what am I doing wrong?\r\n\r\njava.lang.IndexOutOfBoundsException: Invalid index 1, size is 0\r\n    at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)\r\n    at java.util.ArrayList.get(ArrayList.java:308)\r\n    at com.facebook.drawee.controller.ForwardingControllerListener.onFailure(ForwardingControllerListener.java:133)\r\n    at com.facebook.drawee.controller.AbstractDraweeController.onFailureInternal(AbstractDraweeController.java:520)\r\n    at com.facebook.drawee.controller.AbstractDraweeController.access$100(AbstractDraweeController.java:47)\r\n    at com.facebook.drawee.controller.AbstractDraweeController$1.onFailureImpl(AbstractDraweeController.java:427)\r\n    at com.facebook.datasource.BaseDataSubscriber.onFailure(BaseDataSubscriber.java:59)\r\n    at com.facebook.datasource.AbstractDataSource$1.run(AbstractDataSource.java:177)\r\n    at android.os.Handler.handleCallback(Handler.java:739)\r\n    at android.os.Handler.dispatchMessage(Handler.java:95)\r\n    at android.os.Looper.loop(Looper.java:135)\r\n    at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n    at java.lang.reflect.Method.invoke(Native Method)\r\n    at java.lang.reflect.Method.invoke(Method.java:372)\r\n    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/175663842","html_url":"https://github.com/facebook/fresco/issues/925#issuecomment-175663842","issue_url":"https://api.github.com/repos/facebook/fresco/issues/925","id":175663842,"user":{"login":"plamenko","id":3705123,"avatar_url":"https://avatars.githubusercontent.com/u/3705123?v=3","gravatar_id":"","url":"https://api.github.com/users/plamenko","html_url":"https://github.com/plamenko","followers_url":"https://api.github.com/users/plamenko/followers","following_url":"https://api.github.com/users/plamenko/following{/other_user}","gists_url":"https://api.github.com/users/plamenko/gists{/gist_id}","starred_url":"https://api.github.com/users/plamenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamenko/subscriptions","organizations_url":"https://api.github.com/users/plamenko/orgs","repos_url":"https://api.github.com/users/plamenko/repos","events_url":"https://api.github.com/users/plamenko/events{/privacy}","received_events_url":"https://api.github.com/users/plamenko/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T14:47:47Z","updated_at":"2016-01-27T14:47:47Z","body":"Are you using `ControllerListeners`? If so, can you provide your code?\r\nFrom the stack trace it seems that [ForwardingControllerListener.onFailure] (https://github.com/facebook/fresco/blob/0f3d52318631f2125e080d2a19f6fa13a31efb31/drawee/src/main/java/com/facebook/drawee/controller/ForwardingControllerListener.java#L133) gets cleared while being iterated over. This method is synchronized meaning that this can only happen if one of the child controller listeners causes the issue. This may happen if for example you have a controller listener that onFailure attempts to set a new Uri to the DraweeView."}}