Android Question error with customlistview

Status
Not open for further replies.

Kiran Raotole

Active Member
Licensed User
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1176092 bytes

I got this is error on customlistview add
and there are only 515 records to load


Error log ::
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1176092 bytes
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3964)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:172)
at android.app.ActivityThread.main(ActivityThread.java:6590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.os.TransactionTooLargeException: data parcel size 1176092 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:764)
at android.app.IActivityManager$Stub$Proxy.activityStopped(IActivityManager.java:4623)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3948)
... 7 more
 
Last edited:

Kiran Raotole

Active Member
Licensed User
Unfilter log ::
Do partial code cache collection, code=30KB, data=25KB
After code cache collection, code=30KB, data=25KB
Increasing code cache capacity to 128KB
** Activity (main) Pause, UserClosed = false **
** Activity (all) Create, isFirst = true **
Class not found: b4a.example.customlistview, trying: ctron.m4741.customlistview
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 2 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 1 line
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
** Activity (all) Resume **
Do partial code cache collection, code=55KB, data=46KB
After code cache collection, code=49KB, data=41KB
Increasing code cache capacity to 256KB
** Activity (all) Pause, UserClosed = false **
** Activity (jsm) Create, isFirst = true **
Class not found: b4a.example.bcmd, trying: ctron.m4741.bcmd
uid=10211(ctron.m4741) identical 8 lines
Class not found: b4a.example.bcmd, trying: ctron.m4741.bcmd
** Activity (jsm) Resume **
** Activity (jsm) Pause, UserClosed = false **
** Activity (m4741) Create, isFirst = true **
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.customlistview, trying: ctron.m4741.customlistview
ignoring event: edittext_textchanged
uid=10211(ctron.m4741) identical 1 line
ignoring event: edittext_textchanged
515
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 92 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 203 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Do full code cache collection, code=118KB, data=90KB
After code cache collection, code=117KB, data=80KB
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 357 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Do partial code cache collection, code=119KB, data=82KB
After code cache collection, code=119KB, data=82KB
Increasing code cache capacity to 512KB
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 150 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 684 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 47 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 193 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Background concurrent copying GC freed 164534(9MB) AllocSpace objects, 0(0B) LOS objects, 50% free, 13MB/26MB, paused 104us total 127.343ms
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 453 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 92 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 193 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Background concurrent copying GC freed 190945(10MB) AllocSpace objects, 0(0B) LOS objects, 50% free, 17MB/35MB, paused 76us total 164.896ms
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 489 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 50 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 101 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 324 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Background concurrent copying GC freed 247463(14MB) AllocSpace objects, 0(0B) LOS objects, 50% free, 23MB/47MB, paused 152us total 201.008ms
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 272 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 247 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 541 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 232 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Background concurrent copying GC freed 325033(18MB) AllocSpace objects, 0(0B) LOS objects, 43% free, 31MB/55MB, paused 111us total 265.736ms
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 102 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 390 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 542 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
NativeAlloc concurrent copying GC freed 266666(15MB) AllocSpace objects, 0(0B) LOS objects, 38% free, 37MB/61MB, paused 87us total 322.618ms
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 179 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 12 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 700 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
Skipped 550 frames! The application may be doing too much work on its main thread.
Skipped 90 frames! The application may be doing too much work on its main thread.
Background concurrent copying GC freed 398392(19MB) AllocSpace objects, 0(0B) LOS objects, 36% free, 41MB/65MB, paused 95us total 452.718ms
** Activity (m4741) Resume **
Deoptimizing void anywheresoftware.b4a.BALayout.onMeasure(int, int) due to JIT inline cache
Deoptimizing void anywheresoftware.b4a.BALayout.onLayout(boolean, int, int, int, int) due to JIT inline cache
Deoptimizing void anywheresoftware.b4a.objects.B4XViewWrapper.SetLayoutAnimated(int, int, int, int, int) due to JIT inline cache
Deoptimizing void anywheresoftware.b4a.objects.ViewWrapper.fixAnchor(int, int, anywheresoftware.b4a.keywords.LayoutBuilder$ViewWrapperAndAnchor) due to JIT inline cache
-1
** Activity (m4741) Pause, UserClosed = false **
** Activity (m49112) Create, isFirst = true **
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 4 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
** Activity (m49112) Resume **
** Activity (m49112) Pause, UserClosed = false **
** Activity (m461) Create, isFirst = true **
Class not found: b4a.example.customlistview, trying: ctron.m4741.customlistview
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
uid=10211(ctron.m4741) identical 56 lines
Class not found: b4a.example.blabel, trying: ctron.m4741.blabel
** Activity (m461) Resume **
!!! FAILED BINDER TRANSACTION !!! (parcel size = 1176092)
Bundle stats:
android:viewHierarchyState
android:views
PersistableBundle stats:
[null]
Shutting down VM
FATAL EXCEPTION: main
Process: ctron.m4741, PID: 29224
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1176092 bytes
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3964)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:172)
at android.app.ActivityThread.main(ActivityThread.java:6590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.os.TransactionTooLargeException: data parcel size 1176092 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:764)
at android.app.IActivityManager$Stub$Proxy.activityStopped(IActivityManager.java:4623)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3948)
... 7 more
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1176092 bytes
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3964)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:172)
at android.app.ActivityThread.main(ActivityThread.java:6590)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.os.TransactionTooLargeException: data parcel size 1176092 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:764)
at android.app.IActivityManager$Stub$Proxy.activityStopped(IActivityManager.java:4623)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3948)
... 7 more
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
1. NO NEED to use such large fontsizes!
2. It is still not related to CLV.
3. The error seems to happen in a Transaction to the DB which exceeds the maximum size.
TransactionTooLargeException: data parcel size 1176092 bytes
 
Upvote 0

npsonic

Active Member
Licensed User
I'm sorry I dont know how the font get large.

What should I check in my DB?

You should do multiple queries to prevent exception "TransactionTooLargeException".
If you are getting data for your items in clv you may want to check if all that data is needed immediately or should you make more queries as some scrolls through list.
 
Upvote 0

npsonic

Active Member
Licensed User
It's just 515 record and 6 column.
It doesn't matter how many rows or columns your query contains.
You may have one text book worth of data in each field, so you will get exception "TransactionTooLargeException" with query of one row and 6 columns
or you could create query of million rows if fields contain just a few byte of data and still wouldn't get exception.

Exception you get is clear, your transaction is too large.
 
Upvote 0
Status
Not open for further replies.
Top