System.InvalidOperationException errors possibly caused by Sentry.

Đang mở
#2,344 9 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
csharp, unity
Lĩnh vực
game-dev, observability

Hướng nghiên cứu

Bắt đầu với các stack trace của EnvelopeItem.SerializeAsync(), Utf8JsonWriter.DisposeAsync() và Utf8JsonWriter.FlushAsync() trong Unity package 3.2.3. Điều tra cách các đường đi này hoạt động trên Unity 6000.0.45f1, vì không có bước tái hiện hoặc tệp repository nào được cung cấp. Hoàn thành có nghĩa là xác định được nguyên nhân và xác nhận rằng việc gửi sự kiện không còn tạo ra các lỗi InvalidOperationException đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C#
Star
295
Fork
63
Merge trung bình
3 ngày 17 giờ
Pull request đã merge (30 ngày)
26

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-unity

Tất cả issue của getsentry/sentry-unity

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.