I am testing an Android app on a device and getting warnings in the Output window “The application may be doing too much work on its main thread.” But visually I can’t see any problems when I run the app on my device. Should I try to get rid of these warnings? and if I should I am wondering what recommendations are. The problem is that I get them inconsistently. I can run the same code and it can be executed with these warnings or without them.
Here are chunks of my output protocol.
12-08 18:25:19.699 D/Mono (27684): [0x6c096d80] hill climbing, change max number of threads 5
12-08 18:25:20.739 D/Mono (27684): [0x6c096d80] hill climbing, change max number of threads 16
12-08 18:25:23.329 D/Mono (27684): [0x6c096d80] hill climbing, change max number of threads 4
12-08 18:25:25.939 D/Mono (27684): [0x6cd49960] hill climbing, change max number of threads 5
12-08 18:25:26.239 D/Mono (27684): [0x6ca55aa0] hill climbing, change max number of threads 17
12-08 18:25:26.309 D/Mono (27684): [0x72ad2380] hill climbing, change max number of threads 18
12-08 18:25:27.469 D/Mono (27684): [0x6cd49960] hill climbing, change max number of threads 4
12-08 18:25:30.599 I/Choreographer(27684): Skipped 55 frames! The application may be doing too much work on its main thread.
12-08 18:26:21.959 D/Mono (27684): [0x6c096d80] hill climbing, change max number of threads 4
12-08 18:26:23.819 D/Mono (27684): GC_BRIDGE waiting for bridge processing to finish
12-08 18:26:23.859 D/dalvikvm(27684): GC_EXPLICIT freed 984K, 7% free 15002K/16120K, paused 0ms+3ms, total 23ms
12-08 18:26:23.869 D/Mono (27684): GC_OLD_BRIDGE num-objects 916 num_hash_entries 22244 sccs size 20608 init 0.00ms df1 22.51ms sort 6.83ms dfs2 9.12ms setup-cb 1.42ms free-data 9.06ms links 23367/23367/19796/27 dfs passes 46527/43975
12-08 18:26:23.869 D/Mono (27684): GC_MAJOR: (LOS overflow) pause 55.70ms, total 56.01ms, bridge 0.00ms major 5104K/0K los 2347K/0K
12-08 18:26:23.879 D/Mono (27684): [0x6ca55aa0] hill climbing, change max number of threads 15
12-08 18:26:24.829 I/Choreographer(27684): Skipped 57 frames! The application may be doing too much work on its main thread.
12-08 18:23:46.129 D/Mono (27684): GC_BRIDGE waiting for bridge processing to finish
12-08 18:23:46.149 D/dalvikvm(27684): GC_EXPLICIT freed 340K, 5% free 13789K/14400K, paused 1ms+3ms, total 22ms
12-08 18:23:46.149 D/Mono (27684): GC_OLD_BRIDGE num-objects 419 num_hash_entries 497 sccs size 497 init 0.00ms df1 0.53ms sort 0.11ms dfs2 0.94ms setup-cb 0.68ms free-data 0.17ms links 88/88/81/1 dfs passes 1004/585
12-08 18:23:46.149 D/Mono (27684): GC_MAJOR: (LOS overflow) pause 34.42ms, total 34.74ms, bridge 0.00ms major 2480K/0K los 2282K/0K
12-08 18:23:47.179 I/Choreographer(27684): Skipped 60 frames! The application may be doing too much work on its main thread.
12-08 18:23:47.219 D/TextView(27684): Constructor - Got Res id for appearance for textColorPrimaryInverse
12-08 18:24:35.319 D/dalvikvm(27684): GC_EXPLICIT freed 191K, 3% free 14224K/14552K, paused 0ms+2ms, total 19ms
12-08 18:24:35.319 D/Mono (27684): GC_OLD_BRIDGE num-objects 163 num_hash_entries 48436 sccs size 33850 init 0.00ms df1 53.79ms sort 12.41ms dfs2 47.85ms setup-cb 2.56ms free-data 26.37ms links 75378/75378/538780/16 dfs passes 123977/109228
12-08 18:24:35.319 D/Mono (27684): GC_MINOR: (Nursery full) pause 61.77ms, total 62.28ms, bridge 0.00ms promoted 4208K major 4208K los 12384K
12-08 18:24:35.469 V/ContextImpl(27684): ----- packageName = android is NOT LOCKED -----
12-08 18:24:35.469 I/Activity(27684): share intent: Intent { act=android.intent.action.SEND typ=message/rfc822 (has extras) }
12-08 18:24:35.469 I/Activity(27684): share intent from packageName: com.synergy.synergymobile
12-08 18:24:35.469 I/Activity(27684): share intent from className: md5ea419801d401be36e42bb67ef2f9e7ee.MainActivity
12-08 18:24:35.499 I/Choreographer(27684): Skipped 68 frames! The application may be doing too much work on its main thread.