Skip to content

AttributeError: 'NoneType' object has no attribute 'group' #165

@erikhuizinga

Description

@erikhuizinga

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.

  1. With 2 Android emulators running
  2. And an app running
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions