Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

NoSuchMethodError in SentryTraced during Compose composition

未關閉
#5,732 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
冷清
技術堆疊
android, kotlin
領域
mobile

研究方向

從 SentryComposeTracing.kt:72 開始,追蹤正常的 setContent → Recomposer.composeInitial → doCompose → ComposableLambdaImpl.invoke → SentryTraced 路徑。在報告的 Android 模擬器設定上重現崩潰,並比較列出的 SDK 版本,以識別缺少的方法,並確立一個能防止公開 composable 拋出 NoSuchMethodError 的修正方案。

由索引模型根據 Issue 內容生成。

描述

Android Platform: Java

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

主要語言
Kotlin
星號
1.4k
分支
478
平均合併
2 天 20 小時
30 天內合併 PR
70

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

getsentry/sentry-java 的其他 Issue

查看 getsentry/sentry-java 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。