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

On App minimize its crashing #169

Open
ravi1805 opened this issue Apr 5, 2022 · 6 comments
Open

On App minimize its crashing #169

ravi1805 opened this issue Apr 5, 2022 · 6 comments

Comments

@ravi1805
Copy link

ravi1805 commented Apr 5, 2022

When you are in signature activity and app goes in background then it's crashing, any solution for this.

java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 4207940 bytes
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:161)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: android.os.TransactionTooLargeException: data parcel size 4207940 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:575)
at android.app.IActivityTaskManager$Stub$Proxy.activityStopped(IActivityTaskManager.java:5148)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:145)
at android.os.Handler.handleCallback(Handler.java:883) 
at android.os.Handler.dispatchMessage(Handler.java:100) 
at android.os.Looper.loop(Looper.java:237) 
at android.app.ActivityThread.main(ActivityThread.java:8167) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100) 

@mahashisho
Copy link

Inside your activity , put this code
@OverRide
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.clear();
}

@albedinsky
Copy link

We are now also experiencing this issue after upgrading from version 1.2.1 to version 1.3.1.

@connyhald
Copy link

Duplicate of #153

@waheed006
Copy link

Inside your activity , put this code @OverRide protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.clear(); }

This worked for me as well

@gustavocnp95
Copy link

gustavocnp95 commented Aug 17, 2022

We just created a fork and published with the fix keeping the state saving. For use it you should:

Set jitpack.io url on your project's build.gradle

allprojects {
    repositories {
        google()
        maven { url "https://jitpack.io" }
   }
}

and then, add into your depedencies this:

implementation 'com.github.prologapp:android-signaturepad:1.0.0'

@mcoville
Copy link

I used the suggestion from this comment and the app stopped crashing. #153 (comment)

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

7 participants