Bug 11258 - Slow debugging with VS 2012: tons of MonoTouch licence queries in log
Summary: Slow debugging with VS 2012: tons of MonoTouch licence queries in log
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.1.x
Hardware: Macintosh Windows
: --- normal
Target Milestone: ---
Assignee: Vinicius Jarina
Depends on:
Reported: 2013-03-19 10:22 UTC by Michał Mazur
Modified: 2016-05-10 17:05 UTC (History)
7 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 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 Michał Mazur 2013-03-19 10:22:07 UTC
It starts when the debugger stops on first breakpoint (it never happens if no breakpoint is reached). Queries are being sent even after continuing to run application. It seems the query is sent for each line/step from the assembly where the breakpoint has been reached. The bug appeared only on one of three machines we're using.

The Mac Server log is full of messages like ones below:

[2013-03-18 11:38:24.4] Command [DebugApplication: CommmandUrl=DebugApplication] finished (11)
[2013-03-18 11:38:24.4] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-03-18 11:38:25.4] stdout: eb2ac5fcbc72088c84bc9e81780109c3bd450c2c MonoTouch Business 2013-09-13T09:12:53
[2013-03-18 11:38:25.4] 
[2013-03-18 11:38:25.4] Handling with command: [ChangeActiveApplication: CommmandUrl=ChangeActiveApplication] (10)
[2013-03-18 11:38:25.4] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-03-18 11:38:25.4] objc[1260]: Object 0x805bfe0 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
[2013-03-18 11:38:25.4] Command [ChangeActiveApplication: CommmandUrl=ChangeActiveApplication] finished (10)
[2013-03-18 11:38:59.6] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-03-18 11:39:00.1] stdout: eb2ac5fcbc72098c84bc9e8178010973bd450c2c MonoTouch Business 2013-09-13T09:12:53
Comment 1 Vinicius Jarina 2013-03-19 19:49:47 UTC
Hi Michal 

This can be reproducible with a "new project" ?

There is any path we can do to repro this issue?

Thank you.
Comment 2 Michał Mazur 2013-03-20 04:52:16 UTC
Hi Jarina

It is reproducible with Hello World app so I assume it is reproducible with every project.
This occurs only on one of three machines we use so maybe this is dependent on file system, Mac configuration or file/folder access rights.

Comment 3 Vinicius Jarina 2013-03-20 16:57:58 UTC
Ok Michal,

I will spend some time trying to make the experience better.

This delay could be caused by the ChangeActiveApplication, this command is sent only when you use the Simulator. Try to debug on the device, the debugger should be faster.
Comment 5 Vinicius Jarina 2013-03-21 16:48:40 UTC
Fixed on master.
- Show simulator will execute asynchronously
- No license check for each simulator grab-focus

Warning: The command ChangeActive application should be send only when you trigger "Continue" not for each Step Over.

If you are seeing the command for each step over please open a new issue.

Thank you Michal.