Bad ANR rate errors...

I get a lot of ANR arrors with my Android game. Here is an example:

Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 2. Wait queue head age: 18259.3ms.)

com.ansca.corona.CoronaActivity

 

and

 

Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 3. Wait queue head age: 6637.4ms.)

com.ansca.corona.CoronaActivity

 

I have no idea what this means and where to look at in the code to get this faster.

Does anybody have the same problem and maybe was able to fix it?

 

What version of Corona are you using and what plugins are you using (post your build.settings!)

Rob

I’m using Corona build 3407 and the plugins part from the build.settings:

plugins =             {                              ["plugin.flurry.analytics"] =                 {                     publisherId = "com.coronalabs"                 },                 ["plugin.admob"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { android=true }                 },                 ["plugin.gpgs.v2"] = {                     publisherId = "com.coronalabs",                     supportedPlatforms = { ["android"] = true }                 },                 ["plugin.google.iap.v3"] =                 {                   publisherId = "com.coronalabs",                   supportedPlatforms = { android = true }                 },                 ["CoronaProvider.native.popup.social"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { android=true }                 },                 -- needed for dusk:                 ["plugin.bit"] =                 {                     publisherId = "com.coronalabs"                 },                  },

You should be able to drill down into those errors on the Google Play console and get more information. If you can do that it would be helpful.

Rob

…and define “a lot” (how many events vs how many sessions and over what period)

i get these too, but not “a lot”, rather “extremely few”

I found moving from support all to only Android 5+ massively dropped these ANRs

Here is some more info:

https://pastebin.com/s3QTZtfP

Can I ask you to edit your post and use a service like pastebin.com to paste that stack trace into and then put the link in the post?

Thanks

Rob

Here (and above) it is: https://pastebin.com/s3QTZtfP

What version of Corona are you using and what plugins are you using (post your build.settings!)

Rob

I’m using Corona build 3407 and the plugins part from the build.settings:

plugins =             {                              ["plugin.flurry.analytics"] =                 {                     publisherId = "com.coronalabs"                 },                 ["plugin.admob"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { android=true }                 },                 ["plugin.gpgs.v2"] = {                     publisherId = "com.coronalabs",                     supportedPlatforms = { ["android"] = true }                 },                 ["plugin.google.iap.v3"] =                 {                   publisherId = "com.coronalabs",                   supportedPlatforms = { android = true }                 },                 ["CoronaProvider.native.popup.social"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { android=true }                 },                 -- needed for dusk:                 ["plugin.bit"] =                 {                     publisherId = "com.coronalabs"                 },                  },

You should be able to drill down into those errors on the Google Play console and get more information. If you can do that it would be helpful.

Rob

…and define “a lot” (how many events vs how many sessions and over what period)

i get these too, but not “a lot”, rather “extremely few”

I found moving from support all to only Android 5+ massively dropped these ANRs

Here is some more info:

https://pastebin.com/s3QTZtfP

Can I ask you to edit your post and use a service like pastebin.com to paste that stack trace into and then put the link in the post?

Thanks

Rob

Here (and above) it is: https://pastebin.com/s3QTZtfP