Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Investigating if certain plugins cause excessive ANRs
Started by perflubron Oct 24 2017 11:44 PM

36 replies to this topic
firebase firebase-analytics google google play anr kidoz admob
[TOPIC CONTROLS]
Page 2 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

chris_raz

[GLOBAL: userInfoPane.html]
chris_raz
  • Contributor

  • 245 posts
  • Corona SDK

Thanks for the detailed responce @plerflubron ... just uploaded an update to one of our apps, removed admob, dont have firebase, just kidoz now, so will see if that helps. Will post an update once the numbers start coming in

[TOPIC: post.html]
#27

DevilSquid – René

[GLOBAL: userInfoPane.html]
DevilSquid – René
  • Contributor

  • 157 posts
  • Corona SDK

Any new insight on this? The same error is the top one in our ANR list:
 

executing service

io.torcia.idletraveler/shared.google.play.services.base.PackageStateChangedService

shared.google.play.services.base.PackageStateChangedService
 

Our ANR rate is about 0.78% and this error makes about 60% of all ANR reports.
 

We are using Scott Harrisons's Firebase plugin for analytics and AppLovin for video ads. So first thought was, that the AppLovin plugin does also have problems.

 

On the other hand I know that this Firebase plugin does not work well together with Corona's Firebase push notifications like I stated in this post (which is why we do not use any push notifications right now).



[TOPIC: post.html]
#28

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,807 posts
  • Enterprise

I am just want to state this one more time. Unless you see an error inside LuaLoader or something that has to do with my Plugin like "plugin.firebaseAnalytics" it is probably not this fault. shared. means that corona hosts this library. While this may not be their fault ( could be a google bug), only they can change or edit. I already stated firebase notification problem in the link shared above, but it is not relevant to this issue.  



[TOPIC: post.html]
#29

MartingK

[GLOBAL: userInfoPane.html]
MartingK
  • Enthusiast

  • 82 posts
  • Corona SDK

This ANR is hitting hard, it serious as it affects the bottom line as you said.

10k users affected !

 

How did you came to conclusion it's related to plugins?  I see libopenal.so in the trace 

 

 

Attached File  ANR_title.png   40.74KB   0 downloads

Attached File  ANR_log.png   206.46KB   0 downloads



[TOPIC: post.html]
#30

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,218 posts
  • Corona SDK

I am in the same boat as many people here. I am down to .68% for ANRs but that is still above the bad behavior threshold. I am running out of plugins to remove.



[TOPIC: post.html]
#31

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,218 posts
  • Corona SDK

Has anybody figured this out yet?



[TOPIC: post.html]
#32

dmitrijshvager

[GLOBAL: userInfoPane.html]
dmitrijshvager
  • Observer

  • 1 posts
  • Corona SDK

Same problem :(

Using admob plugin



[TOPIC: post.html]
#33

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,061 posts
  • Enterprise

Our engineers are investigating the source of these sudden increase in ANR's and crashes.



[TOPIC: post.html]
#34

egarayblas

[GLOBAL: userInfoPane.html]
egarayblas
  • Contributor

  • 107 posts
  • Corona SDK

Any update on this? Same here, ANRs have gone up.



[TOPIC: post.html]
#35

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,061 posts
  • Enterprise

ANR's and crashes are coming from different causes and it's weird that apps that didn't get any updates are now ANRing and crashing which tells me that Google has made some updates in Android that's now causing these issue.

 

Anyway, we are addressing them.  Android audio with OpenAL is one big source of problems and we are testing out a replacement system and will hopefully get that out soon. The other source seems to be plugins that depend on some of the Google Play dependencies. We are in the process of updating a bunch of plugins to use the latest Google dependency libraries. As those plugins get updated, builds will get the updates.

 

So stay tuned. We hope to have more information soon.

 

Rob



[TOPIC: post.html]
#36

egarayblas

[GLOBAL: userInfoPane.html]
egarayblas
  • Contributor

  • 107 posts
  • Corona SDK

Thank you for the update Rob! Looking forward to it!



[TOPIC: post.html]
#37

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

Hey guys. Liking through all of the crash logs there are no reference to PackageStateChangedService in crash logs you posted. They all leading to OpenAL library... Honestly, I have no idea why google decides PackageStateChangedService is at fault. Please, make sure to pus FULL output of the ANRs page, not just first parts.




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]

Also tagged with one or more of these keywords: firebase, firebase-analytics, google, google play, anr, kidoz, admob