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

No new logs are output when app is reinstalled #84

Open
johnjohndoe opened this issue Jan 28, 2015 · 6 comments
Open

No new logs are output when app is reinstalled #84

johnjohndoe opened this issue Jan 28, 2015 · 6 comments

Comments

@johnjohndoe
Copy link

I noticed that pidcat does not show any new output when I rebuild the application from Android Studio and reinstall it onto the connected device. I then have to quit and restart pidcat. This will show me the latest logs.

I remember that this reconnect was not needed earlier. Can someone confirm or explain this phenomenon?

@JakeWharton
Copy link
Owner

I don't see this behavior. Do you see the read process death line in pidcat still? Please paste the line from logcat where the new process is being started.

@johnjohndoe
Copy link
Author

I just realized this is not happening on all computers I work with. I will check in a few hours on the particular machine and check if it is happening with a particular app only.

@johnjohndoe
Copy link
Author

I was able to reproduce the behavior with another application. So I ran python pidcat.py with or without a package specifier (no difference). The first time all debug output from the applications appears. When I rebuild the application with Android Studio while letting pidcat run there is no output anymore when the application starts up again.

When I re-install the same .apk via adb the log output works again. So it seems to be specific to Android Studio. I use the latest version which dates to 1.1 Preview 2 as of today.

@johnjohndoe
Copy link
Author

What exactly do you mean by "read process death line"?

@thorinii
Copy link

Are you sure Android Studio logcat is not enabled? Normally, when you install an app from AS it opens the Android/logcat tab. It tends to steal logs from other logcat processes (here pidcat) when active.

EDIT: I can confirm this happens with Android Studio even with logcat off. It also happens whenever I execute:

$ adb install -r <apk>

Pidcat gives me a Process <package name> (PID: 9931) ended and nothing more. ^C and re-executing pidcat gets things flowing again.

I'm using ADB 1.0.32 with a Samsung SM-T230NU.

@thorinii
Copy link

Hmm I switched to a HTC phone and the logs continue.

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

No branches or pull requests

3 participants