Bug 22367 - Debugger output fails and Visual Studio performance slows down drastically after stopping debugging
Summary: Debugger output fails and Visual Studio performance slows down drastically af...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 22217 ()
Depends on:
Blocks:
 
Reported: 2014-08-26 13:33 UTC by Jon Goldberger [MSFT]
Modified: 2014-09-10 12:15 UTC (History)
6 users (show)

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


Attachments
Log files (2.91 MB, application/zip)
2014-08-26 13:33 UTC, Jon Goldberger [MSFT]
Details
More log files (2.99 MB, application/zip)
2014-08-26 13:41 UTC, Jon Goldberger [MSFT]
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:
RESOLVED FIXED

Comment 1 Jon Goldberger [MSFT] 2014-08-26 13:39:48 UTC
I have not been able to reproduce this issue.

From desk case:

1. When stopping debugging an app (on a real device, not emulated), Visual Studio becomes really slow. There can be up to a couple of seconds from an input (by keyboard or mouse click) before anything happens. Once I disconnect my phone this stops.  I encounter this after almost every time I've debugged.

2. The debug output fails. All I get is a ton of error messages saying that the logging failed. This remains until VS is restarted. I encounter this bug a couple of times per day.

I think I found these issues on the forums as well, but no solutions.  

My setup:

Windows 7, 64-bit.

Visual studio 2013

HTC One

---------------------------------------
initial version info:

Android: 4.4.2
HTC Sense 6.0
Sw. num 5.11.401.10
HTC SDK API level 6.20



Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

LightSwitch for Visual Studio 2013 06177-004-0446016-02890
Microsoft LightSwitch for Visual Studio 2013

Office Developer Tools - May 2014 Update ENU 06177-004-0446016-02890
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU

Team Explorer for Visual Studio 2013 06177-004-0446016-02890
Microsoft Team Explorer for Visual Studio 2013

Windows Phone SDK 8.0 - ENU 06177-004-0446016-02890
Windows Phone SDK 8.0 - ENU

Visual Basic 2013 06177-004-0446016-02890
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0446016-02890
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0446016-02890
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0446016-02890
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0446016-02890
Microsoft® Visual Studio® 2013 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.

ASP.NET and Web Tools 2013.2.50425
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.1.20409.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone
Build

NuGet Package Manager 2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools 1.1
Windows Azure Mobile Services Tools

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin 3.1.228.0 (2349ba7b70529ea26ba842e1ec32d054bd6abb3b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

--------------------------------------------

Version info after suggested update (no change to issue)

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0446016-02890
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06177-004-0446016-02890
Microsoft Team Explorer for Visual Studio 2013

Windows Phone SDK 8.0 - ENU   06177-004-0446016-02890
Windows Phone SDK 8.0 - ENU

Visual Basic 2013   06177-004-0446016-02890
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0446016-02890
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0446016-02890
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0446016-02890
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0446016-02890
Microsoft® Visual Studio® 2013 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.

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.3.50717.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.20703.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.2
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.2
Microsoft Azure Mobile Services Tools

NuGet Package Manager   2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools   1.2
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.3.47.0 (0b2a123923812a88ed3091909478dbe9e0111f00)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

-------------------------------------------------------
Comment 2 Jon Goldberger [MSFT] 2014-08-26 13:40:55 UTC
More from the desk case:

Just got this:
Error parsing android log, ignoring entry

rvice( 2122): onAdvFilterConfig() - action=2 status=1

Usually I get this: (This is spamming the output window - multiple per second. Even when the debug is paused.)
Error getting android log entry

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Xamarin.VisualStudio.Android.LogCatEntry.Parse(LogCatEntry obj, String entry)
at Xamarin.VisualStudio.Android.LogCatControl.listView1_RetrieveVirtualItem(Object sender, RetrieveVirtualItemEventArgs e)

Error getting android log entry

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Xamarin.VisualStudio.Android.LogCatEntry.Parse(LogCatEntry obj, String entry)
at Xamarin.VisualStudio.Android.LogCatControl.listView1_RetrieveVirtualItem(Object sender, RetrieveVirtualItemEventArgs e)

Error getting android log entry

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Xamarin.VisualStudio.Android.LogCatEntry.Parse(LogCatEntry obj, String entry)
at Xamarin.VisualStudio.Android.LogCatControl.listView1_RetrieveVirtualItem(Object sender, RetrieveVirtualItemEventArgs e)


-----------------------------------
The project I'm currently working on is attached.

The error seems(to me) to occur randomly. So I cannot force it to appear.
Comment 3 Jon Goldberger [MSFT] 2014-08-26 13:41:43 UTC
Created attachment 7803 [details]
More log files
Comment 5 Jon Goldberger [MSFT] 2014-08-26 13:46:32 UTC
*** Bug 22217 has been marked as a duplicate of this bug. ***
Comment 7 Jon Goldberger [MSFT] 2014-08-26 13:50:16 UTC
More from Desk case after reinstall:

I'm still experiencing the slowdown.
The debug output is also failing - No changes from before

A little clarification about the "System.ArgumentOutOfRangeException" -issue.
It does not stop the application and cause an exception-window to popup - as it does if you try to use substring on an index bigger than the string's length. It just clears the output window and starts spamming that message. The application is still running. No visible errors in the app.
I do not know how to reproduce it. I would say that it occurs randomly. (Probably not, but is cause by some low-level timer???). I can have the debugger running and the application is idle. Within a couple of minutes it will occur.
Comment 8 Jeffrey Stedfast 2014-08-28 13:49:48 UTC
I don't work on Visual Studio, so not sure why this is being assigned to me.
Comment 11 Daniel Cazzulino 2014-08-28 15:34:25 UTC
Fixed. Will ship with the iOS8 bits really soon.

https://github.com/xamarin/XamarinVS/commit/f08a62f2cf4c195703c23fc5140e14b6141a5cc8
Comment 13 Shaun Bowe 2014-09-10 12:15:30 UTC
Thank you for fixing this but the comments are unclear about when this will be released or which version it is included in. This issue makes me want to smash my computer about 40 times a day.