CorvetteCole / PixelWatchFace

A minimalistic and open-source watchface for WearOS
GNU General Public License v3.0
72 stars 15 forks source link

Find and fix ANR #39

Closed CorvetteCole closed 4 years ago

CorvetteCole commented 4 years ago

Lots of ANRs from this: "Broadcast of Intent { act=android.intent.action.TIME_TICK flg=0x50200014 (has extras) }".

This can be triggered by something blocking the UI thread for more than 5 seconds.

Note: onReceive() of a BroadcastReceiver runs in the main thread.

Sounds like the app is doing something big every once and awhile when the time ticks

CorvetteCole commented 4 years ago

This is likely related to something that happens during the initial app start, as about the same percentage of users with this ANR are also experiencing "cold starts" (starts that take more than 5 seconds).

This may not be a bug worth fixing at all if it only affects background work for a tiny subset of users once or twice (about 0.05% of users experience this).

CorvetteCole commented 4 years ago

This ANR seems to not exist in the 1.5.5 release. Likely due to structural code changes. Closing for now...