The flutter phone is stuck and needs to wait. The main thread is occupied.

ANR principle analysis
WaitingInMainSignalCatcherLoop

The time when ANR occurs and specific prompts are recorded in the log. WaitingInMainSignalCatcherLoop represents the main thread waiting exception. The application may be doing too much work on its main thread. The same indicates too much processing time.

traces
The second sentence in the log just now is Wrote stack traces to '/data/anr/traces.txt', indicating that the ANR exception has been output to the traces.txt file, use adb Command to export this file from the phone.

Export the traces file through adb pull /data/anr/traces.txt

I remember that I was debugging the video black screen problem at the beginning, and added print in the plug-in, and then the problem of freezing occurred. After commenting it out later, the above problem still occurred.

Guess you like

Origin blog.csdn.net/weixin_44911775/article/details/133860170