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.
Related
When I use targetSdk=25, this error is written to logcat:
Error waiting for future.
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException
at com.google.android.gms.ads.internal.util.future.ac.get(:com.google.android.gms#11951036:12)
at com.google.android.gms.ads.internal.util.future.g.a(:com.google.android.gms#11951036:12)
at com.google.android.gms.ads.internal.request.service.c.a(:com.google.android.gms#11951036:51)
at com.google.android.gms.ads.internal.request.service.c.a(:com.google.android.gms#11951036:182)
at com.google.android.gms.ads.internal.request.service.f.run(:com.google.android.gms#11951036:2)
at com.google.android.gms.ads.internal.util.x.call(:com.google.android.gms#11951036:2)
at com.google.android.gms.ads.internal.util.y.run(:com.google.android.gms#11951036:1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.util.concurrent.TimeoutException
at com.google.android.gms.ads.internal.util.future.k.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
... 3 more
With targetSdk=26 no error is written to Logcat.
Is it ok to use Admob v11.6.0 if targetSdk=25?
My facebook login application fails with the following runtime error:
07-31 12:47:10.195 1309-1316/com.android.quicksearchbox E/jdwp﹕ Failed writing handshake bytes: Broken pipe (-1 of 14)
07-31 12:47:11.004 1341-1358/com.example.apurva.myapplication E/ActivityThread﹕ Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
07-31 12:47:11.094 1341-1360/com.example.apurva.myapplication E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:278)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:781)
at com.facebook.internal.Utility.queryAppSettings(Utility.java:802)
at com.facebook.login.widget.LoginButton$1.doInBackground(LoginButton.java:502)
at com.facebook.login.widget.LoginButton$1.doInBackground(LoginButton.java:499)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
A few pointers on what I have done till now:
1)Followed all the requirements in Facebook's Getting Started post.
2)Added the meta-data to the XML.
3)Added the key-hash to facebook
If you see any particular files that might be causing the problem and want to see it before answering, do let me know.
I have two activities that both make different http requests to my server when started.
When I switch back and forth between them the responses start to have some delay because they get queued up on top of eachother.
I would like to empty and abort this connections and just keep the latest one.
I tried
httpClient.getConnectionManager().shutdown();
but it throws
05-14 08:20:51.137 12627-12997/com.tesis.restapp E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:278)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.IllegalStateException: Manager is shut down.
at org.apache.http.impl.conn.SingleClientConnManager.assertStillUp(SingleClientConnManager.java:175)
at org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:213)
at org.apache.http.impl.conn.SingleClientConnManager$1.getConnection(SingleClientConnManager.java:191)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:326)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:580)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:512)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:490)
at support.JSONParser.makeHttpRequest(JSONParser.java:96)
at fragments.MainFragment$FetchOrders.doInBackground(MainFragment.java:150)
at fragments.MainFragment$FetchOrders.doInBackground(MainFragment.java:129)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)...
Any other ideas? Thanks
Just cancelling the AsyncTask that carried out the HttpRequest did the trick!
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?
I have a number of smartwatch apps. They all behaive as expected for me but I am getting intermittent crash reports from ACRA in the smartwatch library code. No reference to anything in my code so I don't know if there is anything I can do about the issue.
Anyone from Sony got any ideas?
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:278)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.NullPointerException
at android.database.AbstractCursor.getColumnIndex(AbstractCursor.java:249)
at android.database.CursorWrapper.getColumnIndex(CursorWrapper.java:73)
at com.sonyericsson.extras.liveware.extension.util.e.a(SourceFile:263)
at com.sonyericsson.extras.liveware.extension.util.c.e.c(SourceFile:154)
at com.sonyericsson.extras.liveware.extension.util.c.e.b(SourceFile:116)
at com.sonyericsson.extras.liveware.extension.util.c.e.doInBackground(SourceFile:1)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 5 more
java.lang.NullPointerException
at android.database.AbstractCursor.getColumnIndex(AbstractCursor.java:249)
at android.database.CursorWrapper.getColumnIndex(CursorWrapper.java:73)
at com.sonyericsson.extras.liveware.extension.util.e.a(SourceFile:263)
at com.sonyericsson.extras.liveware.extension.util.c.e.c(SourceFile:154)
at com.sonyericsson.extras.liveware.extension.util.c.e.b(SourceFile:116)
at com.sonyericsson.extras.liveware.extension.util.c.e.doInBackground(SourceFile:1)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
I would post this as comment, but I don't have the reputation...
How many different phones are you testing with? Hopefully, you have a few, from few different makers (i.e. they're not only Samsung, for example). I've seen something similar happen to my apps running on a Sony phone, and not on an LG.