How to solve ANR on Android firemonkey

  

On my Android application develop with Firemonkey 10.4.1, I see a lot of ANR in my Google Play Console.
The first one is :

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. waitqueue length = 1, head.seq
= 14881924, Wait queue head age: 6480.1ms.)

And the second one :

Input dispatching timed out (9a5f6ef
com.xxx.myapp/com.embarcadero.firemonkey.FMXNativeActivity
(server) is not responding. Waited 10003ms for
FocusEvent(hasFocus=true))

My app contain a TMapView, show bitmap downloaded from my server (or take and upload). I change the loading method by a thread instead of task, but it’s same.
I don’t have any detail on how to get it. When I test in Android 32/64 I never got a ANR.
Does something exist to trace these error ? a event where I can add log ?

Comments are closed.