When I run pidcat, I sometimes run into the following issue. Reconnecting my Android devices to my computer or killing the ADB server then helps resolve the issue. However, today I couldn't get pidcat to work at all.
- With 2 Android emulators running
- And an app running
- In bash:
$ pidcat --current -s emulator-5554
Traceback (most recent call last):
File "/usr/local/bin/pidcat", line 66, in <module>
running_package_name = re.search(".*TaskRecord.*A[= ]([^ ^}]*)", system_dump).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
$ pidcat --version
pidcat 2.1.0
Pidcat was installed through Homebrew. My ADB version:
$ adb version
Android Debug Bridge version 1.0.41
Version 30.0.0-6374843
Installed as /usr/local/bin/adb
ADB was installed through Homebrew as well (cask android-platform-tools).
This is just a thought: maybe adb was recently updated to version 30 and this is related to the issue.