Freeze: Input dispatching timed out in MessageQueue.nativePollOnce

Aperta
#256 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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):

Lingua principale
Kotlin
Stelle
146
Fork
35
Merge medio
7h 41m
PR unite (30g)
221

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode-android

Tutte le issue di anomalyco/opencode-android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.