Bug 11751 - For the iOS application, after applying the breakpoint when the user debug the application on the physical device, the application launch, stops at breakpoint and then after few seconds crashes.
Summary: For the iOS application, after applying the breakpoint when the user debug th...
Status: VERIFIED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: 6.3.x
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-04-12 05:01 UTC by Jatin
Modified: 2013-05-09 07:40 UTC (History)
6 users (show)

Tags:
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:
Status:
VERIFIED INVALID

Comment 1 Jatin 2013-04-15 05:02:53 UTC
We have checked this issue with the new build of Mono: Mono 3.0.10

And we have observed that the issue still exists on Mac as well as on Windows via MTVS.

Below are the build information:

MT 6.3.4.36
XS 4.1.0 (Build 45)
Mono 3.0.10
MTVS 1.1.200
Comment 3 Nischal 2013-04-19 05:03:26 UTC
We have checked this issue with new MT 6.2.4.1 build.

This issue still exists on Mac as well as Windows environment.

Build info:
For Windows:
VS 2012/12
MTVS 1.1.200
(Mac Server)
MT 6.2.4.1
Xcode 4.6.2
Mono 2.10.12

For mac:
XS 4.0.4.2
MT 6.2.4.1
Xcode 4.6.2
Mono 2.10.12

Supplement info for Mac Environment:
Application output: https://gist.github.com/atin360/9dffe947c3baaeb898a3
iOS device log: https://gist.github.com/atin360/20fa79ad1ac23f9bbdfd
X.S log: https://gist.github.com/atin360/c53ed3e2d153618564f2
Comment 4 PJ 2013-04-22 10:39:54 UTC
Hrm. This issue was originally reported just against the 6.3 based monotouch. 

You're now saying that it happens on the build that is *very* close to the stable, 6.2.4.1.

Are you sure that this is the same behavior and that the version info you're reporting is correct? 6.2.4.1 should not have this problem, the difference between the two is very small.

In the first report, you get an error in the XS log that say 'ERROR [2013-04-12 13:04:26Z]: Error terminating device connection'.

I see no such error message in comment 3. Please re-check and see if these are really the same issue.
Comment 5 Atin 2013-04-22 15:04:36 UTC
We have checked this issue with both the MT versions

MT  6.3.4.36 / 6.2.4.1
XS   4.1.0 (Build 45)
Mono  3.0.10

This issue is still occurring with both the versions.
Comment 6 narayanp 2013-04-25 10:20:37 UTC
PJ, 

While reviewing iOS document "Debugging" (http://docs.xamarin.com/guides/ios/deployment%2C_testing%2C_and_metrics/debugging_in_xamarin_ios) I have found this info about breakpoint in the document.

" Breakpoints: It is important to point out that the iOS gives applications only a handful of seconds (10) to startup and complete the FinishedLaunching method in the Application delegate. If the application does not complete this method in 10 seconds, the OS will kill the process."

It means if breakpoint hits before launching the application and FinishedLaunching method in the Application delegate does not complete with in 10 seconds then application will terminate with in 10 seconds.

Also following comment is present in AppDelegate.cs file for iOS SingleView  application:

// You have 17 seconds to return from this method, or iOS will terminate your application.

so when we set breakpoint at line 35(return true;) in AppDelegate.cs and debug the application on device breakpoint hits before launching the application and if we do nothing then application terminates with in 17 seconds.

So as per my understanding this bug seems INVALID if I am not wrong.

But the problem is that application does not terminate with in 17 seconds if we debug the application with simulator.

Please look into it.

Thanks
Comment 7 Jeffrey Stedfast 2013-04-25 10:26:36 UTC
The simulator is more lenient with breakpoints in the FinishedLaunching stage, so yea, this is invalid.
Comment 8 PJ 2013-04-25 10:36:32 UTC
Good assesment Lal. That definitely would cause an apparent 'crash'. But I'm not so sure this is the issue Jatin was seeing.

First, I wonder how it was ever initially marked as a regression. Then, the initial report says 30-40 seconds, which is well beyond the FinishedLaunching timeout.

Are you sure this is the behavior Jatin originally reported?
Comment 9 narayanp 2013-04-25 11:26:27 UTC
We are seeing the same behavior on the builds which are mentioned in regression status(stable XS 4.0.3.13, Mono 2.10.12 and the same MT 6.3.4.2). Application get terminated after few seconds.
Comment 10 Nischal 2013-05-09 07:40:05 UTC
As per above comments changing the status to Verified.