Bug: android.os.TransactionTooLargeException

3,205 views
Skip to first unread message

Joram Teusink

unread,
Apr 23, 2013, 3:29:39 AM4/23/13
to phon...@googlegroups.com
Hi,
 
I (rarely though) get the bug below reported. I have read the Google info about it: http://developer.android.com/reference/android/os/TransactionTooLargeException.html
 
But I cannot see where this bug manifests itself. Do you have any clues? Does it have anything to do with the (JSON) data passed between PhoneGap and its plugins?
 
Thanks!
------
Bug:
android.os.TransactionTooLargeException in in android.os.BinderProxy.transact
 
java.lang.RuntimeException: Adding window failed
at android.view.ViewRootImpl.setView(ViewRootImpl.java:545)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:246)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.widget.Toast$TN.handleShow(Toast.java:402)
at android.widget.Toast$TN$1.run(Toast.java:310)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at android.view.IWindowSession$Stub$Proxy.addToDisplay(IWindowSession.java:664)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:534)
... 13 more

Simon MacDonald

unread,
Apr 23, 2013, 7:24:10 AM4/23/13
to phonegap

What are you doing when the exception is thrown? Are you trying to show a Toast window with a lot of data?

Simon

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Joram Teusink

unread,
Apr 23, 2013, 7:34:40 AM4/23/13
to phon...@googlegroups.com
Hi Simon, thanks for responding.
 
I got this error reported through Play Store and so far cannot reproduce it myself (growl for that, lol). You triggered me with the Toast part though.
Perhaps someone is spamming a button in the app and that maybe cause the error(?) (and I am gonna test this out).
 
The messages itself are very small. Stuff like "No internet connection detected" and "Setting wallpaper...". I follow Android design guidelines for that part, so large texts in toast are not userfriendly and therefore not done in my app.
 
Do you know if initiating a plugin to many times (and to fast) in a row (multiple toasts in this case) may cause such an error as below?

Op dinsdag 23 april 2013 13:24:10 UTC+2 schreef Simon het volgende:

Simon MacDonald

unread,
Apr 23, 2013, 7:39:22 AM4/23/13
to phonegap

I'm not familiar with this error but I can see a call to Toast in the stack.

Simon

Joram Teusink

unread,
Apr 24, 2013, 8:32:25 AM4/24/13
to phon...@googlegroups.com
I found this info on stackoverflow.comhttp://stackoverflow.com/questions/11451393/what-to-do-on-transactiontoolargeexception
It seems that probably someone was downloading/accessing files in my app like crazy :)

I double checked every stream, bitmap and file that was accessed and if it was properly closed or not. They all are. And nothing weird with notifications.

So, I will declare this bug as "only happens when the moon is full while drinking a mojito"-bug.

Thanks for your responses by the way.

Op dinsdag 23 april 2013 13:39:22 UTC+2 schreef Simon het volgende:
Reply all
Reply to author
Forward
0 new messages