Bug 3068 - Failure to start application in debug mode with MonoTouch 5.2.0
Summary: Failure to start application in debug mode with MonoTouch 5.2.0
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-01-25 16:28 UTC by PJ
Modified: 2012-02-23 18:01 UTC (History)
3 users (show)

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

/Developer/MonoTouch/usr/bin/mtouch --logdev (34.51 KB, text/plain)
2012-01-25 17:54 UTC, PJ

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 PJ 2012-01-25 16:28:55 UTC
After TweetStation crashed (as part of reproducing the test case for bug #3051), subsequent attempts to debug the application start TweetStation on device, but the debugger and the application never talk to each other.

This is what appears on the device console:

unknown com.apple.debugserver-64[733] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
unknown com.apple.debugserver-64[733] <Warning>: 1 [02dd/1303]: error: ::read ( 4, 0x2ff019d4, 1024 ) => -1 err = Bad file descriptor (0x00000009)
unknown com.apple.debugserver-64[726] <Warning>: 1 [02d6/0303]: error: ::read ( 4, 0x2fe614b0, 1024 ) => 0 err = Bad file descriptor (0x00000009)
unknown mobile_installation_proxy[724] <Error>: main: Could not receive request from host.
unknown mobile_installation_proxy[729] <Error>: main: Could not receive request from host.
Comment 1 PJ 2012-01-25 16:36:02 UTC
This happens repeatedly, even if the application is manually killed on the device.

One workaround is to force a rebuild and an upload.

Sometimes after a few attempts, it recovers from this condition.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-01-25 17:12:43 UTC
I can't reproduce this, I just crashed Tweetstation 10 times in a row and every time the debugger attached fine in the next run.

Can you add -v -v -v -v to the additional mtouch arguments, and check if anything is printed to the iOS Device Log when the debugger fails to attach?
Comment 3 PJ 2012-01-25 17:54:52 UTC
Created attachment 1271 [details]
/Developer/MonoTouch/usr/bin/mtouch --logdev

Trace after running /Developer/MonoTouch/usr/bin/mtouch --logdev