Freeze: Input dispatching timed out in MessageQueue.nativePollOnce

Aberta
#256 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
18/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
android, kotlin
Domínio
mobile

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Kotlin
Estrelas
146
Forks
35
Merge médio
7h 41min
PRs com merge (30d)
221

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de anomalyco/opencode-android

Todas as issues de anomalyco/opencode-android

Issues semelhantes

Mais issues de Kotlin

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.