MessagePack 3.1 causing issues with ServiceHub.RoslynCodeAnalysisService.exe and build times.

オープン
#2,208 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp

調査の方向性

リポジトリのファイルもテストも指定されていません。まず、Visual Studio 17.14.5-7 上の大規模な C# プロジェクトで MessagePack 3.1 を使って問題を再現し、その後、CPU、メモリ、Roslyn の動作、ビルド時間をバージョン 2.5.198 と比較してください。回帰が切り分けられ、互換性のある修正または確認済みの原因が特定されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Bug description

The bug with Roslyn is described here:
https://developercommunity.visualstudio.com/t/Roslyn-code-analysis-using-all-of-my-CPU/10902166.

About the "build time" issue:
The above article refers to several issues with Roslyn not working well with a couple of mentioned Nuget packages. I will also point out that whether it is related or not, build times also increase when Roslyn is not cooperating. The average build time so far for my current project has been over a minute for each attempt.

I discovered today in my attempt to resolve another issue listed in this forum (just below this one) that MessagePack 3.1 is another Nuget Package that leads to this particular issue with Roslyn. Downgrading to 2.5.198 got rid of my issues with Roslyn and lengthy compile/build times. Building took less than 5 seconds after downgrading.

Repro steps

Install version 3.1 of this NuGet package in any large project.

Expected behavior

A normal operation of Visual Studio without coding issues/crashing. Normal build times.

Actual behavior

Coding and navigating through code in Visual Studio while version 3.1 of MessagePack is installed causes 1) Roslyn to both spiral up in memory and cpu usage which 2) eventually leads Visual Studio to crash.

  1. Build's pause for a lengthy amount of time when compiling assemblies that use MessagePack. I did not attribute this to Version 3.1 previously but after downgrading, this stopped happening and my build went very smoothly.
  • Version used:
    Visual Studio 17.14.5-7, MessagePack 3.1
Additional context

Add any other context about the problem here.

主要言語
C#
スター
6.8k
フォーク
783
平均マージ
19時間 47分
マージ済み PR(30日)
3

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MessagePack-CSharp/MessagePack-CSharp のほかの issue

MessagePack-CSharp/MessagePack-CSharp の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。