JakeWharton / JakeWharton/pidcat
AttributeError: 'NoneType' object has no attribute 'group'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5k
- Forks
- 517
- PR merge metrics
- No merged PRs in 30d
Description
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
1. And an app running
1. In bash:
```
$ pidcat --current -s emulator-5554
Traceback (most recent call last):
File "/usr/local/bin/pidcat", line 66, in
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing `pidcat --current -s emulator-5554` with two Android emulators and an app running, then inspect the pidcat entry point at line 66 where the traceback occurs. Done means the command no longer crashes when the reported system dump does not match the expected pattern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100