question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Race-condition leads to OutOfBounds in ForwardingControllerListener

See original GitHub issue

Hello. 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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ffelinicommented, Oct 18, 2016

I just figured out that this happens when calling “setAutoPlayAnimations” on DraweeController

0reactions
foghinacommented, Dec 14, 2016

Looks like @lambdapioneer fixed this, closing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found