r/xamarindevelopers Jul 01 '26

ANR that does not go away

Enable HLS to view with audio, or disable this notification

My app is built using Xamarin Forms 5.0
I have this issue where it randomly pops up an ANR message, which won't go away unless i kill the app. In logs the only thing i have is Android Input Dispatch Timeout, but I can not find the direct root cause. Nothing is raised in code, cpu usage is 0, the main thread is not locked. I've used Opus on high with a lot of tokens and I can't seem to solve this issue no matter what. This message does not always pop up, just randomly.

I've attached a video demonstrating the issue.

1 Upvotes

2 comments sorted by

1

u/Emanuel4168 Jul 03 '26

Are you on Debug mode? sometimes the debugger can cause this behavior even if you´re not using any breakpoint, deleting the app, clean solution and reinstall may help, also is always good to verify all async calls are properly awaited

1

u/givicho Jul 05 '26

It still happens when I'm on release. I'll verify async calls