Skip to content

ANR: Input dispatching timed out from production app  #70028

Open

Description

@nicknma

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)

Activity

  1. iapicca commented on Nov 8, 2020

    @iapicca

    @nicknma
    can you provide your flutter doctor -v,
    your pubspec.yaml
    and your flutter run -v (or flutter run --release -v )
    if you are experiencing this issue in production the list of affected devices would be useful

  2. nicknma commented on Nov 8, 2020

    @nicknma
    Author

    Flutter doctor

    [√] Flutter (Channel beta, 1.23.0-18.1.pre, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
        • Flutter version 1.23.0-18.1.pre at C:\flutter
        • Framework revision 198df796aa (3 weeks ago), 2020-10-15 12:04:33 -0700
        • Engine revision 1d12d82d9c
        • Dart version 2.11.0 (build 2.11.0-213.1.beta)
    
     
    [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
        • Android SDK at C:\AndroidSdk
        • Platform android-30, build-tools 29.0.2
        • ANDROID_SDK_ROOT = C:\AndroidSdk
        • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
        • All Android licenses accepted.
    
    [√] Chrome - develop for the web
        • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
    
    [√] Android Studio (version 4.1.0)
        • Android Studio at C:\Program Files\Android\Android Studio
        • Flutter plugin can be installed from:
           https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
           https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    
    [√] VS Code, 64-bit edition (version 1.51.0)
        • VS Code at C:\Program Files\Microsoft VS Code
        • Flutter extension version 3.16.0
    
    [√] Connected device (3 available)
        • Web Server (web) • web-server • web-javascript • Flutter Tools
        • Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.183
        • Edge (web)       • edge       • web-javascript • Microsoft Edge 86.0.622.51
    
    • No issues found!
    
    
    **pubspec.yaml**
    name: arabicbible
    description: A new Flutter project.
    
    publish_to: 'none' 
    
    version: 1.0.0+1
    
    environment:
      sdk: ">=2.7.0 <3.0.0"
    
    dependencies:
      flutter:
        sdk: flutter
    
      cupertino_icons: ^1.0.0
    
      xml: ^4.2.0
    
      flutter_simple_dependency_injection: any
     
      provider: ^3.2.0
    
      shared_preferences: ^0.5.12+2
    
      tuple: ^1.0.3
    
      flutter_colorpicker: ^0.3.4
      
      wakelock: ^0.1.4+2
    
      sqflite:
      path:
    dev_dependencies:
      flutter_test:
        sdk: flutter
    flutter:
      uses-material-design: true
    
      assets:
        - assets/
        - assets/tsk/
        - assets/arabic/
        - assets/arabic/commentary/
        - assets/arabic/introductions/
        - assets/arabic/dictionary/
        - assets/arabic/dictionary/references/
        - assets/arabic/dictionary/words/
        - assets/french/
        - assets/french/commentary/
        - assets/farsi/
        - assets/farsi/commentary/
        - assets/versions/
    
      fonts:
        - family: CustomIcons
          fonts:
            - asset: assets/fonts/CustomIcons.ttf
    
    **Flutter run -v**
    [ +149 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
    [  +85 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
    [        ] 198df796aa80073ef22bdf249e614e2ff33c6895
    [        ] executing: [C:\flutter/] git tag --points-at HEAD
    [  +83 ms] Exit code 0 from: git tag --points-at HEAD
    [        ] 1.23.0-18.1.pre
    [  +14 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
    [  +47 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
    [        ] origin/beta
    [        ] executing: [C:\flutter/] git ls-remote --get-url origin
    [  +44 ms] Exit code 0 from: git ls-remote --get-url origin
    [        ] https://github.com/flutter/flutter.git
    [ +118 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
    [  +42 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
    [   +8 ms] beta
    [ +118 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
    [   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
    [   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [  +38 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
    [  +80 ms] executing: C:\AndroidSdk\platform-tools\adb.exe devices -l
    [  +97 ms] List of devices attached
    [  +32 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
    [  +41 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
    [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
    [   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
    [  +89 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
    [  +94 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
    [  +14 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
    [  +57 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
    [  +92 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
    [  +13 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
    [ +127 ms] No supported devices connected.
    [  +77 ms] The following devices were found, but are not supported by this project:
               Web Server (web) • web-server • web-javascript • Flutter Tools
               Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.183
               Edge (web)       • edge       • web-javascript • Microsoft Edge 86.0.622.51
               If you would like your app to run on web, consider running `flutter create .` to generate projects for these platforms.
    
    [ +197 ms] "flutter run" took 1,083ms.
    [  +63 ms] 
               #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
               #1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:357:7)
               <asynchronous suspension>
               #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:961:11)
               <asynchronous suspension>
               #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:864:33)
               <asynchronous suspension>
               #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart)
               #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
               #6      _rootRun (dart:async/zone.dart:1190:13)
               #7      _CustomZone.run (dart:async/zone.dart:1093:19)
               #8      _runZoned (dart:async/zone.dart:1630:10)
               #9      runZoned (dart:async/zone.dart:1550:10)
               #10     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
               #11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:853:20)
               #12     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
               #13     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:335:21)
               #14     _rootRunUnary (dart:async/zone.dart:1198:47)
               #15     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
               #16     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
               #17     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
               #18     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
               #19     Future._completeWithValue (dart:async/future_impl.dart:529:5)
               #20     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
               #21     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
               #22     FlutterVersion.checkFlutterVersionFreshness (package:flutter_tools/src/version.dart)
               #23     _rootRunUnary (dart:async/zone.dart:1198:47)
               #24     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
               #25     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
               #26     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
               #27     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
               #28     Future._completeWithValue (dart:async/future_impl.dart:529:5)
               #29     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
               #30     _rootRun (dart:async/zone.dart:1190:13)
               #31     _CustomZone.run (dart:async/zone.dart:1093:19)
               #32     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
               #33     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
               #34     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
               #35     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
               #36     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
               #37     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
    
    
    [ +608 ms] ensureAnalyticsSent: 231ms
    [   +3 ms] Running shutdown hooks
    [  +45 ms] Shutdown hooks complete
    [   +2 ms] exiting with code 1
    
  3. iapicca commented on Nov 9, 2020

    @iapicca

    @nicknma
    [ +127 ms] No supported devices connected.
    your app won't run without a device attached

    it's hard to tell if the issue depends from flutter since there are 3rd party plugins and packages
    I'd bet on wakelock since it uses native components
    (as you can see from the java errors in your logs) and you are using an obsolete version.

    regardless the validity of this issue I'd definitely update all the dependencies
    especially the aforementioned

  4. darshankawar commented on Nov 9, 2020

    @darshankawar
    Member

    @nicknma
    As @iapicca mentioned, please try by removing the relevant 3rd party plugin code and see if you still encounter same error. If so, provide a minimal complete reproducible code sample that we can copy paste and run in IDE that will possibly show the error.
    Thanks.

  5. added
    in triagePresently being triaged by the triage team
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 9, 2020
  6. nicknma commented on Nov 9, 2020

    @nicknma
    Author

    That's the problem, I am not able to reproduce this problem locally, I only see the crashes on the Console in prod. I will try what you suggested. Thank you.

  7. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 9, 2020
  8. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 10, 2020
  9. nicknma commented on Nov 11, 2020

    @nicknma
    Author

    I removed the wakelock package and implemented my own MethodChannel to native code to keep the device awake. I am still getting this ANR which I can not reproduce locally.
    This is the Kotlin method that ultimately gets called from Flutter

       private fun wake(on: Boolean?):Boolean{
            val enable = on?:false
            return try{
                if (enable) {
                    window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
                } else {
                    window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
                }
                true
            } catch (e: Exception) {
                false
            }
        }
    
    Type
    "main" prio=5 tid=1 Native
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 000000000013e0b4  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
      at android.os.MessageQueue.nativePollOnce (MessageQueue.java)
      at android.os.MessageQueue.next (MessageQueue.java:336)
      at android.os.Looper.loop (Looper.java:182)
      at android.app.ActivityThread.main (ActivityThread.java:7782)
      at java.lang.reflect.Method.invoke (Method.java)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:981)
    Type
    "Jit thread pool worker thread 0" daemon prio=5 tid=2 Native
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 000000000014b1f4  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
      #00  pc 00000000005146c0  /apex/com.android.runtime/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)+256)
      #00  pc 0000000000513a4c  /apex/com.android.runtime/lib64/libart.so (art::ThreadPoolWorker::Run()+144)
      #00  pc 000000000051350c  /apex/com.android.runtime/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)+148)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "queued-work-looper" prio=5 tid=3 Native
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 000000000013e0b4  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
      at android.os.MessageQueue.nativePollOnce (Native method)
      at android.os.MessageQueue.next (MessageQueue.java:336)
      at android.os.Looper.loop (Looper.java:182)
      at android.os.HandlerThread.run (HandlerThread.java:67)
    Type
    "AsyncTask #5" prio=5 tid=4 Waiting
      at sun.misc.Unsafe.park (Native method)
      at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
      at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill (SynchronousQueue.java:459)
      at java.util.concurrent.SynchronousQueue$TransferStack.transfer (SynchronousQueue.java:362)
      at java.util.concurrent.SynchronousQueue.take (SynchronousQueue.java:920)
      at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
      at java.lang.Thread.run (Thread.java:919)
    Type
    "ReferenceQueueDaemon" daemon prio=5 tid=9 Waiting
      at java.lang.Object.wait (Native method)
      at java.lang.Object.wait (Object.java:442)
      at java.lang.Object.wait (Object.java:568)
      at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:220)
      at java.lang.Daemons$Daemon.run (Daemons.java:142)
      at java.lang.Thread.run (Thread.java:919)
    Type
    "FinalizerDaemon" daemon prio=5 tid=10 Waiting
      at java.lang.Object.wait (Native method)
      at java.lang.Object.wait (Object.java:442)
      at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:190)
      at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:211)
      at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:276)
      at java.lang.Daemons$Daemon.run (Daemons.java:142)
      at java.lang.Thread.run (Thread.java:919)
    Type
    "FinalizerWatchdogDaemon" daemon prio=5 tid=11 Waiting
      at java.lang.Object.wait (Native method)
      at java.lang.Object.wait (Object.java:442)
      at java.lang.Object.wait (Object.java:568)
      at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded (Daemons.java:344)
      at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:324)
      at java.lang.Daemons$Daemon.run (Daemons.java:142)
      at java.lang.Thread.run (Thread.java:919)
    Type
    "Binder:31174_1" prio=5 tid=12 Native
      #00  pc 00000000000d3124  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
      #00  pc 000000000008bbd8  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
      #00  pc 0000000000059e58  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+244)
      #00  pc 000000000005a034  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
      #00  pc 000000000005a80c  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+80)
      #00  pc 0000000000080990  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
      #00  pc 00000000000135f0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+328)
      #00  pc 00000000000c4ac0  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "Binder:31174_2" prio=5 tid=13 Native
      #00  pc 00000000000d3124  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
      #00  pc 000000000008bbd8  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
      #00  pc 0000000000059e58  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+244)
      #00  pc 000000000005a034  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
      #00  pc 000000000005a898  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+220)
      #00  pc 0000000000080990  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
      #00  pc 00000000000135f0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+328)
      #00  pc 00000000000c4ac0  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "Profile Saver" daemon prio=5 tid=14 Native
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 000000000014b1f4  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
      #00  pc 0000000000346db8  /apex/com.android.runtime/lib64/libart.so (art::ProfileSaver::Run()+1128)
      #00  pc 000000000034ae8c  /apex/com.android.runtime/lib64/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+88)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "RenderThread" daemon prio=10 tid=16 Native
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 00000000002ddf68  /system/lib64/libhwui.so (android::uirenderer::ThreadBase::waitForWork()+132)
      #00  pc 00000000002ddd6c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+568)
      #00  pc 00000000000135f0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+328)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "hwuiTask1" daemon prio=6 tid=18 Native
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 0000000000072d50  /system/lib64/libc++.so (std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)+20)
      #00  pc 000000000035e1ac  /system/lib64/libhwui.so (android::uirenderer::CommonPool::workerLoop()+104)
      #00  pc 000000000035e04c  /system/lib64/libhwui.so (void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, android::uirenderer::CommonPool::CommonPool()::$_0> >(void*)+132)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "hwuiTask0" daemon prio=6 tid=19 Native
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 0000000000072d50  /system/lib64/libc++.so (std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)+20)
      #00  pc 000000000035e1ac  /system/lib64/libhwui.so (android::uirenderer::CommonPool::workerLoop()+104)
      #00  pc 000000000035e04c  /system/lib64/libhwui.so (void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, android::uirenderer::CommonPool::CommonPool()::$_0> >(void*)+132)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "Binder:31174_3" prio=5 tid=20 Native
      #00  pc 00000000000d3124  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
      #00  pc 000000000008bbd8  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
      #00  pc 0000000000059e58  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+244)
      #00  pc 000000000005a034  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
      #00  pc 000000000005a898  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+220)
      #00  pc 0000000000080990  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
      #00  pc 00000000000135f0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+328)
      #00  pc 00000000000c4ac0  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "Sqflite" prio=5 tid=23 Native
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 000000000013e0b4  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
      at android.os.MessageQueue.nativePollOnce (Native method)
      at android.os.MessageQueue.next (MessageQueue.java:336)
      at android.os.Looper.loop (Looper.java:182)
      at android.os.HandlerThread.run (HandlerThread.java:67)
    Type
    "1.ui" prio=5 (not attached)
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 000000000001364c  /system/lib64/libandroid.so (ALooper_pollOnce+96)
      #00  pc 00000000002c53c4  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
      #00  pc 00000000002c2420  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "1.raster" prio=5 (not attached)
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 000000000001364c  /system/lib64/libandroid.so (ALooper_pollOnce+96)
      #00  pc 00000000002c53c4  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
      #00  pc 00000000002c2420  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "1.io" prio=5 (not attached)
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 00000000000180e4  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
      #00  pc 0000000000017fb4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
      #00  pc 000000000001364c  /system/lib64/libandroid.so (ALooper_pollOnce+96)
      #00  pc 00000000002c53c4  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
      #00  pc 00000000002c2420  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 00000000000e7e74  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_wait+60)
      #00  pc 00000000003b05dc  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "eel.arabicbible" prio=5 (not attached)
      #00  pc 00000000000d2fe8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
      #00  pc 0000000000515430  /data/app/com.injeel.arabicbible-qeAfkpIThuxV6RgZkpOt_Q==/split_config.arm64_v8a.apk!libflutter.so (???)
    Type
    "RenderThread" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 000000000008f130  /apex/com.android.runtime/lib64/bionic/libc.so (sem_wait+120)
      #00  pc 0000000000270da4  /vendor/lib64/egl/libGLESv2_adreno.so (???)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "RenderThread" prio=5 (not attached)
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 0000000000083dd0  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+140)
      #00  pc 000000000008f130  /apex/com.android.runtime/lib64/bionic/libc.so (sem_wait+120)
      #00  pc 0000000000270da4  /vendor/lib64/egl/libGLESv2_adreno.so (???)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "Signal Catcher" daemon prio=5 tid=7 Runnable
      #00  pc 0000000000410bcc  /apex/com.android.runtime/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+140)
      #00  pc 00000000004f8324  /apex/com.android.runtime/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+512)
      #00  pc 0000000000512c60  /apex/com.android.runtime/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+828)
      #00  pc 000000000050ba84  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+456)
      #00  pc 000000000050af68  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1964)
      #00  pc 000000000050a648  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+844)
      #00  pc 00000000004c5a5c  /apex/com.android.runtime/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+200)
      #00  pc 00000000004d9e94  /apex/com.android.runtime/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+1352)
      #00  pc 00000000004d8f40  /apex/com.android.runtime/lib64/libart.so (art::SignalCatcher::Run(void*)+252)
      #00  pc 00000000000e8930  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
      #00  pc 0000000000085094  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Type
    "HeapTaskDaemon" daemon prio=5 tid=8 WaitingForTaskProcessor
      #00  pc 000000000008014c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
      #00  pc 000000000014b1f4  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
      #00  pc 000000000028f040  /apex/com.android.runtime/lib64/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+444)
      #00  pc 000000000028f8cc  /apex/com.android.runtime/lib64/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+92)
      at dalvik.system.VMRuntime.runHeapTasks (Native method)
      at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:528)
      at java.lang.Daemons$Daemon.run (Daemons.java:142)
      at java.lang.Thread.run (Thread.java:919)
    
    **pubspec.yaml**
    environment:
      sdk: ">=2.7.0 <3.0.0"
    
    dependencies:
      flutter:
        sdk: flutter
    
      cupertino_icons: ^1.0.0
      xml: ^4.2.0
      flutter_simple_dependency_injection: any
      provider: ^3.2.0
      shared_preferences: ^0.5.12+2
      tuple: ^1.0.3
      flutter_colorpicker: ^0.3.4
      sqflite: ^1.3.2+1
      path: ^1.7.0
      
    
  10. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 11, 2020
  11. darshankawar commented on Nov 12, 2020

    @darshankawar
    Member

    @nicknma
    Can you provide project repo link that we can clone and run to see if we can replicate it ?
    Thanks.

  12. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 12, 2020
  13. nicknma commented on Nov 13, 2020

    @nicknma
    Author

    Unfortunately I can't. First it is on a private git server and second a lot of the text content is copy righted so I can't intentionally make it public by sharing it. I might be able to strip out all the copy righted info and share with you but I can't just share it publicly. Also, I found this, not sure it it helps, but it is related to the same issue. Looks like the problem is caused by NDK event queuing which I am assuming is used in the Flutter engine. http://ps3computing.blogspot.com/2012/12/anr-application-not-responding.html

  14. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 13, 2020
  15. 20 remaining items

  16. Doppelklick commented on Oct 17, 2021

    @Doppelklick

    Camera plugin is causing the ANR as I can see this on my play console
    Input dispatching timed out (e241af4 org.ubitech.attendance/org.ubitech.attendance.MainActivityWithoutBGService (server) is not responding. Waited 10000ms for MotionEvent)

    same problem here
    @ubitechdevelopers did you solve it?

  17. muknta commented on Jan 12, 2022

    @muknta

    Same problem here. Many users with Android 11 was receiving ANRs. Total number - 0.5% of all users each day.

  18. jeff-odopass commented on Mar 3, 2022

    @jeff-odopass

    Same problem here, using camera plugin version 0.9.4+11, this ANR also represents 0.3% of all users and only occurs for Android 11 users. This may be moved to camera plugin github page.

     at java.lang.Object.wait (Native method)
      at java.lang.Object.wait (Object.java:442)
      at java.lang.Thread.join (Thread.java:1438)
      at java.lang.Thread.join (Thread.java:1519)
      at io.flutter.plugins.camera.Camera.stopBackgroundThread (Camera.java:620)
      at io.flutter.plugins.camera.Camera.close (Camera.java:1141)
      at io.flutter.plugins.camera.Camera.dispose (Camera.java:1147)
      at io.flutter.plugins.camera.MethodCallHandlerImpl.onMethodCall (MethodCallHandlerImpl.java:356)
      at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:262)
      at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:178)
      at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0 (DartMessenger.java:206)
      at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger (DartMessenger.java)
      at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$6ZD1MYkhaLxyPjtoFDxe45u43DI.run (lambda)
      at android.os.Handler.handleCallback (Handler.java)
      at android.os.Handler.dispatchMessage (Handler.java)
      at android.os.Looper.loop (Looper.java)
      at android.app.ActivityThread.main (ActivityThread.java)
      at java.lang.reflect.Method.invoke (Native method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java)
    
  19. DadiCode commented on Mar 10, 2022

    @DadiCode

    Did you find any solution? I am seeing this kind of errors in Google Play Vitals on my applications made with Flutter.

  20. muknta commented on Mar 10, 2022

    @muknta

    @DadiCode I think it relates to the overload of main thread. Solution can be using of isolates for downloads

  21. DVendy commented on Mar 22, 2022

    @DVendy

    Any updates on this? I'm getting this ANR's from device ZTE Z839V - Android 11

  22. jeff-odopass commented on Mar 22, 2022

    @jeff-odopass

    I don't, except downgrading Flutter to 2.8.0 which is not a solution in my case.

  23. itsJoKr commented on May 17, 2022

    @itsJoKr

    We have the same issue. We could even reproduce it with specific Samsung phones. It would result in whitescreen and the app would never run which is big issue.

    We've tracked it down to this specific issue: https://issuetracker.google.com/issues/230950647?pli=1

    You can give it a star there.

  24. deepak786 commented on May 17, 2022

    @deepak786

    I also have the similar ANRs #101886 (comment)

    But It is not clear, are they the same as this one or not.
    because the title of the ANRs for me is Input dispatching timed out (ActivityRecord{f096c18} does not have a focused window)

  25. Goolpe commented on Aug 7, 2023

    @Goolpe

    The same issue after upgrading Flutter from 3.7.11 to 3.10 (maybe cause of packages but not sure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: productionIssues experienced in live production appsc: fatal crashCrashes that terminate the processengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions