Caused by android.os.TransactionTooLargeException: data parcel size 5971992 bytes is there any tool to debug this error

6.2k views Asked by At

I am working on the production app. I am receiving the exception in Crashlytics. I don't have a clue where is happening because it is not pointing any activity. Just I am getting an error like this.

Caused by android.os.TransactionTooLargeException: data parcel size 5971992 bytes
   at android.os.BinderProxy.transactNative(BinderProxy.java)
   at android.os.BinderProxy.transact(BinderProxy.java:1179)
   at android.app.IActivityManager$Stub$Proxy.activityStopped(IActivityManager.java:3969)
   at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:144)
   at android.os.Handler.handleCallback(Handler.java:873)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:193)
   at android.app.ActivityThread.main(ActivityThread.java:6898)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Is there any tool/library to detect this issue

I checked this link also What to do on TransactionTooLargeException

I tried this tool https://github.com/guardian/toolargetoo it's not helpful for me.Can you kindly share your ideas

1

There are 1 answers

0
Arjun Singh On

Caused by android.os.TransactionTooLargeException: data parcel size 5971992 bytes is there any tool to debug this error

Store the Data into the SharedPreferences Like This

SharedPreferences.Editor editor = sharedpreferences.edit();
                            editor.putString("HipId",services.get(position).getId());
                            editor.putString("PatientId",services.get(position).getPatient_id());
                         editor.putString("DataPush",services.get(position).getData_push());
editor.apply();// this Kb Data
Intent intent = new Intent(context, SecondActivity.class);
startActivity(intent);

and fetch the Data SecondActivity class

     hipId=sharedpreferences.getString("HipId", "");;
      PatientId=sharedpreferences.getString("PatientId", "");
     String data=sharedpreferences.getString("DataPush", "");