80

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 they mean, and how do I turn them off? I've never seen them on Android 11 emulators, so I'm guessing it has something to do with Android 12?

Magnus
  • 17,157
  • 19
  • 104
  • 189
  • 4
    Any solutions to this? I tried using Android 12 on my new Apple Silicon Mac, and I ma seeing these too. – imperial-lord Jan 20 '22 at 14:21
  • Did you solve this? I see this since the update now in my `RUN` console window, so the other answers suggesting to edit the `LogCat` window don't really apply unfortunately – Jammo May 23 '22 at 20:57

9 Answers9

60
  • Right click on D/EGL_emulation ... in your RUN console window
  • Click "Fold Lines Like This"
  • Edit the filter that's just been added to only contain D/EGL_emulation.
  • All these lines will be removed from the RUN console window now
Jammo
  • 1,838
  • 4
  • 25
  • 39
23

Just click on this line then it will be filtered

enter image description here

Gk Mohammad Emon
  • 6,084
  • 3
  • 42
  • 42
20

All these EGL_emulation messages are very annoying, indeed. My solution so far is to create a custom logcat filter.

You can open the logcat filter configuration by clicking on the drop-down far right of the logcat-toolbar and select Edit Filter Configuration. You have to set two regular expressions:

  • ^(?!(EGL_emulation)) in the Log Tag field filters all messages with the "EGL_emulation" tag.

  • ^(?!(\?)) in the Package Name field filters all messages from apps without debug information. This is not as good as the Show only selected application filter, but the closest thing to a similar behavior so far.

Here is also a screenshot of my config, just in case the text is unclear:

Logcat filter

However, I really hope this problem is fixed upstream as soon as possible ;)

Torben
  • 6,317
  • 1
  • 33
  • 32
  • This answer works, but the fact that it is a filter that you have to use instead of "show only selected application" and you have to manage it yourself now - its not great. The annoyance of using @Jammo's answer and still getting "XX internal lines" at the end of every other log message - is still better. – Guss Sep 05 '22 at 16:15
  • Thanks for this, driving me crazy as well. Android studio & XCode both feel like relics from 1999 vs a modern terminal+vscode workflow. I've looked really hard but can't find the drop-down. There's one by the top logcat tabs but it only has Show Toolbar, View mode, etc. There's a - button next to it that minimzes the toolbar. Below that I can favorite my quick filters, but again no configuration is available... – Kevin Mar 01 '23 at 23:57
15

These are messages from the Android emulator and can be helpful in some situations. I would suggest only filtering out the Debug messages, and not the Warning or Error messages as those may be useful.

Prefix:

  • D/ - Debug
  • W/ - Warning
  • E/ - Error

For Android Studio Logcat logs:

  • Use the method recommended in Torben's answer in logcat but modify to ^(?!(D/EGL_emulation)) so that Warnings and Errors will still show.

For VSCode Debug Console logs:

  • Simply use a Filter exclusion string as !D/EGL_emulation.
Greg Fay
  • 407
  • 5
  • 6
11

In Android Studio Electric Eel add -tag:EGL_emulation in the filter line like this:

filter line

georgij
  • 2,054
  • 4
  • 27
  • 43
8

In VSCode, with the debug console tab open, go to the filter (bottom right side) and set the following: !D/EGL_emulation

enter image description here

Renato Leal
  • 181
  • 2
  • 4
1

On the newer Android Studio[Giraffe], now you can right-click on the line and select "Ignore Tag " which will hide it from the logcat.

enter image description here

tashi
  • 782
  • 6
  • 5
0

This is showing how many times your screen is rebuilding.

0

I was having difficult understanding how to use the new LogCat and filters in Electric Eel and here is how I got rid of the EGL_Emulation lines:

I needed tags with Crypton or (|) MainActivity | package:mine and (&) not (!) egl_emulation:

tag:Crypton | tag:MainActivity | package:mine & !EGL_emulation

This works great and shows you how to have multiple tags and how to use logical conditions.

Here's what it looks like in AndroidStudio AndroidStudio logcat filter

raddevus
  • 8,142
  • 7
  • 66
  • 87