question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ANR: Input dispatching timed out

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Andariuscommented, Feb 20, 2021

Like React-native-navigation ? Otherwise nothing that I wrote

0reactions
Andariuscommented, Apr 30, 2021

Seems to be fixed in latest version, closing

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found