RippleEffect icon indicating copy to clipboard operation
RippleEffect copied to clipboard

Crash on Android 6.0 in RippleView.draw()

Open emanzanoaxa opened this issue 11 years ago • 21 comments

Today I've installed Android 6.0 (release) and ripple is crashing, here is the stacktrace:

E/AndroidRuntime: java.lang.IllegalStateException: Underflow in restore - more restores than saves E/AndroidRuntime: at android.graphics.Canvas.native_restore(Native Method) E/AndroidRuntime: at android.graphics.Canvas.restore(Canvas.java:540) E/AndroidRuntime: at com.andexert.library.RippleView.draw(RippleView.java:166)

emanzanoaxa avatar Oct 15 '15 07:10 emanzanoaxa

Hi ,

i have the same problem.

chrissd23 avatar Oct 16 '15 09:10 chrissd23

Same problem here!

ghost avatar Oct 21 '15 13:10 ghost

Same for me, unfortunately

lbtrier avatar Oct 21 '15 21:10 lbtrier

I've sent a pull request fixing this issue, I hope the developer accepts it. If anyone is interested I have it in my fork https://github.com/emanzanoaxa/RippleEffect/tree/fix_marshmallow

emanzanoaxa avatar Oct 22 '15 07:10 emanzanoaxa

Thank you @emanzanoaxa! I

ghost avatar Oct 22 '15 07:10 ghost

Guys,

I don't think the author it's active anymore, can someone publish this project on maven / gradle with this fix

Thanks

paul-piro avatar Oct 25 '15 21:10 paul-piro

+1

Frequencies avatar Oct 26 '15 09:10 Frequencies

@paul321, you can use the jitpack: https://jitpack.io/#emanzanoaxa/RippleEffect/v1.3

rafalzawadzki avatar Oct 26 '15 15:10 rafalzawadzki

@rafalzawadzki Thank you, saved me a lot of trouble by including the source code in the project :)

paul-piro avatar Oct 26 '15 17:10 paul-piro

It's still crashing using this repo, because the fix it's in another branch

paul-piro avatar Oct 26 '15 17:10 paul-piro

You need to use this one

compile 'com.github.emanzanoaxa:RippleEffect:52ea2a0ab6'

paul-piro avatar Oct 26 '15 17:10 paul-piro

@emanzanoaxa : Thank you for the fix! It works :)

susheel17 avatar Nov 16 '15 18:11 susheel17

i couldn't use @emanzanoaxa's fix, and i dont know why! it seems that it doesn't find it :/

aminsepahan avatar Nov 18 '15 09:11 aminsepahan

I have the same error and I'm probably gonna switch to a different library.

Seylox avatar Nov 18 '15 16:11 Seylox

+1

EliasMazz avatar Dec 11 '15 17:12 EliasMazz

anything on this? Is this library still supported or better to find some other one?

nzackoya avatar Feb 04 '16 14:02 nzackoya

@emanzanoaxa Thanks!!!

devilcannon avatar Feb 17 '16 02:02 devilcannon

Please see #92. It will be released asap

traex avatar Feb 24 '16 01:02 traex

Thanks very much! @emanzanoaxa

ysy950803 avatar Mar 12 '16 09:03 ysy950803

This has very simple solution. Just downgrade your - targetSdkVersion to 22 It works for all versions.

GirishBhalerao avatar Mar 31 '16 06:03 GirishBhalerao