ANR: Input dispatching timed out
See original GitHub issueDescription
App crashes on Android in production with this error
Screenshots
ANR: 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: 2. Wait queue head age: 5564.1ms.)
at com.swmansion.reanimated.Scheduler.triggerUI(Scheduler.java:-2)
at com.swmansion.reanimated.Scheduler.access$000(Scheduler.java:7)
at com.swmansion.reanimated.Scheduler$1.run(Scheduler.java:17)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7711)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Full stack trace here
Steps To Reproduce
Let the app run for a few minutes
Expected behavior
No crash
Actual behavior
Crash
Snack or minimal code example
Unknown, Sorry not to be helpful here…
Package versions
- React: 16.13.1
- React Native: 0.63.2
- React Native Reanimated: ^2.0.0-rc.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
android - ANR Input dispatching timed out - Stack Overflow
ANR Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events ...
Read more >What is "Input dispatching timed out" and how to solve it
It means, the main thread which stacktrace you're showing here is stuck, and it didn't process the event that was being send to...
Read more >ANR : Input dispatching timed out · Issue #2812 - GitHub
My issue was caused by excessive use of useAnimatedReaction. After I replaced useAnimatedReaction with another hook, the ANR was gone. We are ...
Read more >Android : ANR Input dispatching timed out - YouTube
Android : ANR Input dispatching timed out [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Android : ANR Input ...
Read more >ANR rate too high - "Input dispatching timed out" errors?
Are you using Ads extension? Which extensions exactly? Maybe Ads blocking the main thread when loading/displaying. It's common problem last time ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Like React-native-navigation ? Otherwise nothing that I wrote
Seems to be fixed in latest version, closing