Android TransactionTooLargeException in crash reports - android

We are using Crittercism (https://www.crittercism.com/) and are getting a few crash reports on both the Verizon Galaxy S3 and Sprint Galaxy S3 with the following stack trace:
0 java.lang.RuntimeException: Adding window failed
1 at android.view.ViewRootImpl.setView(ViewRootImpl.java:681)
2 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:345)
3 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224)
4 at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149)
5 at android.view.Window$LocalWindowManager.addView(Window.java:552)
6 at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2702)
7 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2140)
8 at android.app.ActivityThread.access$700(ActivityThread.java:143)
9 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
10 at android.os.Handler.dispatchMessage(Handler.java:99)
11 at android.os.Looper.loop(Looper.java:137)
12 at android.app.ActivityThread.main(ActivityThread.java:4950)
13 at java.lang.reflect.Method.invokeNative(Native Method)
14 at java.lang.reflect.Method.invoke(Method.java:511)
15 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
16 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
17 at dalvik.system.NativeStart.main(Native Method)
18 Caused by: android.os.TransactionTooLargeException
19 at android.os.BinderProxy.transact(Native Method)
20 at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:545)
21 at android.view.ViewRootImpl.setView(ViewRootImpl.java:670)
22 ... 16 more
23 android.os.TransactionTooLargeException
24 at android.os.BinderProxy.transact(Native Method)
25 at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:545)
26 at android.view.ViewRootImpl.setView(ViewRootImpl.java:670)
27 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:345)
28 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224)
29 at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149)
30 at android.view.Window$LocalWindowManager.addView(Window.java:552)
31 at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2702)
32 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2140)
33 at android.app.ActivityThread.access$700(ActivityThread.java:143)
34 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
35 at android.os.Handler.dispatchMessage(Handler.java:99)
36 at android.os.Looper.loop(Looper.java:137)
37 at android.app.ActivityThread.main(ActivityThread.java:4950)
38 at java.lang.reflect.Method.invokeNative(Native Method)
39 at java.lang.reflect.Method.invoke(Method.java:511)
40 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
41 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
42 at dalvik.system.NativeStart.main(Native Method)
The only part where it traces back to our code is on the query.find() line for a Parse.com query that looks like:
ParseQuery<ParseObject> query = new ParseQuery<ParseObject>(
"CustomTab");
query.setCachePolicy(ParseQuery.CachePolicy.NETWORK_ELSE_CACHE);
List<ParseObject> list = null;
ParseObject object = null;
try {
list = query.find();
} catch (ParseException e) {
e.printStackTrace();
}
Anyone have any ideas? Is this maybe something else on the Galaxy S3 that is being picked up unrelated to my app?

Related

Crashlytics NoClassDefFoundError: com.crashlytics.android.answers.Answers

I get a project from other developer to fix minor issues in app, when I'm running my app on device I'm getting an error:
15142-15142/com.etripconcept E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.crashlytics.android.answers.Answers
at com.crashlytics.android.Crashlytics.<init>(Crashlytics.java:224)
at com.crashlytics.android.Crashlytics.<init>(Crashlytics.java:207)
at com.crashlytics.android.Crashlytics.<init>(Crashlytics.java:202)
at com.etripconcept.SplashScreenActivity.onCreate(SplashScreenActivity.java:16)
at android.app.Activity.performCreate(Activity.java:5163)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)
at android.app.ActivityThread.access$600(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4895)
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:994)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
at dalvik.system.NativeStart.main(Native Method)
I'm new in Android development, so it may be stupid question, but Google doesn't say anything about it. I use Android Studio 1.2.2 on Win 8.1

ArrayIndexOutOfBoundsException in android.view.WindowManagerGlobal

I have received this error in my remote app crash reporter:
java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
at android.view.WindowManagerGlobal.closeAll(WindowManagerGlobal.java:325)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3590)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3756)
at android.app.ActivityThread.access$800(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1286)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5279)
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:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Is this a known bug in Android? I have no more information about the crash. Do you have any idea about what can I do to get the cause?
Array index start at 0
you have to subsract 1

UrbanAirship crashing Android app

I am using UrbanAirship for Push Notifications in my app. But once in a while my app is crashing with android.os.RemoteException .
Reason:An error occured while executing doInBackground()
Stack Trace
0 java.lang.RuntimeException: An error occured while executing doInBackground()
1 at android.os.AsyncTask$3.done(AsyncTask.java:278)
2 at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
3 at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
4 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
5 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
8 at java.lang.Thread.run(Thread.java:856)
9 Caused by: java.lang.RuntimeException: Package manager has died
10 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:258)
11 at com.urbanairship.analytics.EventService.startService(Unknown Source)
12 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
13 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
14 at android.os.AsyncTask$2.call(AsyncTask.java:264)
15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
16 ... 4 more
17 Caused by: android.os.RemoteException: Unknown binder error code. 0xfffffff7
18 at android.os.BinderProxy.transact(Native Method)
19 at android.content.pm.IPackageManager$Stub$Proxy.getServiceInfo(IPackageManager.java:1617)
20 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:253)
21 ... 9 more
22 java.lang.RuntimeException: Package manager has died
23 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:258)
24 at com.urbanairship.analytics.EventService.startService(Unknown Source)
25 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
26 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
27 at android.os.AsyncTask$2.call(AsyncTask.java:264)
28 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
29 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
30 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
31 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
32 at java.lang.Thread.run(Thread.java:856)
33 Caused by: android.os.RemoteException: Unknown binder error code. 0xfffffff7
34 at android.os.BinderProxy.transact(Native Method)
35 at android.content.pm.IPackageManager$Stub$Proxy.getServiceInfo(IPackageManager.java:1617)
36 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:253)
37 ... 9 more
38 android.os.RemoteException: Unknown binder error code. 0xfffffff7
39 at android.os.BinderProxy.transact(Native Method)
40 at android.content.pm.IPackageManager$Stub$Proxy.getServiceInfo(IPackageManager.java:1617)
41 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:253)
42 at com.urbanairship.analytics.EventService.startService(Unknown Source)
43 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
44 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
45 at android.os.AsyncTask$2.call(AsyncTask.java:264)
46 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
47 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
48 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
49 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
50 at java.lang.Thread.run(Thread.java:856)
How do I fix this issue?
The app is crashing because of the the default value of "Binder". When you transact large object and use service by "bind service" frequently, the problem will occur.

Unable to start activity On Sony Experia S

I recently published my app to the android play store.
I see a whole lot of error logs from one device in particular. It's a Sony Experia S.
I contacted the owner of the device, and he says he has the latest version of android ( don't know the exact version ).
I heard from a colluege developer that there are more known issieus with sony devices and android.
This app in particular works with fragments... Don't know if this is the problem but... Maybe the sony's don't know how to cope with them.
Does anyone have an idea what this problem could be.
Error logs looks like:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crosscommunications.kvodeventer/com.crosscommunications.kvodeventer.KVODeventerActivity}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crosscommunications.kvodeventer/com.crosscommunications.kvodeventer.TabControllerHome}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
at android.app.ActivityThread.access$600(ActivityThread.java:127)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4511)
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:980)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.crosscommunications.kvodeventer/com.crosscommunications.kvodeventer.TabControllerHome}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)
at android.app.ActivityThread.startActivityNow(ActivityThread.java:1808)
at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135)
at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347)
at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:682)
at android.widget.TabHost.setCurrentTab(TabHost.java:346)
at android.widget.TabHost.addTab(TabHost.java:236)
at com.crosscommunications.kvodeventer.KVODeventerActivity.onCreate(KVODeventerActivity.java:27)
at android.app.Activity.performCreate(Activity.java:4470)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
... 11 more
Caused by: java.lang.NullPointerException
at com.crosscommunications.kvodeventer.KVOHome.onCreateView(KVOHome.java:52)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:870)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1080)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:622)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1416)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:505)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1136)
at android.app.Activity.performStart(Activity.java:4480)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1940)
... 21 more
Thnx
Just put a null check to your code:
KVOHome Acvitivity, line 52.
at com.crosscommunications.kvodeventer.KVOHome.onCreateView(KVOHome.java:52)
Most probably, Sony sends a null value to your code.

Exception in ActivityThread.setupGraphicsSupport()

I got the exception message from user.
java.lang.NullPointerException
at android.app.ActivityThread.setupGraphicsSupport(ActivityThread.java:3738)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3808)
at android.app.ActivityThread.access$1300(ActivityThread.java:127)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1197)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4507)
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:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method)
He uses samsung galaxy S2 (ICS 4.0.3 with tegrak kernel and ADW launcher ex)
It's difficult to find what's the problem with this exception log.
Can anybody suggest a starting point to find why this exception raised.
Thanks.

Categories

Resources