System.InvalidOperationException errors possibly caused by Sentry.

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

メンテナーはふだん 3 日以内に返信

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

評価

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

調査の方向性

Unity package 3.2.3 の EnvelopeItem.SerializeAsync()、Utf8JsonWriter.DisposeAsync()、Utf8JsonWriter.FlushAsync() のスタックトレースから始めてください。再現手順もリポジトリファイルも提供されていないため、Unity 6000.0.45f1 でこれらの経路がどのように動作するかを調査してください。原因を特定し、イベント送信で報告された InvalidOperationException エラーが発生しなくなったことを確認できれば完了です。

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

説明

Bug Errors Needs Reproduction Unity
Environment

Unity: 6000.0.45f1
Sentry: Unity package 3.2.3

Steps to Reproduce

NA

Expected Result

No errors to be raised.

Actual Result

The app runs into System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed. errors

Any logs or screenshots

The following errors are reported to Sentry with little context. Each show an action taken by Sentry when creating and sending events.

System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException() in Generics__24.cpp:line 7307
  at Sentry.Protocol.Envelopes.EnvelopeItem.SerializeAsync() in Sentry__3.cpp:line 20735
  at System.Threading.ExecutionContext.RunInternal() in mscorlib__9.cpp:line 30488
  at System.Threading.ExecutionContext.RunInternal() in mscorlib__9.cpp:line 28945
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run() in mscorlib__19.cpp:line 23443

System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult() in Generics__24.cpp:line 7169
  at System.Text.Json.Utf8JsonWriter.DisposeAsync() in Sentry.System.Text.Json__3.cpp:line 19595
  at System.Threading.ExecutionContext.RunInternal() in mscorlib__9.cpp:line 30488
  at System.Threading.ExecutionContext.RunInternal() in mscorlib__9.cpp:line 28945
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run() in mscorlib__19.cpp:line 23443

System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException() in Generics__24.cpp:line 7307
  at System.Text.Json.Utf8JsonWriter.FlushAsync() in Sentry.System.Text.Json__3.cpp:line 19926
  at System.Threading.ExecutionContext.RunInternal() in mscorlib__9.cpp:line 30488
  at System.Threading.ExecutionContext.RunInternal() in mscorlib__9.cpp:line 28945
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run() in mscorlib__19.cpp:line 23443

Original report: Discord

主要言語
C#
スター
295
フォーク
63
平均マージ
3日 17時間
マージ済み PR(30日)
26

環境構築

はじめの一歩

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

getsentry/sentry-unity のほかの issue

getsentry/sentry-unity の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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