System.InvalidOperationException errors possibly caused by Sentry.

Abierto
#2,344 9 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
csharp, unity

Línea de trabajo

Comienza con los stack traces de EnvelopeItem.SerializeAsync(), Utf8JsonWriter.DisposeAsync() y Utf8JsonWriter.FlushAsync() en el Unity package 3.2.3. Investiga cómo se comportan estas rutas con Unity 6000.0.45f1, ya que no se proporcionan pasos de reproducción ni un archivo del repositorio. Se considera completado cuando se haya identificado la causa y confirmado que el envío de eventos ya no produce los errores InvalidOperationException reportados.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
294
Forks
63
Merge medio
3 d 17 h
PR fusionados (30 d)
26

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/sentry-unity

Todos los issues de getsentry/sentry-unity

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.