Freeze: Input dispatching timed out in MessageQueue.nativePollOnce

未關閉
#256 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

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

研究方向

This is an auto-filed Play vitals freeze with no reproduction steps: the trace only shows the main thread parked in android.os.MessageQueue.nativePollOnce while NativeInputEventReceiver.consumeEvents waits on a JNI call into an input handler, so the blocking work is in app code the report does not name. Start by mapping what runs on the main thread in response to touch/input dispatch at commit 82079247e (version code 380), and try to reproduce on an API 36 tablet with the Play Console vitals links (they need access). Done looks like a named culprit on the main thread (I/O, lock, or long computation during input handling) and either a fix or a reproducible trace, not just a re-read of this stack.

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

描述

crash crash-needs-human crash-triaged

Google Play reported this freeze (Android vitals).

  • Exception: Input dispatching timed out
  • Where: android.os.MessageQueue.nativePollOnce
  • Last 7 days: 17 reports from about 11 users
  • Version codes: 380–1015
  • Android API levels: 36–37
  • Last seen: 2026-11-28
  • Sample: Honor HONOR Pad 10, Android API 36, version code 380, commit 82079247e
"main" tid=1 Native
  #00  pc 0x000000000009769c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #01  pc 0x0000000000231f34  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks+140)
  #02  pc 0x0000000000619164  /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallObjectMethodV+1532)
  #03  pc 0x000000000012a5a4  /system/lib64/libandroid_runtime.so (_JNIEnv::CallObjectMethod+120)
  #04  pc 0x00000000001dc1e0  /system/lib64/libandroid_runtime.so (android::NativeInputEventReceiver::consumeEvents+1332)
  #05  pc 0x00000000001dbb40  /system/lib64/libandroid_runtime.so (android::NativeInputEventReceiver::handleEvent+188)
  #06  pc 0x0000000000015bc8  /system/lib64/libutils.so (android::Looper::pollOnce+1180)
  #07  pc 0x000000000021d280  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce+44)
  at android.os.MessageQueue.nativePollOnce (Native method)
  at android.os.MessageQueue.nextLegacy (MessageQueue.java:1002)
  at android.os.MessageQueue.next (MessageQueue.java:1150)
  at android.os.Looper.loopOnce (Looper.java:199)
  at android.os.Looper.loop (Looper.java:360)
  at android.app.ActivityThread.main (ActivityThread.java:10813)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:648)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1012)
"ReferenceQueueDaemon" tid=4 Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:390)
  at java.lang.Object.wait (Object.java:528)
  at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:260)
  at java.lang.Daemons$Daemon.run (Daemons.java:135)
  at java.lang.Thread.run (Thread.java:1571)
"FinalizerDaemon" tid=5 Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:390)
  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:207)
  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:228)
  at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:348)
  at java.lang.Daemons$Daemon.run (Daemons.java:135)
  at java.lang.Thread.run (Thread.java:1571)
"FinalizerWatchdogDaemon" tid=8 Timed Waiting
  at java.lang.Thread.sleep (Native method)
  at java.lang.Thread.sleep0 (Thread.java:687)
  at java.lang.Thread.sleep (Thread.java:665)
  at java.lang.Thread.sleep (Thread.java:578)
  at java.lang.Daemons$FinalizerWatchdogDaemon.sleepForNanos (Daemons.java:534)
  at java.lang.Daemons$FinalizerWatchdogDaemon.waitForProgress (Daemons.java:593)
  …

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 摘要。