Android Question java.lang.RuntimeException: android.os.TransactionTooLargeException

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello team,

I get this error in Release mode after closing my app:
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
*** mainpage: B4XPage_Appear 
** Activity (main) Resume **
*** mainpage: B4XPage_PermissionResult [mainpage]
TokenTime: 5
Notification granted
*** Receiver (httputils2service) Receive (first time) ***
*** Receiver (httputils2service) Receive  ***
Websocket connected!
Token updated!
*** Receiver (firebasemessaging) Receive (first time) ***
Timeline count = 0
Workouts count = 0
My profile log count = 1
*** mainpage: B4XPage_CloseRequest [mainpage]
*** mainpage: B4XPage_Disappear [mainpage]
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
Websocket disconnected: null
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 638324 bytes
Bundle stats:
  android:viewHierarchyState [size=637860]
    android:views [size=637596]
PersistableBundle stats:
  [null]
    at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:165)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7918)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: android.os.TransactionTooLargeException: data parcel size 638324 bytes
    at android.os.BinderProxy.transactNative(Native Method)
    at android.os.BinderProxy.transact(BinderProxy.java:584)
    at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1316)
    at android.app.ActivityClient.activityStopped(ActivityClient.java:95)
    at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:154)
    ... 8 more

I am using B4XPages. I saw couple of posts about TransactionTooLargeException but nothing helped me fixing this. I think, my error is somehow different. I am using jRDC2 server to communicate with my sql database.

B4X:
Private Sub B4XPage_CloseRequest As ResumableSub
    wsh.Close
    Return True
End Sub
 
Last edited:
Top