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

Fix tracing when running Android Studio #911

Open
ben-clayton opened this issue Aug 15, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@ben-clayton
Copy link
Member

commented Aug 15, 2017

If Android Studio is open when attempting to take a trace, the trace will likely fail.

This is because Android Studio actively attempts to connect to any Android program awaiting a JDWP connection. GAPID uses JDWP to inject the call interceptor.

We should work with the Android Studio folks to fix this problem.

@dsrbecky

This comment has been minimized.

Copy link
Member

commented Aug 15, 2017

To start with, we should just detect that Android Studio is running and tell user to close it

@gapid-user

This comment has been minimized.

Copy link

commented Aug 29, 2017

Actually, you don't have to close android studio necessarily. You can also disable adb integration in android studio with the switch Tools -> Android -> Enable ADB integration. Then tracing in GAPID will work fine.

@ben-clayton ben-clayton added this to the V0.9 (Beta) milestone Aug 30, 2017

@ben-clayton ben-clayton added the triaged label Aug 30, 2017

@ben-clayton

This comment has been minimized.

Copy link
Member Author

commented Sep 5, 2017

I've spoken with the Android Studio TL regarding this issue. I'll try to push for a fix, but this will take time to get sorted. For the time being we'll likely have to do what @dsrbecky suggests.

@ben-clayton

This comment has been minimized.

Copy link
Member Author

commented Sep 6, 2017

Internal bug number: b/65362573

@ben-clayton ben-clayton modified the milestones: V0.9 (Beta), V1.0 Sep 6, 2017

ben-clayton added a commit to ben-clayton/gapid that referenced this issue Oct 4, 2017

@ben-clayton ben-clayton self-assigned this Oct 4, 2017

ben-clayton added a commit that referenced this issue Oct 4, 2017

@ben-clayton ben-clayton removed this from the V1.0 milestone Oct 4, 2017

@ben-clayton ben-clayton added triaged and removed triaged labels Apr 19, 2018

@AWoloszyn AWoloszyn added triaged and removed triaged labels Oct 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.