-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Underflow in restore - more restores than saves : on Android M (6.0) #76
Comments
I get this error too. |
Same thing on Nexus 6 on Android 6.0 Build MPA44G. |
I get this error too. |
This is still crashing in the Official release of Android 6.0 that Google is rolling out. |
Even I'm getting the same error on Android One device running Android 6.0 |
same here... |
I moved over to It seems to crash for us when we open another app from a button. Then when we return to the app, it tries to finish the ripple animation and crashes. |
@JolandaVerhoef check #74 comment by matthewrice345. He suggests modifying the source code. |
Same issue here... Gonna place a separate layout for 21+ |
I am also getting same error on Android 6.0 |
@vipinshukla83 Place separate layout for 21+ let the Android M handle the ripple itself. Just use the proper ripple holder for layouts and views |
I also have this problem, Android 6.0 |
1 similar comment
I also have this problem, Android 6.0 |
I've just created PR for this.
in your |
@dariav compile 'com.github.Hitta:RippleEffect:82cf00e551' is not working for me |
@rex3du Have you tried adding JitPack repository to your build file
|
@dariav Thanks. |
Hi, i am using this library in my project and I can see you made the changes to fix the error with marshmallow. However I don't know how to apply/get/make those fixes in my project. |
This has very simple solution. Just downgrade your - targetSdkVersion to 22 |
There are two solutions for this Problem.
|
@GirishBhalerao how to get the library and import it to my app?? |
Me too, in Xiaomi android 6.0. |
Me too Motorola Moto G Android 6.0. |
Getting this on Android 7.0, Nexus 6p. |
I also have this problem, Android 6.0.How do you solve it ? |
i also have this problem on Android 7.0, Nexus 6p. |
I Got this problem too on Android 7.0, Nexus 5X. |
I Got this too. |
@GirishBhalerao works well on Android 7.0 on Nexus 6 .. |
Does this issue takes place only on button, or the error occurs on Cardview as well. I am using a cardview and not getting any crash. |
call canvas.save(); before every restore() |
Getting this too, android 6 |
android 自定义view报如下错误: java.lang.IllegalStateException: Underflow in restore |
Please try this fixed version as alternative (you can use any targetSdkVersion): https://github.com/patrickpissurno/RippleEffect/ |
@patrickpissurno |
@bravolover520 work 4me |
l have the same problem and the version 1.3.1 is not working for me. Android 6.0.1 |
Same problem |
I did as bravolover520 said (commented on 12 Jan 2017) == Called canvas.save(); Before canvas.restore(); |
I fixed this issue using this version of RippleEffect https://github.com/patrickpissurno/RippleEffect/ |
Use this. It's Work For me,
More details ------------- |
09-09 08:42:48.592 13857 13857 E AndroidRuntime: java.lang.IllegalStateException: Underflow in restore - more restores than saves
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.graphics.Canvas.native_restore(Native Method)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.graphics.Canvas.restore(Canvas.java:540)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at com.andexert.library.RippleView.draw(RippleView.java:166)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15174)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:606)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
09-09 08:42:48.592 13857 13857 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
The text was updated successfully, but these errors were encountered: