Bug 60499 - Visual Studio hangs and crashes
Summary: Visual Studio hangs and crashes
Status: NEEDINFO
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 8.1 (15.5)
Hardware: PC Windows
: --- critical
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-11-02 17:01 UTC by Ruben Buniatyan
Modified: 2017-11-03 16:00 UTC (History)
2 users (show)

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


Attachments
Dump (5.99 MB, application/octet-stream)
2017-11-03 15:54 UTC, Ruben Buniatyan
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 for Bug 60499 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEEDINFO

Description Ruben Buniatyan 2017-11-02 17:01:53 UTC
# Steps to reproduce
No specific steps.
I'm starting regret my investments in Xamarin. The IDE and build tools are way too buggy and unstable. And each update is a pain. Runtime is pretty good though.

# Expected behavior
To allow code in general. To allow type, scroll, and build without crashing every minute or so.

# Actual behavior
IDE just hangs and crashes during coding or scrolling the .cs files.

# Supplemental info (logs, images, videos)
After crash, Visual Studio suggests:
"A previous session terminated unexpectedly. Disabling extension Xamarin for Visual Studio 4.7.10.33 might help prevent similar issues."

# Test environment (full version information)
Microsoft Visual Studio Enterprise 2017 
Version 15.4.2
VisualStudio.15.Release/15.4.2+27004.2006
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Visual Basic 2017   00369-90000-00000-AA049
Microsoft Visual Basic 2017

Visual C# 2017   00369-90000-00000-AA049
Microsoft Visual C# 2017

Visual C++ 2017   00369-90000-00000-AA049
Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package   8.9.00809.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30925.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

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

Azure App Service Tools v3.0.0   15.0.30915.0
Azure App Service Tools v3.0.0

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

JavaScript Language Service   2.0
JavaScript Language Service

JetBrains ReSharper Ultimate 2017.2.2    Build 109.0.20171006.122324
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

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

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

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

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   4.7.4-pre (c2d89eb)
Support for debugging Mono processes with Visual Studio.

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

SQL Server Data Tools   15.1.61707.200
Microsoft SQL Server Data Tools

TypeScript   2.3.5.0
TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

VisualStudio.IoT   1.0
Package with IoT components for Visual Studio

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin   4.7.10.33 (70936af)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   8.0.2.1 (HEAD/c2a33d8ea)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   11.2.1.0 (12e80e0)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Jon Douglas [MSFT] 2017-11-02 18:24:53 UTC
Hi Ruben,

I apologize in advance if this has been causing you stress. I'd like to offer help in diagnosing this issue so we can figure out what's going on here.

If you can follow a few steps, this will help me identify why your Visual Studio is hanging. Please attempt step 1 when Visual Studio is hanging and steps 2 or 3 prior to the next time Visual Studio is hanging:

1. https://developer.xamarin.com/guides/cross-platform/windows/visual-studio/troubleshooting/vs-callstack/

2. Install the following extension: https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProjectSystemTools

The next time this occurs, look at the View->Other Windows->Build Logging which will have design time builds that might be deadlocking/failing.

3. If #2 does not work well for you, follow these instructions to enable Design Time Build Logging

(Ensure you are following the Visual Studio 2015 instructions as we do not support the new project system yet)

https://github.com/dotnet/project-system/blob/master/docs/design-time-builds.md#visual-studio-2015-or-below

The more information you can provide, the better we can identify the cause of this issue. Also if you have a reproduction project that you can reproduce this behavior with, please upload it to this bug report.

Thank you for the report!
Comment 2 Ruben Buniatyan 2017-11-03 15:54:56 UTC
Created attachment 25553 [details]
Dump
Comment 3 Ruben Buniatyan 2017-11-03 16:00:56 UTC
@Jon
Not sure what to do with steps #2 and #3. I installed the extension but I can't do anything while VS is hung. The second instance of VS has empty Build Logging while dumping the first's process. Seems I missed something.