roslyn: Visual Studio 16.4 deadlocks when saving files.

It happens a couple of times per day. The deadlock happens before files are written to disk so work is lost.

<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <TargetFrameworks>net45;netcoreapp3.0</TargetFrameworks>
    <UseWpf>true</UseWpf>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
  </PropertyGroup>

Don’t have much info other than that this bug showed up in 16.4 and a suspicion that it might have something to do with multitargeted WPF control libraries.

I have tried waiting 30 minutes but no dice.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (12 by maintainers)

Most upvoted comments

@JohanLarsson Fine with me closing this as external?

Repro with 16.4.1 and 16.4.2

@mavasani and @sharwell , @JohanLarsson has linked to vsfeedback issue containing the traces here. can you look asap. this is a data-loss and complete product hang issue.

tagging @jinujoseph @vatsalyaagrawal for visbility. This was reported nearly two weeks ago, but has no one assigned to it.

Milestone was also put at ‘backlog’, even though this should be a pri0 issue looked into immediately.

I encountered deadlogs aswell, while working with a multitargetting wpf project. Especially easy to reproduce, when i open a solution and immediately hit the save button in VS.