Crash: IllegalStateException in AppContext.getLiveValue
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- mobile-dev
調査の方向性
Start with ai.opencode.core.dependencies.AppContext.getLiveValue in AppContext.java, then follow the dependency initialization through DependencyValues.kt, AppFeatureMigrations.kt, and MainActivity.kt as shown in the stack trace. Reproduce the startup path and identify why the live dependency value throws IllegalStateException. The change is done when the affected startup path no longer crashes and the relevant dependency lifecycle behavior is covered by a test.
索引モデルが issue の本文から書いたものです。
説明
Google Play reported this crash (Android vitals).
- Exception:
java.lang.IllegalStateException - Where:
ai.opencode.core.dependencies.AppContext.getLiveValue - Last 7 days: 2 reports from about 2 users
- Version codes: 380–1015
- Android API levels: 34–36
- Last seen: 2026-11-27
- Sample: Samsung Galaxy A72, Android API 34, version code 380, commit 82079247e
Exception java.lang.RuntimeException
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4164)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:230)
at android.os.Looper.loop (Looper.java:319)
at android.app.ActivityThread.main (ActivityThread.java:8919)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
at ai.opencode.core.dependencies.AppContext.getLiveValue (AppContext.java:20)
at ai.opencode.core.dependencies.AppContext.getLiveValue (AppContext.java:18)
at ai.opencode.core.dependencies.DependencyValues$Companion.live (DependencyValues.java:65)
at ai.opencode.core.dependencies.DependencyValues$Companion.access$live (DependencyValues.java:60)
at ai.opencode.core.dependencies.DependencyValues.get (DependencyValues.kt:35)
at ai.opencode.core.dependencies.DependencyValuesKt.dependency (DependencyValues.kt:135)
at ai.opencode.core.sharing.LiveSharedBytes$Companion.create (LiveSharedBytes.java:185)
at ai.opencode.core.sharing.SharedStore.liveValue_delegate$lambda$0 (SharedStore.java:150)
at kotlin.SynchronizedLazyImpl.getValue (LazyJVM.kt:86)
at ai.opencode.core.sharing.SharedStore$Key.getLiveValue (SharedStore.java:150)
at ai.opencode.core.sharing.SharedStore$Key.getLiveValue (SharedStore.java:149)
at ai.opencode.core.dependencies.DependencyValues$Companion.live (DependencyValues.java:65)
at ai.opencode.core.dependencies.DependencyValues$Companion.access$live (DependencyValues.java:60)
at ai.opencode.core.dependencies.DependencyValues.get (DependencyValues.kt:35)
at ai.opencode.core.dependencies.DependencyValuesKt.dependency (DependencyValues.kt:135)
at ai.opencode.app.AppFeatureMigrationsKt.migrateBeforeRestore (AppFeatureMigrations.kt:58)
at ai.opencode.app.AppFeature$State$Companion.initial (AppFeature.java:278)
at ai.opencode.app.RootStore.resolve$lambda$0 (RootStore.java:245)
at ai.opencode.app.RootStore.resolve (RootStore.java:261)
at ai.opencode.app.RootStore.resolve (RootStore.java:244)
at ai.opencode.app.MainActivity.onCreate (MainActivity.kt:100)
at android.app.Activity.performCreate (Activity.java:8975)
at android.app.Activity.performCreate (Activity.java:8944)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4146)
Play Console (needs access):
- 主要言語
- Kotlin
- スター
- 146
- フォーク
- 35
- 平均マージ
- 7時間 41分
- マージ済み PR(30日)
- 221
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode-android のほかの issue
-
F-droid releaseオープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
anomalyco/opencode-android#345 ·
メンテナーはふだん 1 日以内に返信
-
crash crash-needs-human crash-triaged
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
anomalyco/opencode-android#341 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
crash crash-needs-human crash-triaged
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
anomalyco/opencode-android#340 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponse対応中かも @Tarquinen が 3 日前に担当しました。 オープンcrash crash-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
anomalyco/opencode-android#320 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
anomalyco/opencode-android#317 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode-android の issue をすべて見る
似ている issue
-
feature request needs decision
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tswistak/Battery-Monitor#207 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
F-Droid FOSS question
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
d4rken-org/butler#365 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
panel-assistant/android#224 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信