Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pidcat sometimes can't parse adb output #41

Closed
paleozogt opened this issue Jan 2, 2014 · 4 comments · Fixed by #42
Closed

pidcat sometimes can't parse adb output #41

paleozogt opened this issue Jan 2, 2014 · 4 comments · Fixed by #42

Comments

@paleozogt
Copy link

Every now and then it seems that adb spits out a line that pidcat chokes on:

dalvikvm  D  Trying to load lib /data/app-lib/com.motorola.aon-1/libpartial_display.so 0x41fbba88
          D  Added shared lib /data/app-lib/com.motorola.aon-1/libpartial_display.so 0x41fbba88
Traceback (most recent call last):
  File "./pidcat.py", line 226, in <module>
    if LOG_LEVELS_MAP[level] < min_level:
KeyError: u'S'
@JakeWharton
Copy link
Owner

What phone?

@paleozogt
Copy link
Author

$ adb shell getprop ro.build.version.release 
4.4

$ adb shell cat /system/build.prop | grep "product"
ro.product.model=XT1058
ro.product.brand=motorola
ro.product.name=ghost_att
ro.product.device=ghost
ro.product.board=MSM8960
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=motorola
ro.product.locale.language=en
ro.product.locale.region=US
# ro.build.product is obsolete; use ro.product.device
ro.build.product=ghost
# Radio RIL properties applicable to all 8960 products
ro.product.display=Moto X

@JakeWharton
Copy link
Owner

Well, gross. I'll at least make it not crash.

@paleozogt
Copy link
Author

If it helps, I ran plain logcat in parallel with pidcat. Here're the lines that I think are messing it up:

D/dalvikvm(27706): Trying to load lib /data/app-lib/com.motorola.aon-1/libpartial_display.so 0x41edeb78
D/dalvikvm(27706): Added shared lib /data/app-lib/com.motorola.aon-1/libpartial_display.so 0x41edeb78
S/PartialDisplayLib(27706): Registering com/motorola/aon/jni/PartialDisplay natives
S/PartialDisplayLib(27706): nativeInit
E/QualcommCamera(  237): Qvoid android::disable_msg_type(camera_device*, int32_t): E

Somehow there's an S loglevel (?!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants