FredJul / Flym

Flym News Reader is a light Android feed reader (RSS/Atom)
Other
952 stars 405 forks source link

TransactionTooLargeException #553

Open syphyr opened 4 years ago

syphyr commented 4 years ago

If I click on a web link inside Flym's details container, Flym crashes most of the time with a fatal exception (TransactionTooLargeException). I am using Android Nougat (cm-14.1) to test this with.

Stack overflow talks about this error on Nougat:

“Whenever you see TransactionTooLargeException happening when an Activity is in the process of stopping, that means that the Activity was trying to send its saved state Bundles to the system OS for safe keeping for restoration later (after a config change or process death) but that one or more of the Bundles it sent were too large. There is a maximum limit of about 1MB for all such transactions occurring at once and that limit can be reached even if no single Bundle exceeds that limit.”

03-15 18:16:06.893 7922 7922 E AndroidRuntime: FATAL EXCEPTION: main 03-15 18:16:06.893 7922 7922 E AndroidRuntime: Process: net.frju.flym, PID: 7922 03-15 18:16:06.893 7922 7922 E AndroidRuntime: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1122660 bytes 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3810) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6186) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: Caused by: android.os.TransactionTooLargeException: data parcel size 1122660 bytes 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.os.BinderProxy.transact(Binder.java:617) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.app.ActivityManagerProxy.activityStopped(ActivityManagerNative.java:3636) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3802) 03-15 18:16:06.893 7922 7922 E AndroidRuntime: ... 7 more