FolioReader-Android icon indicating copy to clipboard operation
FolioReader-Android copied to clipboard

Showing error when going to ContentHighlightActivity?

Open akbarasif43 opened this issue 9 years ago • 7 comments

FAILED BINDER TRANSACTION !!! (parcel size = 3493604)

java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 3493604 bytes at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3781) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused by: android.os.TransactionTooLargeException: data parcel size 3493604 bytes at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:615) at android.app.ActivityManagerProxy.activityStopped(ActivityManagerNative.java:3636) at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3773) at android.os.Handler.handleCallback(Handler.java:751)  at android.os.Handler.dispatchMessage(Handler.java:95)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6119)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 

akbarasif43 avatar Dec 30 '16 10:12 akbarasif43

@akbarasif43 is it possible for you to share epub file?

mahavir155 avatar Jan 02 '17 10:01 mahavir155

The error is happening only on Android Nougat. After debugging I found that in Nougat when we pass object with intent and if the object is big enough it shows this kind of problem. Here, the library passing entire book object with intent to ContentHighLlight Activity. So inside this activity when it is trying to get the object from intent application is crashing. So I am assuming that to solve this bug may be we need to change the data passing.

akbarasif43 avatar Jan 02 '17 11:01 akbarasif43

yes, we understood that.. so, we are passing only the objects which is needed in Book class.. Probably it have more resources.. How big is your eBook? any idea on number of chapters? is it audio book?

mahavir155 avatar Jan 02 '17 11:01 mahavir155

The size of the book is not big. It is only 847KB. Again it has 10 chapters.

akbarasif43 avatar Jan 02 '17 11:01 akbarasif43

i had the same problem with epubs with many chapters, but not only with the API 24, also with 23 and i solved it but the fix not works with Nougat. Did you find a solution?

leon-alan avatar Mar 14 '17 18:03 leon-alan

hello, the issue still percist. any solution?

voipworld avatar Jun 14 '20 22:06 voipworld

latest git commit still have android.os.TransactionTooLargeException: ... please any help? cant start TOC.

voipworld avatar Jul 04 '20 20:07 voipworld