Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio logcat drops date, process info

After a recent Android Studio update (currently I'm running 3.1.2), logcat started intermittently dropping the time stamp and PID info.

05-01 13:26:03.962 12909-12909/com.perinote.perinote D/Perinote: SG(BI) Intercept DOWN, state NONE
    SG(BI) long timer started 1525206363962, for 500, to 1525206364462
05-01 13:26:03.965 12909-12909/com.perinote.perinote D/Perinote: SG(BI) DOWN, state ONE
05-01 13:26:04.008 12909-12909/com.perinote.perinote D/Perinote: SG(PF) Intercept UP, state ONE
    SG(PF) long timer cancelled
05-01 13:26:04.010 12909-12909/com.perinote.perinote D/Perinote: SG(BI) UP, state ONE
    SG(BI) long timer cancelled
    SG(BI) double timer started
05-01 13:26:04.011 12909-12909/com.perinote.perinote D/Perinote: SG(BI) UP, ret true
05-01 13:26:04.310 12909-12909/com.perinote.perinote D/Perinote: SG(BI) double timer done
    SG(BI) SINGLE_TAP 578,82
    BI single tap
    BL onNav
05-01 13:26:04.313 12909-12909/com.perinote.perinote D/Perinote: CF add: parent 7, child 23
    BTBP animateOpenChild: 1
05-01 13:26:04.338 12909-12909/com.perinote.perinote D/Perinote: IVH onDraw: tag 0, LOADED, IMG_20171007_181223.jpg

For example, on the 2nd line, you can see the same prefix SG(BI) but the preceding timestamp and process info is missing. Any ideas on why this is happening?

If I run logcat in a process window, this doesn't happen - all lines have the correct prefix info.

like image 507
Peri Hartman Avatar asked May 01 '18 20:05

Peri Hartman


People also ask

Why is my Logcat not showing anything in Android?

Solution 1: Restarting your Android StudioIn your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.

How do I stop Logcat from clearing?

Prevent clearing the log when the app crashes By default when the app got crashed the logcat clear's in the android studio. To prevent this, click the right end chooser(Filter Configuration chooser) in the logcat tab then select Edit Filter Configuration option and enter current app name and package name.

Why is my Logcat empty Android Studio?

Go to the File option > click on “INVALIDATE CACHES/RESTART” then a dialog box will pop up, Select the “INVALIDATE CACHES/RESTART” button. This will automatically restart and build the index of android studio.

Can not find Logcat in Android Studio?

Go to Project Structure -> Facets -> “+” -> Android -> Select Project Logcat should now be visible.


1 Answers

it's not intentional, bug has been fixed in 3.2

This change in behavior was inadvertent and I reverted it. The fix will go out in 3.2 - issuetracker.google.com

update android studio to 3.2 build 15 in the canary channel or wait for it to drop on the stable channel

like image 199
derfect Avatar answered Dec 28 '22 21:12

derfect