Bug 56573 - Editing code while Forms Previewer is open locks up Visual Studio
Summary: Editing code while Forms Previewer is open locks up Visual Studio
Status: RESOLVED DUPLICATE of bug 56651
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-17 16:57 UTC by Cody Beyer (MSFT)
Modified: 2017-06-09 08:49 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 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 DUPLICATE of bug 56651

Description Cody Beyer (MSFT) 2017-05-17 16:57:33 UTC
# Description

When attempting to use the Forms Previewer while editing XAML, Visual Studio grinds to halt. This is seems to be triggered by entering text into the editor. When this issue occurs, either text input will become extremely slow (seconds between typing a character and having it appear on screen) or Visual Studio will restrict actions and report that Visual Studio is busy

# Steps to Reproduce

1. Create a Xamarin.Forms app using the Master/Detail template
2. Build the app (so that Forms previewer can operate)
3. Open a XAML file and previewer
4. Attempt to edit some XAML
5. Continue to edit XAML until issue occurs

# Expected Results

Editing XAML should continue unabated 

# Actual Results

The IDE will slow and/or become unresponsive 

# Versions

Microsoft Visual Studio Enterprise 2017 
Version 15.2 (26430.6) Release
VisualStudio.15.Release/15.2.0+26430.6
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Visual Basic 2017   00369-60000-00001-AA546
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA546
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA546
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA546
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.6.00404.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30503.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

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

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

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

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

TypeScript   2.2.2.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   15.0.26430.06
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.5.0.443 (c871575)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.3.0.13 (448f54f)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.10.0.30 (30b6e87)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 linwen 2017-05-18 11:52:41 UTC
I have the same problem.
when i switch to another xaml page.
Comment 2 linwen 2017-05-18 13:31:19 UTC
I am work in visual studio 2017. if i had connect to a mac; but now, this mac is shutdown, i still keep connection, so vs2017 just like stoped,no answer, no responce.



solution:
    open xamarin mac agent, ignore all conneted mac;
Comment 3 linwen 2017-05-18 13:39:38 UTC
I am work in visual studio 2017. if i had connect to a mac; this mac is shutdown, but i still keep connection, Then open Xamarin.Forms.Previewer and edit xaml page, case vs2017 like stoped,no answer, no responce.



solution:
    open xamarin mac agent, ignore all conneted mac;
Comment 4 Alan McGovern 2017-05-18 18:50:35 UTC
The hang you are seeing is most likely a duplicate of #56512. Our QA will re-test the builds anyway to verify everything works as expected.

If the performance issue you're seeing is completely separate to the hang you are experiencing can you attach a copy of the logs from a session where it got really slow?    You can find the logs by clicking Help -> Xamarin -> Zip Xamarin Logs.

I'll mark it as needinfo for now while we wait for confirmation about the performance issue.
Comment 5 Alan McGovern 2017-05-24 13:13:37 UTC
Let's duplicate this bug report and deal with everything on bug #56651. 

Linwen, if you can read the third comment there ( https://bugzilla.xamarin.com/show_bug.cgi?id=56651#c3 ) and append your own information it would greatly help us diagnose the root of the problem. Thanks!

*** This bug has been marked as a duplicate of bug 56651 ***
Comment 6 Alan McGovern 2017-06-09 08:49:00 UTC
*** Bug 57300 has been marked as a duplicate of this bug. ***