Application worked on this emulator, I have tried to implement Google Play Game services and it appears that this service can't connect. I have tried on multiple emulators. Now when I run the app all I get is the black screen.
Here is the Android Monitor:
09-18 13:11:28.507 1141-1141/? E/Drm: Failed to open plugin directory /vendor/lib/mediadrm
09-18 13:11:29.897 1963-8847/com.google.android.gms E/ChromeSync: [Sync,SyncAdapter] Failed to sync.
hlr: Error when calling the server (message: Application credential header not valid. Please fix the client to pass a valid application credential header.).
at hlt.b(:com.google.android.gms:11)
at hmd.c(:com.google.android.gms:1)
at hmh.b(:com.google.android.gms:61)
at hmf.a(:com.google.android.gms:12)
at jlo.onPerformSync(:com.google.android.gms:2)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
Caused by: aury: INVALID_ARGUMENT: Application credential header not valid. Please fix the client to pass a valid application credential header.
at auru.c(:com.google.android.gms:2)
at jgq.a(:com.google.android.gms:62)
at hlt.b(:com.google.android.gms:9)
at hmd.c(:com.google.android.gms:1)
at hmh.b(:com.google.android.gms:61)
at hmf.a(:com.google.android.gms:12)
at jlo.onPerformSync(:com.google.android.gms:2)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
09-18 13:11:41.977 8863-8863/? E/memtrack: Couldn't load memtrack module (No such file or directory)
09-18 13:11:41.977 8863-8863/? E/android.os.Debug: failed to load memtrack module: -2
09-18 13:11:42.887 1963-1972/com.google.android.gms E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:179)
at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:168)
at android.os.ParcelFileDescriptor.createPipe(ParcelFileDescriptor.java:362)
at com.google.android.gms.ads.internal.request.n.a(:com.google.android.gms:1)
at com.google.android.gms.ads.internal.request.n.writeToParcel(:com.google.android.gms:5)
at jdq.a(:com.google.android.gms:16)
at com.google.android.gms.ads.internal.request.d.writeToParcel(:com.google.android.gms:28)
at brr.a(:com.google.android.gms:6)
at com.google.android.gms.ads.internal.request.k.a(:com.google.android.gms:0)
at com.google.android.gms.ads.internal.request.service.i.run(:com.google.android.gms:7)
at com.google.android.gms.ads.internal.util.v.call(:com.google.android.gms:1)
at com.google.android.gms.ads.internal.util.w.run(:com.google.android.gms:0)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
09-18 13:11:42.957 1816-2482/com.google.process.gapps E/NetworkScheduler.SR: Unrecognised action provided: android.intent.action.PACKAGE_REMOVED
09-18 13:11:43.397 8903-8903/? E/memtrack: Couldn't load memtrack module (No such file or directory)
Also I tried to install signed apk to Emulator with adb install but the same problem appears.
Related
I have just published my Instant App (IA) to the production channel but experiencing issues with the "Try Now" functionality. The app downloads, attempts to open but then crashes with the below errors appearing in the logs. The default URL for the IA is brant.app/oceanlife/instant and following the download, navigating to this URL correctly loads the IA.
The experience from Try Now though appears broken...
2019-05-03 11:49:15.896 1146-3755/? E/ActivityManager: applyOptionsLocked: Unknown animationType=0
2019-05-03 11:49:15.904 20657-20806/? E/libc: Access denied finding property "vendor.debug.egl.profiler"
2019-05-03 11:49:16.025 20657-20831/? E/libc: Access denied finding property "ro.vendor.graphics.memory"
2019-05-03 11:49:16.044 20657-20831/? E/libc: Access denied finding property "vendor.gralloc.enable_ahardware_buffer"
2019-05-03 11:49:17.250 24917-20500/? E/ctxmgr: [AppIntervalImpl]closeInterval: ongoing [CONTEXT service_id=47 ]
com.android.volley.VolleyError: Unable to obtain auth token - is the device online?
at eme.a(:com.google.android.gms#16091037#16.0.91 (100400-244116403):31)
at eha.run(:com.google.android.gms#16091037#16.0.91 (100400-244116403):2)
at egy.handleMessage(:com.google.android.gms#16091037#16.0.91 (100400-244116403):3)
at rlu.run(:com.google.android.gms#16091037#16.0.91 (100400-244116403):8)
at rmf.b(:com.google.android.gms#16091037#16.0.91 (100400-244116403):32)
at rmf.run(:com.google.android.gms#16091037#16.0.91 (100400-244116403):18)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at rsc.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2019-05-03 11:49:18.061 862-21776/? E/installd: Failed to delete /data/app/vmdl2072380660.tmp: No such file or directory
2019-05-03 11:49:18.188 20847-20847/? E/com.oceanlife: Not starting debugger since process cannot load the jdwp agent.
2019-05-03 11:49:18.290 20847-20863/? E/libc: Access denied finding property "vendor.debug.egl.profiler"
2019-05-03 11:49:18.358 1991-2008/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
2019-05-03 11:49:18.358 12768-12780/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
2019-05-03 11:49:18.359 13290-13309/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
2019-05-03 11:49:18.360 28965-17990/? E/Icon: Unable to find pkg=com.oceanlife for icon Icon(typ=RESOURCE pkg=com.oceanlife id=0x7f070084)
android.content.pm.PackageManager$NameNotFoundException: com.oceanlife
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:395)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:377)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:345)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:313)
at android.service.notification.NotificationListenerService.createLegacyIconExtras(NotificationListenerService.java:1172)
at android.service.notification.NotificationListenerService.access$100(NotificationListenerService.java:94)
at android.service.notification.NotificationListenerService$NotificationListenerWrapper.onNotificationPosted(NotificationListenerService.java:1234)
at android.service.notification.INotificationListener$Stub.onTransact(INotificationListener.java:72)
at android.os.Binder.execTransact(Binder.java:731)
What could be the reason for "Try Now" not working?
The stacktraces posted are warnings happening outside the app, and shouldn't cause issues in the app itself. While the app isn't crashing, it appears to be just finishing itself.
Google Play may add some query parameters, particularly for instant apps. You may get an extra referrer query parameter that indicates where the user is coming from (Same format as the install referrer), which your parsing may not expect from instant app URLs.
I've been trying to integrate Facebook ads in my app for Android with the audience-network-sdk:5.0.0 and Facebook sdk crashed with this error:
10-16 13:12:07.128 25301-25725/? D/ProxyCache: Open connection to http://127.0.0.1:43557/ping
10-16 13:12:08.318 25301-25586/? E/ProxyCache: Error pinging server [attempt: 2, timeout: 1200].
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:176)
at com.facebook.ads.internal.r.b.f.b(Unknown Source)
at com.facebook.ads.internal.r.b.f.<init>(Unknown Source)
at com.facebook.ads.internal.r.b.f.<init>(Unknown Source)
at com.facebook.ads.internal.f.d$1.a(Unknown Source)
at com.facebook.ads.internal.f.d$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Shutdown server... Error pinging server [attempts: 3, max timeout: 1200].
10-16 13:12:08.318 25301-25586/? I/ProxyCache: Shutdown proxy server
10-16 13:12:08.328 25301-25602/? W/System.err: java.lang.InterruptedException
10-16 13:12:08.348 25301-25602/? W/System.err: at java.lang.Thread.sleep(Native Method)
at java.lang.Thread.sleep(Thread.java:1031)
at java.lang.Thread.sleep(Thread.java:985)
at com.splunk.mint.ExceptionHandler.uncaughtException(ExceptionHandler.java:64)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
10-16 13:12:08.348 25301-25602/? E/AndroidRuntime: FATAL EXCEPTION: Thread-12294
PID: 25301
java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.FileDescriptor.setInt$(int)' on a null object reference
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:93)
at java.net.ServerSocket.implAccept(ServerSocket.java:216)
at java.net.ServerSocket.accept(ServerSocket.java:140)
at com.facebook.ads.internal.r.b.f.e(Unknown Source)
at com.facebook.ads.internal.r.b.f.a(Unknown Source)
at com.facebook.ads.internal.r.b.f$e.run(Unknown Source)
at java.lang.Thread.run(Thread.java:818)
As you can see the trace just tell you that the ping (and the connection to local host) failed but it doesn't tell you more. I am not solving it because it only happens in physical device and only with my app (the example app from Facebook runs great in the same device and same network).
I don't know why is happening and how to fix it.
So I finally found the error and the solution.
Let me explain the error:
Facebook ads SDK uses localhost Proxy cache to download the assets of the ads
I also use Splunk Mint to track errors of my app in production.
Splunk Mint library has issues with the http monitoring:
Disable network monitoring
The solution was to add this line before init Mint SDK:
Mint.disableNetworkMonitoring();
I've been storing my project in DropBox to share across computers so I can work from my laptop upstairs. Everything worked fine on my PC, then I went and loaded the project on my laptop and it just crashed when I tried to run it so I gave up and came back to my PC, but now it isn't working there either. It was working fine, I didn't change anything about the code at all. but now I get the error below.
No matter how many gradle syncs and updates and everything that I try I can't figure out how to fix. In addition to fixing this, how am I supposed to work on the same project on multiple PC's without breaking everything?
I ran a Gradle Clean and Sync but it didn't seem to work that time either. Also I didn't even realize I was using AsyncTask, so I'll look at that.
Since I'm not sure exactly what the stack trace is, here's my whole LogCat :)
03-10 14:25:41.849 4830-4830/com.mydomain.myapp W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-10 14:25:41.960 4830-4830/com.mydomain.myapp I/TextInputLayout: EditText added is not a TextInputEditText. Please switch to using that class instead.
03-10 14:25:41.961 4830-4830/com.mydomain.myapp I/TextInputLayout: EditText added is not a TextInputEditText. Please switch to using that class instead.
03-10 14:25:41.966 4830-4870/com.mydomain.myapp V/FA: Using measurement service
03-10 14:25:41.966 4830-4870/com.mydomain.myapp V/FA: Connecting to remote service
03-10 14:25:41.967 4830-4870/com.mydomain.myapp V/FA: Activity resumed, time: 4313744
03-10 14:25:41.977 4830-5248/com.mydomain.myapp E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.mydomain.myapp, PID: 4830
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{36fd80a 4830:com.mydomain.myapp/u0a17} (pid=4830, uid=10017) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
at android.os.Parcel.readException(Parcel.java:1599)
at android.os.Parcel.readException(Parcel.java:1552)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3550)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:4778)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2018)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1468)
at android.content.ContentResolver.query(ContentResolver.java:475)
at android.content.CursorLoader.loadInBackground(CursorLoader.java:64)
at android.content.CursorLoader.loadInBackground(CursorLoader.java:56)
at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)
at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)
at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
03-10 14:25:41.980 4830-5250/com.mydomain.myapp D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 03-10 14:25:41.982 4830: 4830 D/ ]
HostConnection::get() New Host Connection established 0x7effab5dc260, tid 4830
03-10 14:25:42.283 4830-4830/com.mydomain.myapp D/MainActivity: onAuthStateChanged:signed_out
03-10 14:25:42.314 4830-5250/com.mydomain.myapp I/OpenGLRenderer: Initialized EGL, version 1.4
03-10 14:25:42.314 4830-5250/com.mydomain.myapp W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
03-10 14:25:42.434 4830-4870/com.mydomain.myapp V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 469
03-10 14:25:42.435 4830-4870/com.mydomain.myapp V/FA: Using measurement service
03-10 14:25:42.435 4830-4870/com.mydomain.myapp V/FA: Connection attempt already in progress
03-10 14:25:42.436 4830-4870/com.mydomain.myapp V/FA: Activity paused, time: 4314214
03-10 14:25:42.457 4830-4870/com.mydomain.myapp D/FA: Connected to remote service
03-10 14:25:42.457 4830-4870/com.mydomain.myapp V/FA: Processing queued up service tasks: 2
03-10 14:25:42.526 4830-4830/com.mydomain.myapp W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
03-10 14:25:42.640 4830-5250/com.mydomain.myapp E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7effa40972a0
First thing, on the original computer on which this project last worked, try a gradle 'clean' and then a build. If that doesn't work, it probably means that you changed the code since it last worked. Try to figure out what you changed, and undo that.
Second, AsyncTask is the source of a lot of headaches (and crashes), because it holds a reference to the Activity from which it was started, but is not part of the Activity's lifecycle, so can operate on the Activity after the Activity has been destroyed. My suggestion - don't use AsyncTask - regardless of what you are using it for, there is almost always a better way. Post your stacktrace here, and we might be able to help you figure out what the problem is.
As far as sharing code, use a version control system. GitHub is good, and it's free. Proper use of it would also let you easily roll your code back to the point where it last worked.
=====
Ok, so looking at the stacktrace that you posted from your logcat, we see:
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{36fd80a 4830:com.mydomain.myapp/u0a17} (pid=4830, uid=10017) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
So, it looks like you are attempting to access the ContactsProvider, but haven't put the READ_CONTACTS permission in your manifest.
Any help given at this stage will be appreciated, i have tried reading but now i am actually confused, The first time it was Calender i went and introduced an exception and that has gone away now i see it is mms How can i deal with this? any advice?
1895-1904/com.android.mms E/StrictMode﹕ A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'release' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at android.drm.DrmManagerClient.<init>(DrmManagerClient.java:258)
at com.google.android.mms.pdu.PduPersister.<init>(PduPersister.java:288)
at com.google.android.mms.pdu.PduPersister.getPduPersister(PduPersister.java:299)
at com.android.mms.transaction.TransactionService.onNewIntent(TransactionService.java:231)
at com.android.mms.transaction.TransactionService$ServiceHandler.handleMessage(TransactionService.java:633)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
1989-2046/com.android.email E/EmailServiceProxy﹕ RuntimeException when trying to unbind from service
java.lang.IllegalArgumentException: Service not registered: com.android.emailcommon.service.ServiceProxy$ProxyConnection#1d27587c
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1029)
at android.app.ContextImpl.unbindService(ContextImpl.java:1808)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:551)
at com.android.emailcommon.service.ServiceProxy$ProxyConnection$1.doInBackground(ServiceProxy.java:124)
at com.android.emailcommon.service.ServiceProxy$ProxyConnection$1.doInBackground(ServiceProxy.java:111)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
If you are building a custom ROM and are modifying the com.android.mms and com.android.email apps, then perhaps these are your issues.
Otherwise, they are issues for the developers of the com.android.mms and com.android.email apps.
I am debugging using an actual phone, and sometimes I am inspecting the contents of an Intent (which naturally arrives on the main thread) in the debugger. However, since I am blocking the main thread, the system throws an ANR. Afterwards, the app crashes and I see this in LogCat:
Here is the exception:
07-25 12:25:32.058 673-15203/system_process E/ActivityManager﹕ Error reading /data/anr/traces.txt
java.io.FileNotFoundException: /data/anr/traces.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:409)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at android.os.FileUtils.readTextFile(FileUtils.java:159)
at com.android.server.am.ActivityManagerService$15.run(ActivityManagerService.java:8926)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:393)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at android.os.FileUtils.readTextFile(FileUtils.java:159)
at com.android.server.am.ActivityManagerService$15.run(ActivityManagerService.java:8926)
Terminal shows that the file is actually not there. If I try and create it myself, it just gets deleted and the exception is still thrown. There is actually a different file: traces_com.foo.bar.txt. Maybe it is supposed to be looking for that, but isnt for some reason?