gcacace / android-signaturepad

A custom Android View for drawing smooth signatures
Apache License 2.0
2.76k stars 640 forks source link

Transaction TooLarge Exception #153

Closed das-10 closed 3 years ago

das-10 commented 4 years ago

the SignaturePad view cause Transaction TooLarge Exception.

How to reproduce the Exception: navigate to the activity/fragment where the SignaturePad View is implemented. just hide your app(Android os will call onSavedInstance) you get the Exception throw.

I use Android version 9.

voghDev commented 4 years ago

Hi @das-10 !

I'm wondering if this exception appeared after migrating to androidx. Can you downgrade your library version to the previous one (1.2.1 for example), and check your App again to see if the Exception is gone?

thanks!

ArthurNagy commented 4 years ago

Hey! It's not a new issue introduced recently, there are duplicate issues for this: #114 and #97 Take a look at the comment for a possible workaround and the state of the issue.

voghDev commented 4 years ago

Ok. For those experiencing this issue, I suggest to temporarily downgrade from 1.3.1 to 1.2.1 while we discover a possible root cause of this error, which seems happening more often in 1.3.1 than previous versions

oradkovsky commented 4 years ago

Problem with downgrading to 1.2.1 is lost state (when view recreates it's blank). I'm so far experimenting with these changes https://github.com/oradkovsky/android-signaturepad/tree/transactiontoolarge_exception_fix if anyone interested.

ankurbhut commented 3 years ago

Use below property in your signature pad view and it will works in latest version also.

android:saveEnabled="false"

gcacace commented 3 years ago

Duplicate of #49