getsentry / getsentry/sentry-java

NoSuchMethodError in SentryTraced during Compose composition

Abierto
#5,732 1 comentario 0 reacciones 0 asignados Ver en GitHub
Android Platform: Java
Lenguaje dominante
Kotlin
Estrellas
1.4k
Forks
478
Merge medio
2 d 23 h
PR fusionados (30 d)
67

Descripción

## Symptoms

`NoSuchMethodError` is thrown at the entry of the public `SentryTraced` composable during Jetpack Compose composition.

* **Crash location:** `io.sentry.compose.SentryComposeTracingKt.SentryTraced(SentryComposeTracing.kt:72)` — the function header, before any body statement executes.
* **Trigger path:** normal composition (`setContent` → `Recomposer.composeInitial` → `doCompose` → `ComposableLambdaImpl.invoke` → `SentryTraced`).
* **Handling:** unhandled, crashes the app via `UncaughtExceptionHandler`.
* **Exception detail message:** not available — stripped by SDK crash detection (`error.value` is `null` on all events), so the exact missing method name is unknown.

## Scope / frequency

* 151 occurrences, 2 users impacted.
* First seen 2026-03-19, still ongoing (last seen 2026-07-07).
* Spans multiple SDK versions: 8.33.0, 8.40.0, 8.43.1, 8.47.0 (not a regression tied to one release).
* Android only. Every event is on an Android emulator (`sdk_gphone64_arm64`, `simulator: true`, `userdebug` build, Android 14).

## Reference

* Sentry issue: SDK-CRASHES-JAVA-48AR — [https://sentry.sentry.io/issues/SDK-CRASHES-JAVA-48AR]()

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start at SentryComposeTracing.kt:72 and trace the normal setContent → Recomposer.composeInitial → doCompose → ComposableLambdaImpl.invoke → SentryTraced path. Reproduce the crash on the reported Android emulator configuration and compare the listed SDK versions to identify the missing method and establish a fix that prevents the public composable from throwing NoSuchMethodError.

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

Evaluación

Stack tecnológico
android, kotlin
Área
mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.