Status Update
Comments
ko...@google.com <ko...@google.com>
sp...@google.com <sp...@google.com>
aa...@google.com <aa...@google.com> #2
This was fixed in ag/21945742
Unfortunately, the bug made it into Canary 9 but the fix did not.
ti...@gmail.com <ti...@gmail.com> #3
aa...@google.com <aa...@google.com> #4
Yeah, turns out it wasn't fix after all.
br...@gmail.com <br...@gmail.com> #5
Having the same issue in Giraffe | 2022.3.1 Canary 10. The process ID is shown in Logcat instead of the app's package name, see attachment.
co...@gmail.com <co...@gmail.com> #7
mu...@gmail.com <mu...@gmail.com> #8
Can we have the option to switch back to old logcat? At least until the new logcat becomes stable? Whenever I try the new logcat, it breaks one way or another. Now just because of this logcat issue, I can't use Giraffee at all.
aa...@google.com <aa...@google.com> #9
Confirmed that issue is fixed in Canary 11
va...@gmail.com <va...@gmail.com> #10
sp...@google.com <sp...@google.com>
aa...@google.com <aa...@google.com> #11
varun7952, can you clarify your comment about Canary 11?
Are you saying the issue is not fixed for you on Canary 11?
fu...@gmail.com <fu...@gmail.com> #12
It is fixed. Can confirm
sp...@google.com <sp...@google.com>
co...@gmail.com <co...@gmail.com> #13
a....@elsevier.com <a....@elsevier.com> #14
i use
it shows when updates are available and installs them for you
co...@gmail.com <co...@gmail.com> #15
bk...@gmail.com <bk...@gmail.com> #16
[Deleted User] <[Deleted User]> #17
sp...@google.com <sp...@google.com> #18
Re #17
What exactly doesn't work for you?
ka...@gmail.com <ka...@gmail.com> #19
aa...@google.com <aa...@google.com> #20
We don't show the process name, but you can filter by process name with process:name
de...@gmail.com <de...@gmail.com> #21
aa...@google.com <aa...@google.com> #22
deshmukhyaaryan,
Please explain what is missing in the new Logcat that was available with the old one.
ka...@gmail.com <ka...@gmail.com> #23
I know I can filter by process name with process:name
. But, I need the process name to be displayed in the logcat window to observe multi-process behavior. Old version logcat is nice and new version loses process name, only package name.
ka...@gmail.com <ka...@gmail.com> #24
I upgraded to Canary, but ended up going back to Flamingo because of logcat. I won't update anything until I can see the process name in logcat
ka...@gmail.com <ka...@gmail.com> #25
I can filter main-process by process name with process:xxx.yyy
, but I can't filter sub-process by process name with process:xxx.yyy:zzz
.
sp...@google.com <sp...@google.com> #26
Try process~:xxx.yyy.zzz
.
ka...@gmail.com <ka...@gmail.com> #27
process~:xxx.yyy.zzz
seems working. But process:xxx.yyy:zzz
worked in the previous version.
aa...@google.com <aa...@google.com> #28
IIRC, the old Logcat also displayed the package name only, not the process name. Note that for most cases, they are the same. That's the reason we didn't add the process name to the display.
I can definitely add it as an option.
I filed
aa...@google.com <aa...@google.com> #29
aa...@google.com <aa...@google.com> #30
I added an option process name column. Should be available on the next canary
ub...@gmail.com <ub...@gmail.com> #31
com.example:myotherprocess
). For the last 6 years at least.
aa...@google.com <aa...@google.com> #32
I'm not sure what you are referring to. I just confirmed that old Logcat does not display the process name:
I created a test app with an activity and a service:
<activity
android:name=".MainActivity"
android:process=":activity"
</activity>
<service
android:name=".MyService"
android:process=":service" />
And logged from both MainActivity
and MyService
. Here's what Logcat looks like:
2023-10-23 07:19:29.458 31234-31234/com.dolphin.app I/FooBar: From Activity
2023-10-23 07:19:29.693 31261-31261/com.dolphin.app I/FooBar: From Service
Note that pid is different (31234 vs 31261) but only the package name is displayed. com.dolphin.app
.
Note that while the log doesn't show the process name, it does show up in the process filter dropdown.
See screenshot.
Is that what you meant?
ub...@gmail.com <ub...@gmail.com> #33
Not the process filter dropdown. I must have had a mysteriously advanced setup. I don't have my old dev environment anymore, can't say how it worked.
ka...@gmail.com <ka...@gmail.com> #34
1.png
and 2.png
filter process:xxx.yyy
. Hedgehog not display subprocess name. Show only xxx.yyy
, not xxx.yyy:zzz
3.png
and 4.png
filter process:xxx.yyy:zzz
. Hedgehog is empty.
Focus on the difference between the Flamingo and Hedgehog
Android Studio Version:
Android Studio Flamingo | 2022.2.1 Patch 1 Build #AI-222.4459.24.2221.9971841, built on April 20, 2023
Android Studio Hedgehog | 2023.1.1 Beta 1 Build #AI-231.9392.1.2311.10680768, built on August 19, 2023
ka...@gmail.com <ka...@gmail.com> #35
5.png
is my logcat setting
aa...@google.com <aa...@google.com> #36
In screenshots 1 & 2, you are seeing the same log 3 entries.
1.png
:
11:00:37.706 12086-28358 WXMPP-IPCServer com.tencent.mm I IPCServer listening on port:49888
11:00:42.631 28615-28719 WXMPP-IPCClient com.tencent.mm:appbrand1 I IPCClient connected on port:49888
11:00:43.058 28658-28741 WXMPP-IPCClient com.tencent.mm:appbrand0 I IPCClient connected on port:49888
2.png
:
2023-10-25 11:00:37.706 12086-28358 WXMPP-IPCServer com.tencent.mm I IPCServer listening on port:49888
2023-10-25 11:00:42.631 28615-28719 WXMPP-IPCClient com.tencent.mm I IPCClient connected on port:49888
2023-10-25 11:00:43.058 28658-28741 WXMPP-IPCClient com.tencent.mm I IPCClient connected on port:49888
The only differences are:
- In image 1, the date is not shown while in image 2 it is.
- In image 1, we display the process name while in image 2 we display the package name.
The intended behavior is to display the package name if it is known, else display the process name. I believe we had a bug in F where we didn't do that correctly.
As mentioned, I already added a another column to the display that will always show the process name.
As for process:xxx.yyy:zzz
, that doesn't work because the extra :
doesn't parse. Please try process:"xxx.yyy:zzz"
vi...@gmail.com <vi...@gmail.com> #37
Nice design but that is it, usability is not good.
aa...@google.com <aa...@google.com> #38
you can still use a simple regex with the new logcat. Just use something like line~:foo.*bar
Description
STEPS TO REPRODUCE:
1. deploy any android application from Android Studio Giraffe | 2022.3.1 Canary 9
2. open logcat window in android studio with filter of package:mine (or any package variant)
3.the logcat window is empty
the only way to see logs from your deployed application is to remove all filters for logcat
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build:
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS: