Freeze: Input dispatching timed out in Arrays.fill

未关闭
#275 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, kotlin
领域
mobile-dev

调研方向

The crash is an input dispatch timeout raised inside Compose's SlotWriter.clearSlotGap during a recomposition frame, reached from Recomposer.runRecomposeAndApplyChanges; the stack shows no line in this app's own code. Start by checking the commit f35e17884 and the Compose runtime version in the Gradle files, and reproduce on a slow device or with a large composition. Done means identifying what in the app's UI tree triggers the long main-thread work and reducing it below the input timeout, which needs Compose and Android performance knowledge.

由索引模型根据 Issue 内容生成。

描述

crash crash-needs-human crash-triaged

Google Play reported this freeze (Android vitals).

  • Exception: Input dispatching timed out
  • Where: java.util.Arrays.fill
  • Last 7 days: 6 reports from about 6 users
  • Version codes: 380–1015
  • Android API levels: 34–37
  • Last seen: 2026-11-27
  • Sample: realme realme C53, Android API 34, version code 178, commit f35e17884
"main" tid=1 Runnable
  at java.util.Arrays.fill (Arrays.java:4186)
  at kotlin.collections.ArraysKt___ArraysJvmKt.fill (ArraysKt___ArraysJvm.kt:1563)
  at androidx.compose.runtime.composer.gapbuffer.SlotWriter.clearSlotGap (SlotTable.kt:2986)
  at androidx.compose.runtime.composer.gapbuffer.SlotWriter.close (SlotTable.kt:1566)
  at androidx.compose.runtime.composer.gapbuffer.SlotWriter.moveFrom (SlotTable.kt:4441)
  at androidx.compose.runtime.composer.gapbuffer.changelist.Operation$InsertSlotsWithFixups.execute (Operation.kt:692)
  at androidx.compose.runtime.composer.gapbuffer.changelist.Operation.executeWithComposeStackTrace (Operation.kt:64)
  at androidx.compose.runtime.composer.gapbuffer.changelist.Operations.executeAndFlushAllPendingOperations (Operations.kt:350)
  at androidx.compose.runtime.composer.gapbuffer.changelist.ChangeList.executeAndFlushAllPendingChanges (ChangeList.kt:109)
  at androidx.compose.runtime.composer.gapbuffer.changelist.ChangeList.execute (ChangeList.kt:94)
  at androidx.compose.runtime.CompositionImpl.applyChangesInLocked (Composition.kt:1221)
  at androidx.compose.runtime.CompositionImpl.applyChanges (Composition.kt:1256)
  at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2.invokeSuspend$lambda$2 (Recomposer.java:733)
  at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame (AndroidUiFrameClock.android.kt:39)
  at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch (AndroidUiDispatcher.java:108)
  at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch (AndroidUiDispatcher.java:41)
  at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame (AndroidUiDispatcher.android.kt:69)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1397)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1408)
  at android.view.Choreographer.doCallbacks (Choreographer.java:1012)
  at android.view.Choreographer.doFrame (Choreographer.java:938)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1382)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:205)
  at android.os.Looper.loop (Looper.java:294)
  at android.app.ActivityThread.main (ActivityThread.java:8394)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:640)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:995)

Play Console (needs access):

主要语言
Kotlin
星标
146
派生
35
平均合并
7 小时 41 分钟
30 天内合并 PR
221

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode-android 的其他 Issue

查看 anomalyco/opencode-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。