Android Question "The application may be doing too much work on its main thread" - what does it mean ?

amorosik

Expert
Licensed User
B4X:
Skipped 93 frames!  The application may be doing too much work on its main thread.
2021-09-18 19:44:54 469 - frmScreen6.cmd11_click
2021-09-18 19:44:54 643 - frmScreen6.cmd8_click
2021-09-18 19:44:54 695 - frmScreen6.cmd10_click
2021-09-18 19:44:54 826 - frmScreen6.cmd7_click
2021-09-18 19:44:54 833 - frmScreen6.cmd11_click
2021-09-18 19:44:54 948 - frmScreen6.cmd9_click
2021-09-18 19:44:54 956 - frmScreen6.cmd11_click
2021-09-18 19:44:54 961 - frmScreen6.cmd8_click
2021-09-18 19:44:54 966 - frmScreen6.cmd10_click
2021-09-18 19:44:55 106 - frmScreen6.cmd12_click
2021-09-18 19:44:55 112 - frmScreen6.cmd7_click
2021-09-18 19:44:55 117 - frmScreen6.cmd9_click
Skipped 77 frames!  The application may be doing too much work on its main thread.
2021-09-18 19:44:55 408 - Mqtt.SendMessage
2021-09-18 19:44:55 414 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=8;TEL=123456789;MEZ=5SV;GUID=5465894F-1AC1-3D7A-E8AF-53583CAD0183;
2021-09-18 19:44:55 597 - Mqtt.SendMessage
2021-09-18 19:44:55 600 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=10;TEL=123456789;MEZ=5SV;GUID=30ED2043-CBF2-D90D-8AE6-5A6DD1846DCD;
2021-09-18 19:44:55 768 - Mqtt.SendMessage
2021-09-18 19:44:55 774 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=7;TEL=123456789;MEZ=5SV;GUID=42F2DD98-AB44-B833-D90B-CC769E5B57BC;
2021-09-18 19:44:55 882 - Mqtt.SendMessage
2021-09-18 19:44:55 888 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=9;TEL=123456789;MEZ=5SV;GUID=095DCD74-9B64-06F1-F178-26BA5BF6A5AD;
2021-09-18 19:44:56 068 - Mqtt.SendMessage
2021-09-18 19:44:56 074 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=12;TEL=123456789;MEZ=5SV;GUID=79C0D3B9-B2C4-3F55-9088-19827A0466A3;
Skipped 52 frames!  The application may be doing too much work on its main thread.
2021-09-18 19:44:56 163 - Mqtt.SendMessage
2021-09-18 19:44:56 170 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=11;TEL=123456789;MEZ=5SV;GUID=5F608E1F-D676-365B-EBED-46997B121AF0;
2021-09-18 19:44:56 291 - Mqtt.SendMessage
2021-09-18 19:44:56 296 - Mqtt.SendMessage - Inviato Topic=telephone_to_consolle - Payload=COM=KEY_PRESSED;VAL=8;TEL=123456789;MEZ=5SV;GUID=5FEB64D0-C0AE-AC4F-AB73-699E0669DA34;

I realized that not using the filter on the log window, a warning like this appears when I perform many operations quickly, such as pressing buttons, each of which causes commands to be sent via mqtt

Skipped 77 frames! The application may be doing too much work on its main thread.

What exactly does the report mean?
Is it necessary to remedy somehow?
(B4A 10.70, Jdk-11.0.1)
 
Last edited:
Top