Freeze: Input dispatching timed out in MessageQueue.nativePollOnce

Đang mở
#256 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Kotlin
Star
146
Fork
35
Merge trung bình
7 giờ 41 phút
Pull request đã merge (30 ngày)
221

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode-android

Tất cả issue của anomalyco/opencode-android

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.