Race-condition leads to OutOfBounds in ForwardingControllerListener
See original GitHub issueHello. I’m getting a strange crash when loading a simple local gif.
10-18 18:00:57.522 8284-8284/com.goodrun.android.debug D/AndroidRuntime: Shutting down VM
FATAL EXCEPTION: main
Process: com.goodrun.android.debug, PID: 8284
java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.facebook.drawee.controller.ForwardingControllerListener.onFinalImageSet(ForwardingControllerListener.java:91)
at com.facebook.drawee.controller.AbstractDraweeController.onNewResultInternal(AbstractDraweeController.java:524)
at com.facebook.drawee.controller.AbstractDraweeController.access$000(AbstractDraweeController.java:47)
at com.facebook.drawee.controller.AbstractDraweeController$1.onNewResultImpl(AbstractDraweeController.java:469)
at com.facebook.datasource.BaseDataSubscriber.onNewResult(BaseDataSubscriber.java:48)
at com.facebook.datasource.AbstractDataSource$1.run(AbstractDataSource.java:181)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What is a Race Condition? - TechTarget
A race condition is an undesirable situation that occurs when a device or system attempts to perform two or more operations at the...
Read more >How to avoid the race condition detected in the following code?
As you already realized, publishing this in the constructor is a really bad idea. This is a good way around it; Use a...
Read more >Race Condition | Threat Intelligence | Threat Intelligence Feed | Brea...
This vulnerability allows local attackers to escalate privileges on affected installations of Parallels Desktop Parallels Desktop 17.1.1.
Read more >CWE-364: Signal Handler Race Condition (4.9)
Race conditions frequently occur in signal handlers, since signal handlers support asynchronous actions. These race conditions have a variety of root causes ......
Read more >Possible race condition in menu security trimming - Telerik
We're dealing with a strange error that appears to be a race condition while the kendo menu is checking permissions to "trim" the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just figured out that this happens when calling “setAutoPlayAnimations” on DraweeController
Looks like @lambdapioneer fixed this, closing.