Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

ANRs after enabling runtimeInBackgroundThread option

Open megajogos opened this issue 4 months ago • 1 comments

Hello, I recently enabled the runtimeInBackgroundThread option in my app.xml, to improve the performance of my app. However, after that, ANRs started to occur at different points in the use of the app, but the error seems to be similar:

2024-10-15 10:16:24.646  1434-1643  InputReader             system_server                        I  Touch event's action is 0x1 (id=3, t=0) [pCnt=1, s=] when=140361.776010
2024-10-15 10:16:24.708  1434-1642  InputDispatcher         system_server                        D  1af0521 air.br.com.megajogos.mobile/air.br.com.megajogos.mobile.AIRAppEntry (server) is not responding. Waited 10000ms for MotionEvent
2024-10-15 10:16:24.713  1434-1642  InputDispatcher         system_server                        W  Window 1af0521 air.br.com.megajogos.mobile/air.br.com.megajogos.mobile.AIRAppEntry (server) is unresponsive: 1af0521 air.br.com.megajogos.mobile/air.br.com.megajogos.mobile.AIRAppEntry (server) is not responding. Waited 10000ms for MotionEvent
2024-10-15 10:16:24.713  1434-1642  InputDispatcher         system_server                        W  Canceling events for 1af0521 air.br.com.megajogos.mobile/air.br.com.megajogos.mobile.AIRAppEntry (server) because it is unresponsive
2024-10-15 10:16:24.713  1434-1642  WindowManager           system_server                        I  ANR in Window{1af0521 u0 air.br.com.megajogos.mobile/air.br.com.megajogos.mobile.AIRAppEntry}. Reason:1af0521 air.br.com.megajogos.mobile/air.br.com.megajogos.mobile.AIRAppEntry (server) is not responding. Waited 10000ms for MotionEvent
2024-10-15 10:16:24.775  1434-1642  ActivityManager         system_server                        W  anr : air.br.com.megajogos.mobile,10751```

How can I resolve them? Below is the full logcat for review.
[logcat anr 1.txt](https://github.com/user-attachments/files/17385332/logcat.anr.1.txt)
[logcat anr 2 after google login.txt](https://github.com/user-attachments/files/17385334/logcat.anr.2.after.google.login.txt)

megajogos avatar Oct 15 '24 21:10 megajogos