Repository: flutter
Issue: ANR: Input dispatching timed out from production app 
Labels: platform-android,engine,a: production,P2,c: fatal crash,team-android,triaged-android

I keep getting this ANR on my Android app.
Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 60. Wait queue head age: 20510.8ms.)

```
"main" prio=5 tid=1 Native
  #00  pc 000000000001900c  /system/lib/libc.so (syscall+28)
  #00  pc 00000000000b6e91  /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 0000000000281279  /system/lib/libart.so (art::JNI::CallObjectMethod(_JNIEnv*, _jobject*, _jmethodID*, ...)+348)
  #00  pc 000000000009438b  /system/lib/libandroid_runtime.so (android::NativeInputEventReceiver::consumeEvents(_JNIEnv*, bool, long long, bool*)+318)
  #00  pc 000000000009411b  /system/lib/libandroid_runtime.so (android::NativeInputEventReceiver::handleEvent(int, int, void*)+90)
  #00  pc 00000000000101f1  /system/lib/libutils.so (android::Looper::pollInner(int)+572)
  #00  pc 000000000000ff1d  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+32)
  #00  pc 00000000000ace21  /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, _jobject*, int)+24)
  #00  pc 00000000000b9ffd  /system/framework/arm/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+92)
  at android.os.MessageQueue.nativePollOnce (MessageQueue.java)
  at android.os.MessageQueue.next (MessageQueue.java:325)
  at android.os.Looper.loop (Looper.java:142)
  at android.app.ActivityThread.main (ActivityThread.java:6543)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:440)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:810)
  
  "Jit thread pool worker thread 0" daemon prio=5 tid=2 Native
  #00  pc 000000000001900c  /system/lib/libc.so (syscall+28)
  #00  pc 00000000000b6e91  /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 000000000038e74d  /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+172)
  #00  pc 000000000038e0cf  /system/lib/libart.so (art::ThreadPoolWorker::Run()+62)
  #00  pc 000000000038dced  /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+92)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "FinalizerWatchdogDaemon" daemon prio=5 tid=4 Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded (Daemons.java:297)
  at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:277)
  at java.lang.Daemons$Daemon.run (Daemons.java:103)
  at java.lang.Thread.run (Thread.java:764)
  
  "ReferenceQueueDaemon" daemon prio=5 tid=6 Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:178)
  at java.lang.Daemons$Daemon.run (Daemons.java:103)
  at java.lang.Thread.run (Thread.java:764)
  
  "FinalizerDaemon" daemon prio=5 tid=7 Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:422)
  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:188)
  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:209)
  at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:232)
  at java.lang.Daemons$Daemon.run (Daemons.java:103)
  at java.lang.Thread.run (Thread.java:764)
  
  "Binder:32213_1" prio=5 tid=8 Native
  #00  pc 0000000000049090  /system/lib/libc.so (__ioctl+8)
  #00  pc 000000000001e111  /system/lib/libc.so (ioctl+32)
  #00  pc 000000000004242d  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+168)
  #00  pc 0000000000042525  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+8)
  #00  pc 0000000000042a67  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
  #00  pc 0000000000057a95  /system/lib/libbinder.so (???)
  #00  pc 000000000000d1c9  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+144)
  #00  pc 0000000000068f89  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+80)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "Binder:32213_2" prio=5 tid=9 Native
  #00  pc 0000000000049090  /system/lib/libc.so (__ioctl+8)
  #00  pc 000000000001e111  /system/lib/libc.so (ioctl+32)
  #00  pc 000000000004242d  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+168)
  #00  pc 0000000000042525  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+8)
  #00  pc 0000000000042a67  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
  #00  pc 0000000000057a95  /system/lib/libbinder.so (???)
  #00  pc 000000000000d1c9  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+144)
  #00  pc 0000000000068f89  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+80)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "Binder:32213_3" prio=5 tid=10 Native
  #00  pc 0000000000049090  /system/lib/libc.so (__ioctl+8)
  #00  pc 000000000001e111  /system/lib/libc.so (ioctl+32)
  #00  pc 000000000004242d  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+168)
  #00  pc 0000000000042525  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+8)
  #00  pc 0000000000042a67  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
  #00  pc 0000000000057a95  /system/lib/libbinder.so (???)
  #00  pc 000000000000d1c9  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+144)
  #00  pc 0000000000068f89  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+80)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "Profile Saver" daemon prio=5 tid=11 Native
  #00  pc 000000000001900c  /system/lib/libc.so (syscall+28)
  #00  pc 00000000000b6e91  /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 000000000027546f  /system/lib/libart.so (art::ProfileSaver::Run()+342)
  #00  pc 000000000027773b  /system/lib/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+50)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "RenderThread" prio=5 tid=14 Native
  #00  pc 0000000000048f54  /system/lib/libc.so (__epoll_pwait+20)
  #00  pc 000000000001b6ed  /system/lib/libc.so (epoll_pwait+60)
  #00  pc 000000000001b71d  /system/lib/libc.so (epoll_wait+12)
  #00  pc 000000000001002d  /system/lib/libutils.so (android::Looper::pollInner(int)+120)
  #00  pc 000000000000ff1d  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+32)
  #00  pc 00000000000511f9  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+424)
  #00  pc 000000000000d1c9  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+144)
  #00  pc 0000000000068f89  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+80)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "hwuiTask1" prio=5 tid=15 Native
  #00  pc 000000000001900c  /system/lib/libc.so (syscall+28)
  #00  pc 000000000004737b  /system/lib/libc.so (__pthread_cond_timedwait(pthread_cond_internal_t*, pthread_mutex_t*, bool, timespec const*)+102)
  #00  pc 0000000000052d27  /system/lib/libhwui.so (???)
  #00  pc 0000000000052c9d  /system/lib/libhwui.so (???)
  #00  pc 000000000000d24b  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+274)
  #00  pc 0000000000068f89  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+80)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)
  
  "Sqflite" prio=5 tid=18 Native
  #00  pc 0000000000048f54  /system/lib/libc.so (__epoll_pwait+20)
  #00  pc 000000000001b6ed  /system/lib/libc.so (epoll_pwait+60)
  #00  pc 000000000001b71d  /system/lib/libc.so (epoll_wait+12)
  #00  pc 000000000001002d  /system/lib/libutils.so (android::Looper::pollInner(int)+120)
  #00  pc 000000000000ff1d  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+32)
  #00  pc 00000000000ace21  /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, _jobject*, int)+24)
  #00  pc 00000000000b9ffd  /system/framework/arm/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+92)
  at android.os.MessageQueue.nativePollOnce (Native method)
  at android.os.MessageQueue.next (MessageQueue.java:325)
  at android.os.Looper.loop (Looper.java:142)
  at android.os.HandlerThread.run (HandlerThread.java:65)
  
  "1.ui" prio=5 (not attached)

  "1.raster" prio=5 (not attached)

  "1.io" prio=5 (not attached)

  "eel.arabicbible" prio=5 (not attached)

  "eel.arabicbible" prio=5 (not attached)

  "eel.arabicbible" prio=5 (not attached)

  "eel.arabicbible" prio=5 (not attached)

  "eel.arabicbible" prio=5 (not attached)

  "GL updater" prio=5 (not attached)

  "GL updater" prio=5 (not attached)

  "RenderThread" prio=5 (not attached)

  "DartWorker" prio=5 (not attached)
  
  "Signal Catcher" daemon prio=5 tid=3 Runnable
  #00  pc 00000000002e765b  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+130)
  #00  pc 0000000000378329  /system/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+204)
  #00  pc 0000000000374a5f  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+34)
  #00  pc 000000000038c943  /system/lib/libart.so (art::DumpCheckpoint::Run(art::Thread*)+698)
  #00  pc 0000000000385f1d  /system/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+324)
  #00  pc 0000000000385a13  /system/lib/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+530)
  #00  pc 0000000000385733  /system/lib/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+626)
  #00  pc 00000000003635d3  /system/lib/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+122)
  #00  pc 000000000036a6bf  /system/lib/libart.so (art::SignalCatcher::HandleSigQuit()+1282)
  #00  pc 0000000000369691  /system/lib/libart.so (art::SignalCatcher::Run(void*)+268)
  #00  pc 00000000000479df  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 000000000001b2dd  /system/lib/libc.so (__start_thread+32)

"HeapTaskDaemon" daemon prio=5 tid=5 Blocked
  #00  pc 000000000001900c  /system/lib/libc.so (syscall+28)
  #00  pc 00000000000b6e91  /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 00000000001caa57  /system/lib/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+278)
  #00  pc 00000000001cb021  /system/lib/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+44)
  #00  pc 000000000005504b  /system/framework/arm/boot-core-libart.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+74)
  at dalvik.system.VMRuntime.runHeapTasks (Native method)
  at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:461)
  at java.lang.Daemons$Daemon.run (Daemons.java:103)
  at java.lang.Thread.run (Thread.java:764)
```