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.

Throw error on before snack bar dismiss

See original GitHub issue

Hi i updated support design and other google view libs , now before dismissing the snackbar app throw an error java.lang.IndexOutOfBoundsException: Invalid index 6, size is 6 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at android.support.design.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1280) at android.support.design.widget.CoordinatorLayout$HierarchyChangeListener.onChildViewRemoved(CoordinatorLayout.java:2863) at android.view.ViewGroup.onViewRemoved(ViewGroup.java:3856) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4238) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4193) at android.view.ViewGroup.removeView(ViewGroup.java:4124) at android.support.design.widget.Snackbar.onViewHidden(Snackbar.java:646) at android.support.design.widget.Snackbar.access$300(Snackbar.java:72) at android.support.design.widget.Snackbar$9.onAnimationEnd(Snackbar.java:588) at android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47) at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1116) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1171) at android.animation.ValueAnimator.cancel(ValueAnimator.java:1073) at android.view.ViewPropertyAnimator.animatePropertyBy(ViewPropertyAnimator.java:967) at android.view.ViewPropertyAnimator.animateProperty(ViewPropertyAnimator.java:923) at android.view.ViewPropertyAnimator.translationY(ViewPropertyAnimator.java:634) at android.support.v4.view.ViewPropertyAnimatorCompatICS.translationY(ViewPropertyAnimatorCompatICS.java:38) at android.support.v4.view.ViewPropertyAnimatorCompat$ICSViewPropertyAnimatorCompatImpl.translationY(ViewPropertyAnimatorCompat.java:384) at android.support.v4.view.ViewPropertyAnimatorCompat.translationY(ViewPropertyAnimatorCompat.java:757) at com.ashokvarma.bottomnavigation.behaviour.BottomVerticalScrollBehavior.updateSnackBarPosition(BottomVerticalScrollBehavior.java:79) at com.ashokvarma.bottomnavigation.behaviour.BottomVerticalScrollBehavior.updateSnackBarPosition(BottomVerticalScrollBehavior.java:74) at com.ashokvarma.bottomnavigation.behaviour.BottomVerticalScrollBehavior.onDependentViewChanged(BottomVerticalScrollBehavior.java:66) at android.support.design.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1302) at android.support.design.widget.CoordinatorLayout$OnPreDrawListener.onPreDraw(CoordinatorLayout.java:1812) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1970) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:550) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Ashok-Varmacommented, Aug 27, 2016

@silverboyir i will check the issue

0reactions
Ashok-Varmacommented, Sep 1, 2016

@droidery @silverboyir i will check with samples and it would be really helpful if you guys can create a pull request updating the sample project to reproduce the issue. So i can directly check the issue instead of trying to reproduce it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter snackbar dismiss on SnackBarAction onPressed
You'll have to save a reference to the snackbar and call it's "close" method. Like so void Function () close; var snackbar ......
Read more >
Snackbar wrongly positioned if opened from global error handler
I use a global error handler in my app which shows a snackbar to the user if a certain type of exception is...
Read more >
Snackbars - Material Design
They remain until dismissed or a required action has been taken. ... CautionA dismiss action is unnecessary, as snackbar disappears on their own...
Read more >
Snackbar | Angular Material
A snackbar can be dismissed manually by calling the dismiss method on the MatSnackBarRef returned from the call to open . Only one...
Read more >
Getting started - Notistack
Dismiss snackbar with the given key. You can close all snackbars at once by not passing a key to this function. // dismiss...
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