Bug 12672 - from XS, debugger hangs at 'detecting existing process'
Summary: from XS, debugger hangs at 'detecting existing process'
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.7.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-06-13 09:58 UTC by eduard.qualls
Modified: 2015-12-02 18:38 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description eduard.qualls 2013-06-13 09:58:08 UTC
problem arises whether or not the emulator is already running:

1) build project in XS (any ole project will do)

2) hit F5, or click 'debug start' button

3) deploy to device goes as expected

4) application title-bar appears on emulator and application output reports:
Forwarding debugger port 8889
Forwarding console port 8890
Detecting existing process

5) status field at top of XS screen continues to show animated plug going toward string "Xamarin Studio"

6) application is unresponsive; no breakpoints are ever hit

7) clicking on emulator brings up message "Sorry!" + "Activity x (in application y.x) is not responding."
Buttons: "Force close" || "Wait".

8) waiting turns out to be infinite (XS is still showing that animated electric plug.)

If, at this point, you choose "Wait", and terminate the debugger in XS, the application continues to sit in the emulator, as if it's in some start-up loop somewhere. Clicking on it again brings up the same "Sorry!" messagebox.

After closing the app in the emulator and ending the debug session in XS, if you then click on the app, you get the same behavior: waiting and the "Sorry!" message.

IF, HOWEVER, you choose "Run => Run with" and pick the emulator, it rebuilds the project, deploys it, and it runs without a problem. Application output is "[monodroid-gc] GREF GC Threshold: 1800".(When you do this the menu option "Run => Start debugging" is grayed out and the start/control button [XS upper left] is reset to its "stop debugging" image, which, if you click, has no effect on the app running in the emulator. However, the debugger has not been started, so why XS thinks it can stop it...)
Comment 2 eduard.qualls 2013-06-13 18:09:00 UTC
This appears to be a newly introduced conflict with avast! Internet Security antivirus package over port security. I'm not sure whether the change was from you or from them.

I'm debugging again, so you can put this on record--if I can get more info to you, I'll tack it onto this message stream.

Comment 5 PJ 2013-11-19 16:38:27 UTC
This bug was targeted for a past milestone, moving to the next active non-hotfix milestone.