AviranAbady / CookieBar2

Android library for displaying text messages, notifications and alerts at the top or bottom of the screen. A great alternative for toast and snackbar alerts.
Apache License 2.0
667 stars 74 forks source link

crash #28

Closed allentown521 closed 3 years ago

allentown521 commented 3 years ago

version 1.1.4 Fatal Exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. at android.view.ViewGroup.addViewInner(ViewGroup.java:5235) at android.view.ViewGroup.addView(ViewGroup.java:5064) at android.view.ViewGroup.addView(ViewGroup.java:5004) at android.view.ViewGroup.addView(ViewGroup.java:4976) at org.aviran.cookiebar2.CookieBar$1.onDismiss(SourceFile:3) at org.aviran.cookiebar2.Cookie.cookieListenerDismiss(SourceFile:87) at org.aviran.cookiebar2.Cookie.access$400(SourceFile:3) at org.aviran.cookiebar2.Cookie$3.onAnimationEnd(SourceFile:3) at android.view.animation.Animation.dispatchAnimationEnd(Animation.java:1019) at android.view.animation.AnimationSet.getTransformation(AnimationSet.java:397) at android.view.animation.Animation.getTransformation(Animation.java:1038) at android.view.View.applyLegacyAnimation(View.java:21903) at android.view.View.draw(View.java:22019) at android.view.ViewGroup.drawChild(ViewGroup.java:4516) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277) at android.view.View.draw(View.java:22353) at com.android.internal.policy.DecorView.draw(DecorView.java:806) at android.view.View.updateDisplayListIfDirty(View.java:21226) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:559) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:565) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:642) at android.view.ViewRootImpl.draw(ViewRootImpl.java:4106) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3833) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3104) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1948) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8177) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972) at android.view.Choreographer.doCallbacks(Choreographer.java:796) at android.view.Choreographer.doFrame(Choreographer.java:731) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223)

allentown521 commented 3 years ago

https://github.com/AviranAbady/CookieBar2/issues/20 It looks the same as this problem. I used the latest version 1.1.4 at the beginning, and it has appeared several times.

AviranAbady commented 3 years ago

Hey @allentown521 Please provide steps to reproduce the crash

allentown521 commented 3 years ago

Sorry for not being able to provide, it is the log reported by the user

Aviran Abady notifications@github.com 于2021年1月24日周日 下午5:04写道:

Hey @allentown521 https://github.com/allentown521 Please provide steps to reproduce the crash

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AviranAbady/CookieBar2/issues/28#issuecomment-766314565, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQTPNM66KN63OB3JWYPVA7DS3PPATANCNFSM4WL25AVQ .

AviranAbady commented 3 years ago

@allentown521 Are you sure the stacktrace / crash report comes from a version 1.1.4? I can not reproduce the issue, unless you can provide steps to reproduce I'll have to close the issue

allentown521 commented 3 years ago

Yes, it is.

Aviran Abady notifications@github.com 于2021年1月28日周四 上午4:47写道:

@allentown521 https://github.com/allentown521 Are you sure the stacktrace / crash report comes from a version 1.1.4? I can not reproduce the issue, unless you can provide steps to reproduce I'll have to close the issue

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AviranAbady/CookieBar2/issues/28#issuecomment-768566460, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQTPNM6523BNOHOJL4K5WW3S4B3ULANCNFSM4WL25AVQ .

AviranAbady commented 3 years ago

closed - no steps to reproduce the issue have been provided.