Getting ANR in WorkManger due to The "main" (tid=1) thread is in suspended state. This is likely due to garbage collection

Viewed 811

I have implemented the WorkManager version 'android.arch.work:work-runtime:1.0.0-alpha06' . I am getting ANR mostly in Application onCreate with this message.

The "main" (tid=1) thread is in suspended state. This is likely due to garbage collection.

With the following code pointer

Broadcast of Intent { act=android.intent.action.TIME_SET flg=0x34000010 cmp=com.opentalk/androidx.work.impl.background.systemalarm.RescheduleReceiver }

androidx.work.impl.background.systemalarm.RescheduleReceiver

Mostly these ANR are shown in Third party SDK initialization. For example :

com.twitter.sdk.android.tweetui.TweetUi.<init> (TweetUi.java)

com.twitter.sdk.android.Twitter. (Twitter.java)

Please suggest how to handle this. Thanks in advance.

0 Answers
Related