Skip to content
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

java.lang.IllegalStateException: Underflow in restore - more restores than saves #135

Open
TengJW opened this issue Apr 2, 2018 · 4 comments

Comments

@TengJW
Copy link

TengJW commented Apr 2, 2018

机型:小米4c 系统版本 7.0

java.lang.IllegalStateException: Underflow in restore - more restores than saves
at android.graphics.Canvas.native_restore(Native Method)
at android.graphics.Canvas.restore(Canvas.java:522)
at com.andexert.library.RippleView.draw(RippleView.java:166)
at android.view.View.updateDisplayListIfDirty(View.java:16078)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730)
at android.view.View.updateDisplayListIfDirty(View.java:16041)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730)
at android.view.View.updateDisplayListIfDirty(View.java:16041)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730)
at android.view.View.updateDisplayListIfDirty(View.java:16041)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730)
at android.view.View.updateDisplayListIfDirty(View.java:16041)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730)
at android.view.View.updateDisplayListIfDirty(View.java:16041)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730)
at android.view.View.updateDisplayListIfDirty(View.java:16041)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:657)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:663)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:771)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2833)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2641)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2248)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1283)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6359)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:873)
at android.view.Choreographer.doCallbacks(Choreographer.java:685)
at android.view.Choreographer.doFrame(Choreographer.java:621)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:859)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6342)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)

@uCloudCastle
Copy link

I have meet the same crash

1 similar comment
@KomoriWu
Copy link

I have meet the same crash

@bizehao
Copy link

bizehao commented Jun 13, 2018

I have meet the same crash,in google Nexus 5x, help help help

@abolfazlbzgh
Copy link

see this commit => df5f9e4

use this code in line 166
if (Build.VERSION.SDK_INT < 23) {
canvas.restore();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants