Bug 13711 - Visual Studio Hangs when toggling breakpoints quickly.
Summary: Visual Studio Hangs when toggling breakpoints quickly.
Status: CLOSED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Windows
: Low normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-02 09:10 UTC by dean.ellis
Modified: 2016-09-16 12:57 UTC (History)
5 users (show)

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


Attachments
MainActivity.cs (2.08 KB, text/plain)
2013-08-02 09:10 UTC, dean.ellis
Details
Sample Created. (19.07 KB, application/octet-stream)
2015-07-30 14:41 UTC, Rajneesh Kumar
Details


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:
Status:
CLOSED NOT_REPRODUCIBLE

Description dean.ellis 2013-08-02 09:10:43 UTC
Created attachment 4524 [details]
MainActivity.cs

From a customer case.

https://xamarin.desk.com/agent/case/42626

I have replicated this issue on VS2010 but not on VS2012.


"
I think there is a bug in the Xamarin.Android Visual Studio Plugin:

When doing a simple C# program with a button that starts a simple loop and output some text on the debugger and UI, if I break/run the loop very quickly the debugger is not able to continue!
Typically in the attached code (MainActivity.cs) I put a breakpoint at line 29 (Thread.Sleep(100)).
Then if I do F5/F9/F5/F9 very quickly in visual studio, the program just freeze, but it looks like it is running when looking at the visual studio debug UI (Debug > Continue is grayed out).

I did the same test with a similar program on windows, and didn't have any issue, so it does not come from visual studio.
Also I do not reproduce this issue when using Xamarin Studio.

I attached a sample project to reproduce the issue, and here are some details on my dev environment:
* Windows 7 Professional 32bit
* Visual Studio 2010 Premium
* Xamarin.Android plugin 4.8.13
* Xamarin Studio 4.0.10 (build 7)

Note that on one of my runs, I saw something like a SIGSEGV and an error message about some "_mono_native_mutex " or something similar in android logcat, but unfortunately I did not keep the log."
Comment 1 dean.ellis 2013-08-02 09:18:24 UTC
Some additional information . 

When debugging this bug I waited until the lockup occurs then hit pause in the host VS. The IDE then broke in the TraceManager.cs DoTrace method. It appears that the tracing system is locking up, not sure if this the cause of the issue though.
Comment 2 Rajneesh Kumar 2015-07-30 14:41:18 UTC
Created attachment 12305 [details]
Sample Created.

I have checked this issue with the latest stable build XVS 3.11.666 using VS 2010 and Vs 2013 an I observed that I ma not able to reproduce this issue. To check this issue I have followed the the instruction provided in bug description. 

Steps I followed:

1. Open attached test sample (Attached in this comment.) 
2. Set break point at line: (Thread.Sleep(100)) in MainActivity.cs
3. Run the app, click on button.
4. Breakpoint will it.
5. Then perform F5/F9/F5/F9 very quickly in visual studio.
6. Observed that debugger is able to continue.

Screencast: http://www.screencast.com/t/wH6YLYqsPcZ9

Could you please check this issue with the latest stable build XVS 3.11.666 and check that Is this issue still exist.?

Thanks..!

Environment Info:

Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.5.50938 RTMRel

Installed Version: Ultimate

Microsoft Office Developer Tools   01019-532-2002102-70282
Microsoft Office Developer Tools

Microsoft Visual Basic 2010   01019-532-2002102-70282
Microsoft Visual Basic 2010

Microsoft Visual C# 2010   01019-532-2002102-70282
Microsoft Visual C# 2010

Microsoft Visual C++ 2010   01019-532-2002102-70282
Microsoft Visual C++ 2010

Microsoft Visual F# 2010   01019-532-2002102-70282
Microsoft Visual F# 2010

Microsoft Visual Studio 2010 Architecture and Modeling Tools   01019-532-2002102-70282
Microsoft Visual Studio 2010 Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Microsoft Visual Studio 2010 Code Analysis Spell Checker   01019-532-2002102-70282
Microsoft Visual Studio 2010 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Microsoft Visual Studio 2010 Team Explorer   01019-532-2002102-70282
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010   01019-532-2002102-70282
Microsoft Visual Web Developer 2010

Crystal Reports Templates for Microsoft Visual Studio 2010   
Crystal Reports Templates for Microsoft Visual Studio 2010

Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.30319
Microsoft Visual Studio 2010 SharePoint Developer Tools

Xamarin   3.11.666.0 (ebae43a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.4.16 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.10.2.0 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 3 Akhilesh kumar 2015-08-24 08:47:07 UTC
As these is no response on the bug and it is a old bug, so I am closing this
issue.

Please feel free to reopen it again if you have any concern or suggestion for
the same.

Thanks!