Questions tagged [logcat]

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logging information from Logcat is vital for diagnosing problems and debugging Android apps.

To retrieve information from logcat manually the Android Debug Bridge (ADB) command line tool is used. Alternatively Eclipse with Android Development Tools (ADT) plug-in provides a logcat view in most perspectives, automatically retrieving logging information.

Detailed information on the logcat command is available at the Android Developers documentation.

2313 questions
80
votes
9 answers

Why am I seeing EGL_emulation app_time_stats in the log when running on an Android 12 emulator?

When testing a Flutter app on an emulator running Android 12, I'm seeing lines like these in the logs at regular intervals (approximately every second): D/EGL_emulation(32175): app_time_stats: avg=312.93ms min=133.69ms max=608.57ms count=4 What do…
Magnus
  • 17,157
  • 19
  • 104
  • 189
80
votes
8 answers

LogCat is full of "input svInfo.flags is 8" while the app is running

When I run almost any app in Android Studio, my LogCat gets full of messages like: "? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 ? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8" What's this? Is there…
Alexandru Stroescu
  • 1,067
  • 1
  • 9
  • 16
77
votes
7 answers

How to filter out a tagname in Eclipse LogCat viewer

I have an Android application that "spams" the LogCat and I would like to remove its logcat entries in order to have an output more readable. Is it possible to have a filter that remove the LogCat entries for a specific tag name? Or a search pattern…
Jleuleu
  • 1,931
  • 1
  • 16
  • 13
70
votes
2 answers

Prevent Android logcat clear during app restart

I am using Android Studio 1.5.1 and it clears the logcat buffer during app restart. Now my app crashes, restarts and I don't see what happens just before the crash. Is there a way for logcat in Android Studio not to clear during the app restart? I…
jpou
  • 1,935
  • 2
  • 21
  • 30
70
votes
6 answers

Android Studio logcat history/buffer size

Does anyone know if there a way to increase the size of the logcat history/buffer in Android Studio? I remember there was a way to do it in Eclipse and was hoping Android Studio had a similar setting.
triad
  • 20,407
  • 13
  • 45
  • 50
68
votes
1 answer

How to get back logcat before dolphin version on android studio?

The logcat change on the version Android Studio Dolphin 2021.3.1 In my little screen this new logcat is not adapted at all. How can keep the old one ?
Feulgen
  • 2,486
  • 2
  • 8
  • 24
65
votes
3 answers

How to exclude Log Tag in logcat Android Studio?

I'm not sure if this kind of question been asked before (I did Google it but not found the proper way to solve my question). what I hope is I can disable (exclude) Log Tag from libraries used in my project. I tried to go in Logcat console > Edit…
myNameCoad
  • 2,583
  • 2
  • 12
  • 15
65
votes
7 answers

error opening trace file: No such file or directory (2)

I am getting the above error: error opening trace file: No such file or directory (2) when I run my android application on the emulator. Can someone tell me what could be the possible reason for this? I am using android-sdk-20 and below lines…
Ankit Jain
  • 2,230
  • 1
  • 18
  • 25
64
votes
3 answers

What do GC_FOR_MALLOC, GC_EXPLICIT, and other GC_* mean in Android Logcat?

If you see the Android logs, you may see a lot of those things. What do they mean, knowing those may help us doing better memory allocations. Example: 28470 dalvikvm D GC_FOR_MALLOC freed 665 objects / 239992 bytes in 71ms 28470 …
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
60
votes
10 answers

LogCat Stops Running in Eclipse Needs Restart

Periodically LogCat will stop showing messages even though I am in debug mode. At other times it will display only one line at a time! I have a solution, restart eclipse. But I would like to understand this better. It takes too much time to…
Androider
  • 21,125
  • 36
  • 99
  • 158
57
votes
8 answers

Disable LogCat Output COMPLETELY in release Android app?

Shutting off my own app's LogCat output before releasing an app to the market is straightforward. I also know how to selectively filter LogCat message by tag and/or id for my own debug convenience. But now I am interested in something that may be…
Android Eve
  • 14,864
  • 26
  • 71
  • 96
57
votes
1 answer

Android app crashes at start with "E/dex2oat: Failed to create oat file" and "non-0 exit status"

My app (still WIP) runs fine on different devices. But suddenly it refuses to start on Huawei Honor 7 (Android 6.0/EMUI 4.0.3). Logcat gives me the following: E/dex2oat: Failed to create oat…
knutella
  • 1,223
  • 2
  • 12
  • 12
53
votes
2 answers

Android Studio logger TextView TypeFace style 0

In my project, I receive the following in a logcat message, for each TextView in all views of my app: D/TextView: setTypeface with style : 0 The theme I used in styles.xml: