Lots of ANRs on Android 11

We did a release the other day and noticed that we are getting a ton of ANRs, especially on Android 11. We are using Corona build #3654. Anyone else running into this?

Input dispatching timed out (7ea6e32 com.sx.wonsterwords/com.ansca.corona.CoronaActivity (server) is not responding. Waited 10002ms for FocusEvent(hasFocus=false))



What plugins do you use?

@anon63346430 Here is our list:

  • plugin.zip
  • plugin.google.iap.billing
  • plugin.notifications.v2
  • plugin.reviewPopUp (tech.scotth)
  • plugin.firebaseAnalytics (tech.scotth)

We also have custom created plugins for

Here are some more details on the trace

at com.ansca.corona.Controller.stop (Controller.java)
  at com.ansca.corona.CoronaActivity.requestSuspendCoronaRuntime (CoronaActivity.java:2054)
  at com.ansca.corona.CoronaActivity.onPause (CoronaActivity.java:1877)
  at android.app.Activity.performPause (Activity.java:8327)
  at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1511)
  at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:4842)
  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:4803)
  at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:4751)
  at android.app.servertransaction.PauseActivityItem.execute (PauseActivityItem.java:46)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2131)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:236)
  at android.app.ActivityThread.main (ActivityThread.java:8019)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:600)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:967)
  at sun.misc.Unsafe.park (Native method)
  at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
  at java.util.concurrent.FutureTask.awaitDone (FutureTask.java:447)
  at java.util.concurrent.FutureTask.get (FutureTask.java:205)
  at com.adjust.sdk.Util.runSyncInPlayAdIdSchedulerWithTimeout (Util.java:157)
  at com.adjust.sdk.Util.getAdvertisingInfoObject (Util.java:106)
  at com.adjust.sdk.Util.getGoogleAdId (Util.java:224)
  at com.adjust.sdk.Util.getGoogleAdId (Util.java:186)
  at com.adjust.sdk.Adjust.getGoogleAdId (Adjust.java:280)
  at plugin.adjust.LuaLoader.adjust_getGoogleAdId (LuaLoader.java:909)
  at plugin.adjust.LuaLoader.access$6200 (LuaLoader.java:51)
  at plugin.adjust.LuaLoader$GetGoogleAdIdWrapper.invoke (LuaLoader.java:1454)
  at com.ansca.corona.JavaToNativeShim.nativeRender (Native method)
  at com.ansca.corona.JavaToNativeShim.render (JavaToNativeShim.java:204)
  at com.ansca.corona.Controller.updateRuntimeState (Controller.java:358)
  at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame (CoronaGLSurfaceView.java:434)
  at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1625)
  at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1380)

Have you seen this issue before?

Yes, I have a real issue with Android 11 also.

@anon63346430 Please do let me know if you have any leads on how to address these.

The crashes appear to be occurring with the adjust plugin just looking at the logs

@Scott_Harrison. mm… I think you are right. Maybe I’ll ask them as well…

Someone else mentioned that other apps that use ads are having similar issues. I wonder if those are also related to getting the advertisingID.

We are getting the same thing. Tons of ANRs, and we are using Adjust’s own plugin. I’ll forward this thread to our contact there.

@solares Yeah - if you can ping them as well, that would be great. So far my contact there says they’ve forwarded to engineering, but no news back yet. I think the more people contact them, the more urgency there would be.

I am using the following plug-ins, and I am experiencing ANR problems.
I’m looking for a way to solve this.

plugins =
{
------------------------------------------------------------------
plugins.solar2d.com
------------------------------------------------------------------
[“CoronaProvider.native.popup.social”] = { publisherId = “com.coronalabs” },
[“CoronaProvider.native.popup.activity”] = { publisherId = “com.coronalabs” },
[“plugin.notifications.v2”] = { publisherId = “com.coronalabs” },
[“plugin.utf8”] = { publisherId = “com.coronalabs” },
[“plugin.att”] = { publisherId = ‘com.solar2d’ },
[“plugin.unityads.v4”] = { publisherId = “com.solar2d” },

    ------------------------------------------------------------------
    -- solar2dmarketplace.com - scott
    ------------------------------------------------------------------
    ["plugin.gamecenter"] = { publisherId = "tech.scotth", marketplaceId = "my_id :D" },
},


Can you share some of the logs?

Thank you for your quick reply.
Please check the screenshot.


You could open up the reports you just posted, we can’t conclude much with just their titles. See if they have any sign of the plugins you’re using

Looks like and audio issue of some kind? It’s hard to tell, if you could expand the “com.anasca.corona.JavaToNative” that would be helpful

If you expand the top one (Native method - android.os.MessageQueue.nativePollOnce) what does the stack trace show?

details.txt (16.1 KB)